+for s in ['intermediate', 'final']:
+ bootloader_env = env.Clone()
+
+ bootloader_env.Append(RUSTCFLAGS = [
+ '-C', 'link-arg=-Tsrc/bootloader/bootloader-{}.ld'.format(s),
+ '--cfg',
+ 'bootloader_type=\\"{}\\"'.format(s)
+ ])
+
+ bootloader_elf = \
+ bootloader_env.Rustc('gps-watch-bootloader-{}.elf'.format(s),
+ bootloader_source_files[0])