X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=blobdiff_plain;f=SConscript.target;h=a927dd7292259df9195a792a06735dd65558e6ea;hp=fa4ca1775d42e3ea4d47efce8000a67bdb06e62a;hb=HEAD;hpb=b891a2ff44e99392e258c2f39ec0852c4b5dbfab diff --git a/SConscript.target b/SConscript.target index fa4ca17..a927dd7 100644 --- a/SConscript.target +++ b/SConscript.target @@ -36,7 +36,7 @@ env.Append(LINKFLAGS = [ libgcc_path = \ subprocess.check_output('{} -print-libgcc-file-name'.format(env['CC']), - shell=True).strip() + shell=True).strip().decode('utf-8') env.Append(RUSTCFLAGS = [ '-C', 'opt-level=s', @@ -59,6 +59,8 @@ bootloader_source_files = [ 'src/bootloader/flash.rs', ] +bootloader_bins = [] + for s in ['intermediate', 'final']: bootloader_env = env.Clone() @@ -82,8 +84,18 @@ for s in ['intermediate', 'final']: Default(bootloader_bin) + bootloader_bins.append(bootloader_bin) + +bootloader_intermediate_frm = \ + bootloader_env.Frm(bootloader_bins[0]) + +Default(bootloader_intermediate_frm) + application_source_files = [ 'src/application/main.rs', # Must be listed first (see below). + 'src/application/button.rs', + 'src/application/model.rs', + 'src/application/views.rs', 'src/application/uart0.rs', ]