(command.CommandList children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(source)} {(sources/include.sh)}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) (C {(load_target)} {(DQ ($ VSub_Number '$1'))}) (command.AndOr ops: [Op_DPipe] children: [ (C {(check_for_base_arch)}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (C {(check_prerequisite)} {(DQ (${ VSub_Name CC_PREFIX) (cc))}) (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(mkdir)} {(-p)} (word.BracedWordTree parts: [ (DQ ($ VSub_Name '$STAGE_DIR')) (/) (word_part.BracedAltPart words: [{(tmp)} {(proc)} {(sys)} {(dev)} {(home)} {(mnt)} {(root)}] ) ] ) ) (C {(chmod)} {(a) (Lit_Other '+') (rwxt)} {(DQ ($ VSub_Name '$STAGE_DIR') (/tmp))}) (C {(dienow)}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:STAGE_USR spids:[109]) op: Equal rhs: {(DQ ($ VSub_Name '$STAGE_DIR') (/usr))} spids: [109] ) ] spids: [109] ) (command.ForEach iter_name: i iter_words: [{(bin)} {(sbin)} {(lib)} {(etc)}] do_arg_iter: F body: (command.DoGroup children: [ (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$STAGE_USR') (/) ($ VSub_Name '$i'))}) (C {(ln)} {(-s)} {(DQ (usr/) ($ VSub_Name '$i'))} {(DQ ($ VSub_Name '$STAGE_DIR') (/) ($ VSub_Name '$i'))} ) (C {(dienow)}) ] ) ] spids: [145 179] ) spids: [136 16777215] ) (command.AndOr ops: [Op_DAmp Op_DAmp Op_DPipe] children: [ (C {(cp)} {(-r)} {(DQ ($ VSub_Name '$SOURCES') (/root-filesystem/.))} {(DQ ($ VSub_Name '$STAGE_USR') (/))} ) (command.SimpleCommand words: [ {(echo)} {(-e)} { (DQ ('CROSS_TARGET=') ($ VSub_Name '$CROSS_TARGET') (Lit_Other '\\') ('nKARCH=') ($ VSub_Name '$KARCH') ) } ] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$STAGE_USR') (/src/host-info))} ) ] ) (C {(cp)} {(DQ ($ VSub_Name '$SRCDIR')) (/MANIFEST)} {(DQ ($ VSub_Name '$STAGE_USR') (/src))}) (C {(dienow)}) ] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ ($ VSub_Name '$MY_ROOT_OVERLAY'))} {(Lit_Other ']')} ) ] action: [ (C {(cd)} {(DQ ($ VSub_Name '$TOP'))}) (command.AndOr ops: [Op_DPipe] children: [ (command.Pipeline children: [ (C {(tar)} {(-c)} {(-C)} {(DQ ($ VSub_Name '$MY_ROOT_OVERLAY'))} {(.)}) (C {(tar)} {(-x)} {(-C)} {(DQ ($ VSub_Name '$STAGE_DIR'))}) ] negated: F ) (C {(dienow)}) ] ) ] spids: [16777215 263] ) ] spids: [16777215 301] ) (command.SimpleCommand words: [{(build_section)} {(busybox)}] more_env: [(env_pair name:STAGE_DIR val:{(DQ ($ VSub_Name '$STAGE_USR'))} spids:[308])] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(cp)} {(DQ ($ VSub_Name '$WORK')) (/config-busybox)} {(DQ ($ VSub_Name '$STAGE_USR')) (/src)} ) (C {(dienow)}) ] ) (C {(build_section)} {(toybox)}) (command.AndOr ops: [Op_DPipe] children: [ (C {(DQ (${ VSub_Name CC_PREFIX) (cc))} {(DQ (${ VSub_Name SOURCES) (/root-filesystem/src/hello.c))} {(-Os)} {($ VSub_Name '$CFLAGS')} {(-o)} {(DQ ($ VSub_Name '$STAGE_USR') (/bin/hello-dynamic))} ) (C {(dienow)}) ] ) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$BUILD_STATIC'))} {(KW_Bang '!') (Lit_Other '=')} {(none)} {(Lit_Other ']')} ) ] action: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(DQ (${ VSub_Name CC_PREFIX) (cc))} {(DQ (${ VSub_Name SOURCES) (/root-filesystem/src/hello.c))} {(-Os)} {($ VSub_Name '$CFLAGS')} {(-static)} {(-o)} {(DQ ($ VSub_Name '$STAGE_USR') (/bin/hello-static))} ) (C {(dienow)}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:STATIC spids:[429]) op: Equal rhs: {(--static)} spids: [429] ) ] spids: [429] ) ] spids: [16777215 392] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:STATIC spids:[435]) op: Equal rhs: (word.EmptyWord) spids: [435] ) ] spids: [435] ) ] spids: [432 437] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(DQ (${ VSub_Name CC_PREFIX) (cc))} {(DQ ($ VSub_Name '$SOURCES') (/toys/wrappy.c))} {(-Os)} {($ VSub_Name '$CFLAGS')} {($ VSub_Name '$STATIC')} {(-o)} {(DQ ($ VSub_Name '$STAGE_USR') (/bin/record-commands-wrapper))} ) (C {(dienow)}) ] ) (command.If arms: [ (if_arm cond: [ (command.AndOr ops: [Op_DPipe] children: [ (command.Pipeline children: [(C {(is_in_list)} {(toybox)} {($ VSub_Name '$BUILD_STATIC')})] negated: T ) (command.Pipeline children: [(C {(is_in_list)} {(busybox)} {($ VSub_Name '$BUILD_STATIC')})] negated: T ) ] ) ] action: [ (C {(echo)} {(Copying)} {(compiler)} {(libraries...)}) (command.AndOr ops: [Op_DPipe] children: [(C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$STAGE_USR') (/lib))}) (C {(dienow)})] ) (command.Pipeline children: [ (command.Subshell child: (command.AndOr ops: [Op_DPipe] children: [ (C {(path_search)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(DQ (${ VSub_Name CC_PREFIX) (cc))} {(--print-search-dirs)} ) (C {(sed)} {(-n)} {(SQ <'s/^libraries: =*//p'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [532 551] ) ) } {(DQ ('*.so*'))} {(SQ <'cp -H "$DIR/$FILE" "$STAGE_USR/lib/$FILE"'>)} ) (C {(dienow)}) ] ) spids: [526 569] ) (C {(dotprogress)}) ] negated: F ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$SKIP_STRIP'))} {(Lit_Other ']')}) (C {(DQ (${ VSub_Name CC_PREFIX) (strip))} {(--strip-unneeded)} {(DQ ($ VSub_Name '$STAGE_USR')) (/lib/) (Lit_Other '*') (.so)} ) ] ) ] spids: [16777215 500] ) ] spids: [16777215 606] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$SKIP_STRIP'))} {(Lit_Other ']')}) (C {(DQ (${ VSub_Name CC_PREFIX) (strip))} (word.BracedWordTree parts: [ (DQ ($ VSub_Name '$STAGE_USR')) (/) (word_part.BracedAltPart words: [{(bin/) (Lit_Other '*')} {(sbin/) (Lit_Other '*')}] ) ] ) ) ] ) (C {(create_stage_tarball)}) (C {(echo)} {(-e)} {(DQ (Lit_Other '\\') ('e[0mBuild complete'))}) ] )