(command.CommandList
  children: [
    (C {<echo>} {(DQ <'*** BUILD KERNEL BEGIN ***'>)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:SRC_DIR)
          op: assign_op.Equal
          rhs: {(command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<pwd>}))}
          spids: [11]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:JOB_FACTOR)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<grep>} {<-i>} {<Id.Lit_Other '^'> <JOB_FACTOR>} {<.config>})
                        (C {<cut>} {<-f2>} {<-d> (SQ <'='>)})
                      ]
                      negated: F
                    )
                )
              )
            }
          spids: [20]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:CFLAGS)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<grep>} {<-i>} {<Id.Lit_Other '^'> <CFLAGS>} {<.config>})
                        (C {<cut>} {<-f2>} {<-d> (SQ <'='>)})
                      ]
                      negated: F
                    )
                )
              )
            }
          spids: [49]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:NUM_CORES)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Pipeline
                    children: [
                      (C {<grep>} {<Id.Lit_Other '^'> <processor>} {<'/proc/cpuinfo'>})
                      (C {<wc>} {<-l>})
                    ]
                    negated: F
                  )
              )
            }
          spids: [78]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:NUM_JOBS)
          op: assign_op.Equal
          rhs: 
            {
              (word_part.ArithSub
                anode: 
                  (arith_expr.Binary
                    op_id: Id.Arith_Star
                    left: <Id.Lit_ArithVarLike NUM_CORES>
                    right: <Id.Lit_ArithVarLike JOB_FACTOR>
                  )
              )
            }
          spids: [98]
        )
      ]
    )
    (C {<cd>} {<'work/kernel'>})
    (C {<rm>} {<-rf>} {<kernel_installed>})
    (C {<mkdir>} {<kernel_installed>})
    (C {<cd>} 
      {
        (command_sub
          left_token: <Id.Left_DollarParen '$('>
          child: (C {<ls>} {<-d>} {<linux-> <Id.Lit_Star '*'>})
        )
      }
    )
    (C {<echo>} {(DQ <'Preparing kernel work area...'>)})
    (C {<make>} {<mrproper>} {<-j>} {($ Id.VSub_DollarName '$NUM_JOBS')})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:USE_PREDEFINED_KERNEL_CONFIG)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<grep>} {<-i>} {<Id.Lit_Other '^'> <USE_PREDEFINED_KERNEL_CONFIG>} 
                          {($ Id.VSub_DollarName '$SRC_DIR') <'/.config'>}
                        )
                        (C {<cut>} {<-f2>} {<-d> (SQ <'='>)})
                      ]
                      negated: F
                    )
                )
              )
            }
          spids: [164]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {(DQ ($ Id.VSub_DollarName '$USE_PREDEFINED_KERNEL_CONFIG'))} {<Id.Lit_Equals '='>} {(DQ <true>)} {<-a>} {<Id.KW_Bang '!'>} {<-f>} 
                      {($ Id.VSub_DollarName '$SRC_DIR') <'/minimal_config/kernel.config'>} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} 
              {
                (DQ <'Config file '> ($ Id.VSub_DollarName '$SRC_DIR') 
                  <'/minimal_config/kernel.config does not exist.'>
                )
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:USE_PREDEFINED_KERNEL_CONFIG)
                  op: assign_op.Equal
                  rhs: {(DQ <false>)}
                  spids: [230]
                )
              ]
            )
          ]
          spids: [191 218]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} 
                      {(DQ ($ Id.VSub_DollarName '$USE_PREDEFINED_KERNEL_CONFIG'))} {<Id.Lit_Equals '='>} {(DQ <true>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} 
              {
                (DQ <'Using config file '> ($ Id.VSub_DollarName '$SRC_DIR') 
                  <'/minimal_config/kernel.config'>
                )
              }
            )
            (C {<cp>} {<-f>} {($ Id.VSub_DollarName '$SRC_DIR') <'/minimal_config/kernel.config'>} 
              {<.config>}
            )
          ]
          spids: [238 256]
        )
      ]
      else_action: [
        (C {<make>} {<defconfig>} {<-j>} {($ Id.VSub_DollarName '$NUM_JOBS')})
        (C {<echo>} {(DQ <'Generated default kernel configuration.'>)})
        (C {<sed>} {<-i>} 
          {
            (DQ <'s/.*CONFIG_DEFAULT_HOSTNAME.*/CONFIG_DEFAULT_HOSTNAME='> 
              (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <minimal> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <'/'>
            )
          } {<.config>}
        )
        (C {<sed>} {<-i>} {(DQ <'s/.*CONFIG_OVERLAY_FS.*/CONFIG_OVERLAY_FS=y/'>)} {<.config>})
        (command.Simple
          words: [{<echo>} {(DQ <'CONFIG_OVERLAY_FS_REDIRECT_DIR=y'>)}]
          redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<.config>})]
          do_fork: T
        )
        (command.Simple
          words: [{<echo>} {(DQ <'CONFIG_OVERLAY_FS_INDEX=y'>)}]
          redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<.config>})]
          do_fork: T
        )
        (C {<sed>} {<-i>} 
          {
            (DQ <'s/.*'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) 
              <'(CONFIG_KERNEL_.*'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <')=y/'> 
              (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <'#'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <' '> 
              (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <'1 is not set/'>
            )
          } {<.config>}
        )
        (C {<sed>} {<-i>} {(DQ <'s/.*CONFIG_KERNEL_XZ.*/CONFIG_KERNEL_XZ=y/'>)} {<.config>})
        (C {<sed>} {<-i>} {(DQ <'s/.*CONFIG_FB_VESA.*/CONFIG_FB_VESA=y/'>)} {<.config>})
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:USE_BOOT_LOGO)
              op: assign_op.Equal
              rhs: 
                {
                  (DQ 
                    (command_sub
                      left_token: <Id.Left_DollarParen '$('>
                      child: 
                        (command.Pipeline
                          children: [
                            (C {<grep>} {<-i>} {<Id.Lit_Other '^'> <USE_BOOT_LOGO>} 
                              {($ Id.VSub_DollarName '$SRC_DIR') <'/.config'>}
                            )
                            (C {<cut>} {<-f2>} {<-d> (SQ <'='>)})
                          ]
                          negated: F
                        )
                    )
                  )
                }
              spids: [440]
            )
          ]
        )
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$USE_BOOT_LOGO'))} 
                          {<Id.Lit_Equals '='>} {(DQ <true>)} {<Id.Lit_RBracket ']'>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (C {<sed>} {<-i>} {(DQ <'s/.*CONFIG_LOGO_LINUX_CLUT224.*/CONFIG_LOGO_LINUX_CLUT224=y/'>)} 
                  {<.config>}
                )
                (C {<echo>} {(DQ <'Boot logo is enabled.'>)})
              ]
              spids: [468 486]
            )
          ]
          else_action: [
            (C {<sed>} {<-i>} 
              {
                (DQ <'s/.*CONFIG_LOGO_LINUX_CLUT224.*/'> 
                  (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <'# CONFIG_LOGO_LINUX_CLUT224 is not set/'>
                )
              } {<.config>}
            )
            (C {<echo>} {(DQ <'Boot logo is disabled.'>)})
          ]
        )
        (C {<sed>} {<-i>} 
          {
            (DQ <'s/^CONFIG_DEBUG_KERNEL.*/'> 
              (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <'# CONFIG_DEBUG_KERNEL is not set/'>
            )
          } {<.config>}
        )
        (C {<sed>} {<-i>} {(DQ <'s/.*CONFIG_EFI_STUB.*/CONFIG_EFI_STUB=y/'>)} {<.config>})
        (command.Simple
          words: [{<echo>} {(DQ <'CONFIG_APPLE_PROPERTIES=n'>)}]
          redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<.config>})]
          do_fork: T
        )
        (C {<grep>} {<-q>} {(DQ <'CONFIG_X86_32=y'>)} {<.config>})
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '$?')} {<Id.Lit_Equals '='>} {<1>} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (command.Simple
                  words: [{<echo>} {(DQ <'CONFIG_EFI_MIXED=y'>)}]
                  redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<.config>})]
                  do_fork: T
                )
              ]
              spids: [610 624]
            )
          ]
        )
      ]
    )
    (C {<echo>} {(DQ <'Building kernel...'>)})
    (C {<make>} {<Id.Lit_VarLike 'CFLAGS='> (DQ ($ Id.VSub_DollarName '$CFLAGS'))} {<bzImage>} {<-j>} 
      {($ Id.VSub_DollarName '$NUM_JOBS')}
    )
    (C {<cp>} {<'arch/x86/boot/bzImage'>} 
      {($ Id.VSub_DollarName '$SRC_DIR') <'/work/kernel/kernel_installed/kernel'>}
    )
    (C {<echo>} {(DQ <'Generating kernel headers...'>)})
    (C {<make>} 
      {<Id.Lit_VarLike 'INSTALL_HDR_PATH='> ($ Id.VSub_DollarName '$SRC_DIR') 
        <'/work/kernel/kernel_installed'>
      } {<headers_install>} {<-j>} {($ Id.VSub_DollarName '$NUM_JOBS')}
    )
    (C {<cd>} {($ Id.VSub_DollarName '$SRC_DIR')})
    (C {<echo>} {(DQ <'*** BUILD KERNEL END ***'>)})
  ]
)