From b05fb8b10dc5b2e5d966ab3ffcf47178309382ae Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 23 Sep 2010 10:54:29 +0000 Subject: [PATCH] Fix #160. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4271 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 7 +++++-- wizard/bertos_utils.py | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wizard/BProject.py b/wizard/BProject.py index 46d914fa..1a7fb258 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -383,8 +383,11 @@ class BProject(object): self._mergeSources(self.bertos_maindir, self.srcdir, self.old_srcdir) # Copy all the hw files self._writeHwFiles(self.bertos_srcdir, self.hwdir) - # Destination wizard mk file - self._writeWizardMkFile() + + # Destination wizard mk file (it seems that this file need to be + # rewritten also if the project is a preset)... + self._writeWizardMkFile() + # Set properly the autoenabled parameters self._setupAutoenabledParameters() # Copy all the configuration files diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 148af10e..a15e5af1 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -181,7 +181,8 @@ def mkGenerator(project_info): Generates the mk file for the current project. """ makefile = open(os.path.join(const.DATA_DIR, "mktemplates/template.mk"), "r").read() - destination = os.path.join(project_info.prjdir, os.path.basename(project_info.prjdir) + ".mk") + prjdir = os.path.abspath(project_info.prjdir) + destination = os.path.join(prjdir, os.path.basename(prjdir) + ".mk") mk_data = {} mk_data["$pname"] = project_info.info("PROJECT_NAME") mk_data["$ppath"] = relpath.relpath(project_info.info("PROJECT_SRC_PATH"), project_info.info("PROJECT_PATH")) -- 2.25.1