Remove path from toolchain when creating presets (use the system one).
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 17 Feb 2011 11:13:55 +0000 (11:13 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 17 Feb 2011 11:13:55 +0000 (11:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4710 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/create_preset.py

index e2c818ac4f5a1c1d3a8a045f8cc339d4f2349c50..d1dbac68a7d2f7640f68e3e71512411b162453f6 100755 (executable)
@@ -149,6 +149,8 @@ hw_path  = os.path.relpath(hw_path, bertos_path)
 # Src path and hw path relatively to the BeRTOS Makefile.
 s["PROJECT_SRC_PATH_FROM_MAKEFILE"] = src_path
 s["PROJECT_HW_PATH_FROM_MAKEFILE"] = hw_path
+toolchain = s["TOOLCHAIN"]["path"]
+s["TOOLCHAIN"]["path"] = os.path.basename(toolchain)
 
 pprint.pprint(s)
 p = open(preset_dir + "/project.bertos", "w")