Skip to content
Snippets Groups Projects
  1. May 16, 2023
  2. May 15, 2023
    • Leah Rowe's avatar
      download/coreboot: minor code cleanup · 52d87f5f
      Leah Rowe authored
      i'm pretty much finished now
      
      there might be a few more changes later,
      like stricter error handling, more verbose
      error messages, etc
      
      right now, it relies on -e to kill lbmk
      on error, and uses the exit command
      
      another planned change it to support
      other upstreams besides coreboot.org,
      such as the dasharo codebase
      
      the latter is *why* i refactored this
      download script, for asus kgped-d16
      52d87f5f
    • Leah Rowe's avatar
      download/coreboot: remove errant code · 7bd206b9
      Leah Rowe authored
      the build_error file is obsolete
      7bd206b9
    • Leah Rowe's avatar
      download/coreboot: tidy up variable names · bd82d90f
      Leah Rowe authored
      bd82d90f
    • Leah Rowe's avatar
      download/coreboot: run extra.sh from cbtree · 66d06afd
      Leah Rowe authored
      to my knowledge, this feature has never been used,
      but lbmk permits resources/coreboot/boardname/extra.sh
      to execute, as provided by the maintainer, with working
      directory set to: coreboot/boardname
      
      this could be used to extend lbmk in a number of ways
      
      for example, it could be used to patch 3rdparty/
      
      it could also be used to break coreboot in creative
      and novel ways. hint hint.
      66d06afd
    • Leah Rowe's avatar
      download/coreboot: avoid variable conflict · c4b0825c
      Leah Rowe authored
      the "board" variable in prepare_new_coreboot_tree()
      is also declared in fetch_coreboot_trees
      
      for the one in prepare_new_coreboot_tree, it's passed
      as an argument to the function, so give it a new name
      
      i learned that some shells have a global scope, when
      using variables of the same name between functions
      c4b0825c
    • Leah Rowe's avatar
      download/coreboot: fix downloads without argument · 0e1e9c17
      Leah Rowe authored
      this should download all trees:
      
      	./download coreboot
      
      without this patch, it doesn't
      
      with this patch, it works
      
      i overlooked this during earlier
      refactoring. auditing revealed it.
      0e1e9c17
    • Leah Rowe's avatar
      download/coreboot: much cleaner coding style · bea67353
      Leah Rowe authored
      top-down order, and *still* rfc 3676 compliant
      
      i finished simplifying the logic, and
      i split everything into smaller functions
      
      there is still more more polishing to do
      
      final touches will be done in new revisions
      bea67353
    • Leah Rowe's avatar
      download/coreboot: clone upstream via ./gitclone · 2d69072a
      Leah Rowe authored
      coreboot trees/patching is still handled
      specifically by "./download coreboot"
      
      command now available in lbmk:
      
      ./gitclone coreboot
      
      this *only* creates the directory at:
      coreboot/coreboot
      
      this directory is never used in builds.
      it is only used by download/coreboot to
      create patched trees for each mainboard
      2d69072a
    • Leah Rowe's avatar
      download/coreboot: simplify check · c17423e4
      Leah Rowe authored
      c17423e4
    • Leah Rowe's avatar
      download/coreboot: fix misnamed function · 00cafd70
      Leah Rowe authored
      00cafd70