(CommandList children: [ (C {(echo)} {(DQ ("*** BUILD GLIBC BEGIN ***"))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SRC_DIR) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: <Left_CommandSub "$("> spids: [12 14] ) } spids: [11] ) ] spids: [11] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:JOB_FACTOR) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(grep)} {(-i)} {(Lit_Other "^") (JOB_FACTOR)} {(.config)}) (C {(cut)} {(-f2)} {(-d) (SQ <"=">)}) ] negated: False ) ] ) left_token: <Left_CommandSub "$("> spids: [22 42] ) ) } spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NUM_CORES) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(grep)} {(Lit_Other "^") (processor)} {(/proc/cpuinfo)}) (C {(wc)} {(-l)}) ] negated: False ) ] ) left_token: <Left_CommandSub "$("> spids: [50 63] ) } spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NUM_JOBS) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Star left: (ArithVarRef name:NUM_CORES) right: (ArithVarRef name:JOB_FACTOR) ) spids: [70 77] ) } spids: [69] ) ] spids: [69] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KERNEL_INSTALLED) op: Equal rhs: {($ VSub_Name "$SRC_DIR") (/work/kernel/kernel_installed)} spids: [83] ) ] spids: [83] ) (C {(cd)} {(work/glibc)}) (C {(cd)} { (CommandSubPart command_list: (CommandList children:[(C {(ls)} {(-d)} {(glibc-) (Lit_Other "*")})]) left_token: <Left_CommandSub "$("> spids: [98 105] ) } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GLIBC_SRC) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: <Left_CommandSub "$("> spids: [108 110] ) } spids: [107] ) ] spids: [107] ) (C {(cd)} {(..)}) (C {(echo)} {(DQ ("Preparing glibc object area. This may take a while..."))}) (C {(rm)} {(-rf)} {(glibc_objects)}) (C {(mkdir)} {(glibc_objects)}) (C {(echo)} {(DQ ("Preparing glibc install area. This may take a while..."))}) (C {(rm)} {(-rf)} {(glibc_installed)}) (C {(mkdir)} {(glibc_installed)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GLIBC_INSTALLED) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: <Left_CommandSub "$("> spids: [157 159] ) (/glibc_installed) } spids: [156] ) ] spids: [156] ) (C {(cd)} {(glibc_objects)}) (C {(echo)} {(DQ ("Configuring glibc..."))}) (C {($ VSub_Name "$GLIBC_SRC") (/configure)} {(--prefix) (Lit_Other "=")} {(--with-headers) (Lit_Other "=") ($ VSub_Name "$KERNEL_INSTALLED") (/include)} {(--without-gd)} {(--without-selinux)} {(--disable-werror)} {(Lit_VarLike "CFLAGS=") (DQ ("-Os -s -fno-stack-protector -U_FORTIFY_SOURCE"))} ) (C {(echo)} {(DQ ("Building glibc..."))}) (C {(make)} {(-j)} {($ VSub_Name "$NUM_JOBS")}) (C {(echo)} {(DQ ("Installing glibc..."))}) (C {(make)} {(install)} {(Lit_VarLike "DESTDIR=") ($ VSub_Name "$GLIBC_INSTALLED")} {(-j)} {($ VSub_Name "$NUM_JOBS")} ) (C {(cd)} {($ VSub_Name "$SRC_DIR")}) (C {(echo)} {(DQ ("*** BUILD GLIBC END ***"))}) ] )