wizard: generate custom Makefile variables with the right prefix
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:01 +0000 (05:15 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:01 +0000 (05:15 +0000)
This fixes the bug where custom Makefile variables are not correctly
defined if the project is not in a directory which name is the name of
the project.

Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4854 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 204c4fe4ea1e602f9f61ecbaf5756451dee36b88..522e651e2c4359d02f3c35ce752b0822acba666e 100644 (file)
@@ -283,7 +283,7 @@ def csrcGenerator(project_info):
     cxxsrc = " \\\n\t".join(cxxsrc) + " \\"
     asrc = set(asrc)
     asrc = " \\\n\t".join(asrc) + " \\"
-    constants = "\n".join([os.path.basename(project_info.info("PROJECT_PATH")) + "_" + key + " = " + unicode(value) for key, value in constants.items()])
+    constants = "\n".join([project_info.info("PROJECT_NAME") + "_" + key + " = " + unicode(value) for key, value in constants.items()])
     return csrc, pcsrc, cppasrc, cxxsrc, asrc, constants
 
 def findModuleFiles(module, project_info):