Configtool: use absolute paths for .al files.

In some cases the working directory gets changed unintentionally,
so these .al files were no longer found.

This should partially solve issue #132.
This commit is contained in:
jbernardis 2015-05-06 19:37:51 -04:00 committed by Markus Hitter
parent ae8a2a2b59
commit e661170f75
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ cflags = -DF_CPU=%F_CPU% -mmcu=%CPU% -Wall -Wstrict-prototypes -std=gnu99
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
-Winline -fno-move-loop-invariants -fno-tree-scev-cprop -Os
-ffunction-sections -finline-functions-called-once -mcall-prologues
-Wa,-adhlns=build/%ALNAME% -save-temps=obj
-Wa,-adhlns=%ALNAME% -save-temps=obj
# Flags passed to avr-gcc to be passed on to the linker.
ldflags = -Wl,--as-needed -Wl,--gc-sections

View File

@ -183,10 +183,11 @@ class Build(wx.Dialog):
ofile = basename + ".o"
alfile = basename + ".al"
opath = "\"" + join(self.root, "build", ofile) + "\""
alpath = "\"" + join(self.root, "build", alfile) + "\""
cpath = "\"" + join(self.root, f) + "\""
opts = self.settings.cflags
opts = opts.replace("%ALNAME%", alfile)
opts = opts.replace("%ALNAME%", alpath)
opts = opts.replace("%F_CPU%", self.f_cpu)
opts = opts.replace("%CPU%", self.cpu)