<s> """<STR_LIT>""" <EOL> from os . path import join <EOL> from SCons . Script import ( COMMAND_LINE_TARGETS , AlwaysBuild , Default , <EOL> DefaultEnvironment , SConscript ) <EOL> env = DefaultEnvironment ( ) <EOL> SConscript ( env . subst ( join ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ) ) <EOL> target_elf = env . BuildProgram ( ) <EOL> if "<STR_LIT>" in COMMAND_LINE_TARGETS : <EOL> target_firm = join ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> else : <EOL> target_firm = env . ElfToBin ( join ( "<STR_LIT>" , "<STR_LIT>" ) , target_elf ) <EOL> target_size = env . Alias ( "<STR_LIT:size>" , target_elf , "<STR_LIT>" ) <EOL> AlwaysBuild ( target_size ) <EOL> upload = env . Alias ( [ "<STR_LIT>" , "<STR_LIT>" ] , target_firm , env . UploadToDisk ) <EOL> AlwaysBuild ( upload ) <EOL> Default ( [ target_firm , target_size ] ) </s>
