(CommandList children: [ (AndOr ops: [Op_DPipe] children: [ (C {(source)} {(sources/include.sh)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) (SimpleCommand words: [{(load_target)} {(DQ ($ VSub_Number '$1'))}] more_env: [(env_pair name:KEEP_STAGEDIR val:{(1)} spids:[29])] ) (FuncDef name: is_newer body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:X) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [50] ) ] spids: [50] ) (C {(shift)}) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {(DQ ($ VSub_Name '$X'))} {(Lit_Other ']')}) (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} { (DQ (CommandSubPart command_list: (CommandList children: [(C {(which)} {(DQ (${ VSub_Name CC_PREFIX) (cc))})] ) left_token: <Left_CommandSub '$('> spids: [81 90] ) ) } {(-nt)} {(DQ ($ VSub_Name '$X'))} {(Lit_Other ']')} ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) (While cond: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_Number '$1'))} {(Lit_Other ']')}) ] body: (DoGroup children: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} { (DQ (CommandSubPart command_list: (CommandList children: [ (SimpleCommand words: [ {(find)} {(DQ ($ VSub_Number '$1'))} {(-newer)} {(DQ ($ VSub_Name '$X'))} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [146] ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [133 148] ) ) } {(Lit_Other ']')} ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) (C {(shift)}) ] spids: [123 163] ) ) (C {(echo)} { (DQ ('Keeping ') (CommandSubPart command_list: (CommandList children:[(C {(basename)} {(DQ ($ VSub_Name '$X'))})]) left_token: <Left_CommandSub '$('> spids: [171 177] ) ) } ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [47] ) spids: [43 46] ) (FuncDef name: qemu_defaults body: (BraceGroup children: [ (C {(echo)} {(-n)} {(DQ ('-nographic -no-reboot -kernel linux'))}) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$SYSIMAGE_TYPE'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ (rootfs))} {(Lit_Other ']')} ) (C {(echo)} {(-n)} {(DQ (' -initrd rootfs.cpio.gz'))}) ] ) (C {(echo)} {(-n)} { (DQ (' -append ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('panic=1 console=') ($ VSub_Name '$CONSOLE') (' HOST=') ($ VSub_Name '$ARCH') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) (KERNEL_EXTRA) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ) (C {(echo)} {(-n)} {(DQ (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) (QEMU_EXTRA))} ) ] spids: [196] ) spids: [192 195] ) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$STAGE_DIR') (/run-emulator.sh))} spids: [277] ) (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('#!/bin/bash\n') ('\n') ('# Boot the emulated system to a shell prompt.\n') ('\n') ('ARCH=') ($ VSub_Name '$ARCH') ('\n') ('run_emulator()\n') ('{\n') (' [ ! -z ') (Right_DoubleQuote '"') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) (DEBUG) (Right_DoubleQuote '"') (' ] && set -x\n') (' ') (CommandSubPart command_list: (CommandList children:[(C {(emulator_command)})]) left_token: <Left_CommandSub '$('> spids: [306 308] ) ('\n') ('}\n') ('\n') ('if [ ') (Right_DoubleQuote '"') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) (1) (Right_DoubleQuote '"') (' != ') (Right_DoubleQuote '"') (--norun) (Right_DoubleQuote '"') (' ]\n') ('then\n') (' run_emulator\n') ('fi\n') ) } do_expansion: True here_end: EOF was_filled: T spids: [284] ) ] ) (C {(chmod)} {(Lit_Other '+') (x)} {(DQ ($ VSub_Name '$STAGE_DIR') (/run-emulator.sh))}) (ForEach iter_name: FILE iter_words: [{(dev-environment.sh)} {(native-build.sh)}] do_arg_iter: F body: (DoGroup children: [ (Subshell child: (CommandList children: [ (C {(export)} {(Lit_VarLike 'IFS=') (DQ (CommandSubPart command_list: (CommandList children: [(C {(echo)} {(-e)} {(DQ (Lit_Other '\\') (n))})] ) left_token: <Left_CommandSub '$('> spids: [361 370] ) ) } ) (Pipeline children: [ (C {(cat)} {(DQ ($ VSub_Name '$SOURCES') (/toys/) ($ VSub_Name '$FILE'))}) (While cond: [(C {(read)} {(-r)} {(i)})] body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} { (DQ (BracedVarSub token: <VSub_Name i> suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w:{(Lit_Digits 8)}) ) spids: [401 407] ) ) } {(Lit_Other '=') (Lit_Other '=')} {(DQ ('INCLUDE '))} {(Lit_Other ']')} ) ] action: [ (AndOr ops: [Op_DPipe] children: [ (C {(cat)} { (DQ ($ VSub_Name '$SOURCES') (/toys/) (BracedVarSub token: <VSub_Name i> suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 8)}) ) spids: [428 432] ) ) } ) (C {(dienow)}) ] ) ] spids: [16777215 420] ) ] else_action: [ (AndOr ops: [Op_DPipe] children: [ (C {(echo)} {(DQ ($ VSub_Name '$i'))}) (C {(dienow)}) ] ) ] spids: [440 458] ) ] spids: [393 461] ) ) ] negated: F ) ] ) redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$STAGE_DIR') (/) ($ VSub_Name '$FILE'))} spids: [466] ) ] spids: [356 464] ) (AndOr ops: [Op_DPipe] children: [ (C {(chmod)} {(Lit_Other '+') (x)} {(DQ ($ VSub_Name '$STAGE_DIR') (/) ($ VSub_Name '$FILE'))} ) (C {(dienow)}) ] ) ] spids: [353 491] ) spids: [348 16777215] ) ] ) (If arms: [ (if_arm cond: [ (C {(is_newer)} {(DQ ($ VSub_Name '$STAGE_DIR') (/rootfs.cpio.gz))} {(DQ ($ VSub_Name '$BUILD') (/root-filesystem-) ($ VSub_Name '$ARCH'))} ) ] action: [ (AndOr ops: [Op_DAmp Op_DPipe] children: [ (SimpleCommand words: [ {(image_filesystem)} {(DQ ($ VSub_Name '$BUILD') (/root-filesystem-) ($ VSub_Name '$ARCH'))} {(DQ ($ VSub_Name '$STAGE_DIR') (/temp))} ] more_env: [(env_pair name:SYSIMAGE_TYPE val:{(cpio)} spids:[516])] ) (C {(mv)} {(-f)} (BracedWordTree parts: [ (DQ ($ VSub_Name '$STAGE_DIR')) (/) (BracedAltPart words:[{(temp)} {(rootfs)}]) (.cpio.gz) ] ) ) (C {(dienow)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$SYSIMAGE_TYPE'))} {(Lit_Other '=') (Lit_Other '=')} {(rootfs)} {(Lit_Other ']')} ) (C {(rm)} {(-f)} {(DQ ($ VSub_Name '$STAGE_DIR') (/linux))}) ] ) ] spids: [16777215 513] ) ] spids: [16777215 581] ) (If arms: [ (if_arm cond: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-e)} {(DQ ($ VSub_Name '$BUILD') (/native-compiler-) ($ VSub_Name '$ARCH'))} {(Lit_Other ']')} ) (C {(is_newer)} {(DQ ($ VSub_Name '$STAGE_DIR') (/toolchain.sqf))} {(DQ ($ VSub_Name '$BUILD') (/native-compiler-) ($ VSub_Name '$ARCH'))} ) ] ) ] action: [ (AndOr ops: [Op_DAmp Op_DPipe] children: [ (SimpleCommand words: [ {(image_filesystem)} {(DQ ($ VSub_Name '$BUILD') (/native-compiler-) ($ VSub_Name '$ARCH'))} {(DQ ($ VSub_Name '$STAGE_DIR') (/temp))} ] more_env: [(env_pair name:SYSIMAGE_TYPE val:{(squashfs)} spids:[621])] ) (C {(mv)} {(-f)} (BracedWordTree parts: [ (DQ ($ VSub_Name '$STAGE_DIR')) (/) (BracedAltPart words:[{(temp)} {(toolchain)}]) (.sqf) ] ) ) (C {(dienow)}) ] ) ] spids: [16777215 618] ) ] spids: [16777215 661] ) (If arms: [ (if_arm cond: [ (C {(is_newer)} {(DQ ($ VSub_Name '$STAGE_DIR') (/linux))} {(DQ ($ VSub_Name '$BUILD') (/root-filesystem-) ($ VSub_Name '$ARCH'))} { (CommandSubPart command_list: (CommandList children:[(C {(package_cache)} {(linux)})]) left_token: <Left_CommandSub '$('> spids: [685 689] ) } ) ] action: [ (C {(setupfor)} {(linux)}) (SimpleCommand words: [ {(echo)} { (DQ ('# make allnoconfig ARCH=') (BracedVarSub token: <VSub_Name BOOT_KARCH> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {($ VSub_Name '$KARCH')} ) spids: [703 707] ) (' KCONFIG_ALLCONFIG=mini.config') ) } ] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$STAGE_DIR') (/mini.config)} spids: [713] ) ] ) (SimpleCommand words: [{(getconfig)} {(linux)}] redirects: [ (Redir op_id: Redir_DGreat fd: 16777215 arg_word: {(DQ ($ VSub_Name '$STAGE_DIR')) (/mini.config)} spids: [723] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$SYSIMAGE_TYPE'))} {(Lit_Other '=') (Lit_Other '=')} {(rootfs)} {(Lit_Other ']')} ) (SimpleCommand words: [ {(echo)} {(-e)} { (DQ ('CONFIG_INITRAMFS_SOURCE=') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$STAGE_DIR') (/rootfs.cpio.gz) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (Lit_Other '\\') (n) ) } ] redirects: [ (Redir op_id: Redir_DGreat fd: 16777215 arg_word: {(DQ ($ VSub_Name '$STAGE_DIR')) (/mini.config)} spids: [763] ) ] ) ] ) (AndOr ops: [Op_DAmp Op_DAmp] children: [ (SimpleCommand words: [ {(make)} {(allnoconfig)} {(Lit_VarLike 'ARCH=') (BracedVarSub token: <VSub_Name BOOT_KARCH> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {($ VSub_Name '$KARCH')} ) spids: [776 780] ) } {($ VSub_Name '$LINUX_FLAGS')} {(Lit_VarLike 'KCONFIG_ALLCONFIG=') (DQ ($ VSub_Name '$STAGE_DIR')) (/mini.config) } ] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/dev/null)} spids: [792] ) ] ) (C {(make)} {(-j)} {($ VSub_Name '$CPUS')} {(Lit_VarLike 'ARCH=') (BracedVarSub token: <VSub_Name BOOT_KARCH> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {($ VSub_Name '$KARCH')} ) spids: [805 809] ) } {($ VSub_Name '$DO_CROSS')} {($ VSub_Name '$LINUX_FLAGS')} {($ VSub_Name '$VERBOSITY')} ) (C {(cp)} {(DQ ($ VSub_Name '$KERNEL_PATH'))} {(DQ ($ VSub_Name '$STAGE_DIR') (/linux))}) ] ) (C {(cleanup)}) ] spids: [16777215 691] ) ] spids: [16777215 834] ) (SimpleCommand words: [{(create_stage_tarball)}] more_env: [(env_pair name:ARCH val:{(DQ ($ VSub_Name '$ARCH_NAME'))} spids:[841])] ) (C {(announce)} {(DQ ('Packaging complete'))}) ] )