(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:MKIMAGE)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:15)
                command_list: 
                  (command.CommandList
                    children: [(C {(type)} {(-path)} {(DQ (${ Id.VSub_Name CROSS_COMPILE) (mkimage))})]
                  )
              )
            }
          spids: [14]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {(-z)} {(DQ (${ Id.VSub_Name MKIMAGE))} 
                  {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:42)
            )
          ]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:MKIMAGE)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:48)
                        command_list: 
                          (command.CommandList
                            children: [(C {(type)} {(-path)} {(mkimage)})]
                          )
                      )
                    }
                  spids: [47]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Id.Lit_LBracket '[')} {(-z)} {(DQ (${ Id.VSub_Name MKIMAGE))} 
                          {(Id.Lit_RBracket ']')}
                        )
                      terminator: (Token id:Id.Op_Semi val:';' span_id:70)
                    )
                  ]
                  action: [
                    (command.Simple
                      words: [
                        {(echo)}
                        {
                          (SQ 
                            (Token
                              id: Id.Lit_Chars
                              val: '"mkimage" command not found - U-Boot images will not be built'
                              span_id: 82
                            )
                          )
                        }
                      ]
                      redirects: [
                        (redir.Redir
                          op: (Token id:Id.Redir_GreatAnd val:'>&' span_id:85)
                          fd: -1
                          arg_word: {(2)}
                        )
                      ]
                    )
                    (command.Sentence
                      child: 
                        (command.ControlFlow
                          token: (Token id:Id.ControlFlow_Exit val:exit span_id:89)
                          arg_word: {(1)}
                        )
                      terminator: (Token id:Id.Op_Semi val:';' span_id:92)
                    )
                  ]
                  spids: [57 72]
                )
              ]
            )
          ]
          spids: [29 44]
        )
      ]
    )
    (C {(${ Id.VSub_Name MKIMAGE)} {(DQ ($ Id.VSub_At '$@'))})
  ]
)