+import subprocess
import os
Import('env')
'-nostartfiles',
])
+libgcc_path = \
+ subprocess.check_output('{} -print-libgcc-file-name'.format(env['CC']),
+ shell=True).strip()
+
env.Append(RUSTCFLAGS = [
'-C', 'opt-level=s',
'--target=thumbv6m-none-eabi',
'-Tsrc/bootloader/bootloader-{}.ld'.format(s),
])
+ bootloader_libs = [
+ 'bootloader-{}'.format(s),
+ 'common',
+ File(libgcc_path),
+ ]
+
bootloader_elf = \
bootloader_env.Program('gps-watch-bootloader-{}.elf'.format(s),
- start_o, LIBS = ['bootloader-{}'.format(s), 'common'])
+ start_o, LIBS = bootloader_libs)
bootloader_bin = bootloader_env.Objcopy(bootloader_elf)
'-Tsrc/application/application.ld'
])
+application_libs = [
+ 'application',
+ 'common',
+ File(libgcc_path),
+]
+
application_elf = application_env.Program('gps-watch-application.elf',
- start_o,
- LIBS = ['application', 'common'])
+ start_o, LIBS = application_libs)
application_bin = application_env.Objcopy(application_elf)
: ORIGIN = 0x1fffe000, LENGTH = 0x08000
}
-/* Library configurations */
-GROUP(libgcc.a)
-
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
* It references following symbols, which must be defined in code:
: ORIGIN = 0x1fffe000, LENGTH = 0x08000
}
-/* Library configurations */
-GROUP(libgcc.a)
-
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
* It references following symbols, which must be defined in code:
: ORIGIN = 0x1fffe000, LENGTH = 0x08000
}
-/* Library configurations */
-GROUP(libgcc.a)
-
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
* It references following symbols, which must be defined in code: