Skip to content
Snippets Groups Projects
  1. Aug 14, 2024
    • Leah Rowe's avatar
      update config/submodule/coreboot · 7d7ccc02
      Leah Rowe authored
      
      i forgot to update it, when updating coreboot revs based
      on lbmk.
      
      Signed-off-by: default avatarLeah Rowe <info@minifree.org>
      7d7ccc02
    • Leah Rowe's avatar
      lib.sh: more verbose error in x_ · 01331db1
      Leah Rowe authored
      
      part of the command was cut off in the output
      
      Signed-off-by: default avatarLeah Rowe <info@minifree.org>
      01331db1
    • Libreboot project's avatar
      flashprog: bump to 639d563 (2024-08-02) · c0ce9121
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      The workaround-mx patch was rebased on one section in spi.c,
      because that part in upstream added QPI support; in the newly
      rebase mx patch, the workaround_mx behaviour is only
      honoured if QPI (Quad SPI) is not in use.
      
      Quad SPI is not used in practise, on the machines where this
      workaround is intended (GM45 ThinkPads with Macronix chips).
      
      This imports the following upstream changes:
      
      * 639d563 README: Update flashprog.org URLs
      * cbbd601 README: Update dependency list and Linux package names
      * 79451f1 README: Rename "Packaging" -> "Source Packaging"
      * 5b4695c README: Dial laptop warning down a little
      * 7224085 udev rules: Add some more IDs
      * 448457a ch347_spi: Add CH347F ID and loop over the entries
      * e39549b ch347_spi: Search for compatible USB interface
      * dfd0647 ich_descriptors: Refactor component density handling
      * b2ad9fd ich_descriptors: Make use of SPI_ENGINE_PCH100 marker
      * 140e22f chipset_enable: Make use of SPI_ENGINE_PCH100 marker
      * 869f0e7 ichspi: Use `swseq_data' on ICH7 paths too
      * eeee91b ichspi: Replace all switch/case on `ich_generation'
      * ecba1d8 ichspi: Drop redundant bail-out cases in ich_set_bbar()
      * e8babf4 ichspi: Use a single check to enable hwseq for PCH100+
      * fda324b ichspi: Introduce SPI_ENGINE_PCH100 marker
      * a1f6476 ichspi: Split ICH7 init out
      * 3f75d44 ich_descriptors: Remove `Dual Output Fast Read' for newer gens
      * 2862011 spi25: Try to set volatile quad-enable (QE) automatically
      * 4ac536b spi25_statusreg: Allow to write (non-)volatile bits specifically
      * b1d2bae dediprog: Fix and enable 4BA modes for SF600Plus-G2
      * d0afeef dediprog: Disable 4BA modes for SF100 w/ protocol v2
      * 1b1deda Implement QPI support
      * a1b7f35 dediprog: Implement multi-i/o reads
      * 008a44f dediprog: Split read/write command preparation by protocol
      * 4760b6e spi25: Implement multi-i/o reads
      * 0c9af0a spi25: Check quad-enable (QE) bit
      * 930d421 spi25: Introduce generic spi_prepare_io()/spi_finish_io()
      * 8d0f465 spi25: Extract 4BA preparations into new `spi25_prepare.c`
      * 044c9dc Add FT4222H support
      * fc7c13c linux_gpio2_spi: Implement multi i/o
      * 5fc3154 bitbang_spi: Implement multi-i/o
      * d16a911 bitbang_spi: Move API into its own header file
      * 226bb87 flashchips: Add missing QE-bit definitions
      * 4fa39c5 flashchips: Fill multi-i/o gaps in MX25U family
      * 5f50999 flashchips: Fill multi-i/o gaps in MX25R family
      * 46552c8 flashchips: Fill multi-i/o gaps in MX25L family
      * 96786d0 flashchips: Fill quad-i/o gaps in XM25Q family
      * a26a3c6 flashchips: Fill dual-i/o gaps in W25X family
      * 2133f59 flashchips: Fill quad-i/o gaps in W25Q family
      * 68573af flashchips: Split GD25Q127C and GD25Q128C
      * 4da971f flashchips: Fill quad-i/o gaps in GD25*Q families
      * f7e2d97 spi: Allow to define a quad-enable (QE) configuration bit
      * 1412d9f spi: Rework FEATURE_QPI
      * d518563 spi: Prepare for multi i/o and dummy bytes
      * bd72a47 spi25_statusreg: support reading/writing configuration register
      * 3d728e7 spi25_statusreg.c: support reading security register
      * a358b14 flashchips: Split W25Q64.W -> W25Q64DW | W25Q64FW/W25Q64JW...Q
      * 3127db1 manibuilder: Drop legacy flashrom tag collections
      * 619d9c0 manibuilder: Use `test_build.sh'
      * 6560bba manibuilder/almalinux: Install `diffutils' for new `test_build.sh'
      * c7b549e test_build.sh: Compare output for -L of Make and Meson builds
      * 72b30a0 test_build.sh: Don't try to run cross-compiled programs
      * 3d2f212 test_build.sh: Allow to override Make and Meson commands
      * 4eb9748 test_build.sh: Run tests for both Make and Meson builds
      * 8279457 manibuilder: Add Alpine Linux 3.18 & 3.19 images
      * 15e9b10 manibuilder/alpine: Install libjaylink-dev when available
      * b8b3593 manibuilder: Add images for Fedora 38..40
      * 7b05f09 manibuilder: Add images for Ubuntu 24.04 "Noble Numbat"
      * 5e8b339 manibuilder/anita: Add NetBSD 10.0 i386 & amd64 images
      * 61da8c7 manibuilder/anita: Export library path for libusb
      * 39152af manibuilder: Set sourcearcade.org as default source
      * 20073e7 Properly clear erase-block selection when bigger block is chosen
      * 3824c8d ichspi: Allow all opcodes when the "opmenu" isn't locked
      * 0d4354e flashchips: Add W25Q32JV-.M
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      c0ce9121
    • Libreboot project's avatar
      seabios/default: bump to ec0bc256 (2024-06-24) · 4d53d491
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      This brings in a single change:
      
      commit ec0bc256ae0ea08a32d3e854e329cfbc141f07ad
      Author: Gerd Hoffmann <kraxel@redhat.com>
      Date:   Mon Jun 24 10:44:09 2024 +0200
      
          limit address space used for pci devices, part two
      
      This increases compatibility with i686 hosts, when allocating
      memory for pci devices.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      4d53d491
    • Libreboot project's avatar
      grub/*: Bump to rev b53ec06a1 (2024-06-17) · 8d6376e6
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      Of note: upstream has made several improvements to memory
      management, and several fixes to file systems.
      
      User-friendly change to LUKS: if the passphrase input failed,
      the user is prompted again for the correct passphrase, instead
      of GRUB just failing. Similar to cryptsetup luksOpen behaviour
      under Linux.
      
      This pulls in the following changes from upstream (gnu.org):
      
      * b53ec06a1 util/grub-mkrescue: Check existence of option arguments
      * ab9fe8030 loader/efi/fdt: Add fdtdump command to access device tree
      * 0cfec355d osdep/devmapper/getroot: Unmark 2 strings for translation
      * f171122f0 loader/emu/linux: Fix determination of program name
      * 828717833 disk/cryptodisk: Fix translatable message
      * 9a2134a70 tests: Add test for ZFS zstd
      * f96df6fe9 fs/zfs/zfs: Add support for zstd compression
      * 55d35d628 kern/efi/mm: Detect calls to grub_efi_drop_alloc() with wrong page counts
      * 61f1d0a61 kern/efi/mm: Change grub_efi_allocate_pages_real() to call semantically correct free function
      * dc0a3a27d kern/efi/mm: Change grub_efi_mm_add_regions() to keep track of map allocation size
      * b990df0be tests/util/grub-fs-tester: Fix EROFS label tests in grub-fs-tester
      * d41c64811 tests: Switch to requiring exfatprogs from exfat-utils
      * c1ee4da6a tests/util/grub-shell-luks-tester: Fix detached header test getting wrong header path
      * c22e052fe tests/util/grub-shell: Add flexibility in QEMU firmware handling
      * d2fc9dfcd tests/util/grub-shell: Use pflash instead of -bios to load UEFI firmware
      * 88a7e64c2 tests/util/grub-shell: Print gdbinfo if on EFI platform
      * b8d29f114 configure: Add Debian/Ubuntu DejaVu font path
      * 13b315c0a term/ns8250-spcr: Add one more 16550 debug type
      * 8abec8e15 loader/i386/multiboot_mbi: Fix handling of errors in broken aout-kludge
      * d35ff2251 net/drivers/ieee1275/ofnet: Remove 200 ms timeout in get_card_packet() to reduce input latency
      * 86df79275 commands/efi/tpm: Re-enable measurements on confidential computing platforms
      * 0b4d01794 util/grub-mkpasswd-pbkdf2: Simplify the main function implementation
      * fa36f6376 kern/ieee1275/init: Add IEEE 1275 Radix support for KVM on Power
      * c464f1ec3 fs/zfs/zfs: Mark vdev_zaps_v2 and head_errlog as supported
      * 2ffc14ba9 types: Add missing casts in compile-time byteswaps
      * c6ac49120 font: Add Fedora-specific font paths
      * 5e8989e4e fs/bfs: Fix improper grub_free() on non-existing files
      * c806e4dc8 io/gzio: Properly init a table
      * 243682baa io/gzio: Abort early when get_byte() reads nothing
      * bb65d81fe cli_lock: Add build option to block command line interface
      * 56e58828c fs/erofs: Add tests for EROFS in grub-fs-tester
      * 9d603061a fs/erofs: Add support for the EROFS
      * 1ba39de62 safemath: Add ALIGN_UP_OVF() which checks for an overflow
      * d291449ba docs: Fix spelling mistakes
      * 6cc2e4481 util/grub.d/00_header.in: Quote background image pathname in output
      * f456add5f disk/lvm: GRUB fails to detect LVM volumes due to an incorrect computation of mda_end
      * 386b59ddb disk/cryptodisk: Allow user to retry failed passphrase
      * 99b4c0c38 disk/mdraid1x_linux: Prevent infinite recursion
      * b272ed230 efi: Fix stack protector issues
      * 6744840b1 build: Track explicit module dependencies in Makefile.core.def
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      8d6376e6
    • Leah Rowe's avatar
      coreboot/default: bump to 97bc693ab (2024-07-29) · 4564c44e
      Leah Rowe authored
      
      same as the recent update in lbmk, but adapted for cbmk,
      e.g. the patches to disable microcode blobs by default.
      
      i copied it from the lbmk update but updated nuke.list
      and excluded certain patches not needed in canoeboot, such
      as the new dell latitude patches and haswell nri
      
      The coreboot/dell tree was also merged to /default, just
      like in lbmk. This puts Canoeboot completely  in sync,
      but with deblobbing as is customary for Canoeboot.
      
      Signed-off-by: default avatarLeah Rowe <info@minifree.org>
      4564c44e
    • Libreboot project's avatar
      uefitool: Only define ACCESSPERMS on *nix · e4d2c389
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      I re-read the modified code, and it has defines in place
      for building on Windows; I was defining ACCESSPERMS
      universally, but it should only be defined for non-Windows
      systems, which the context in this code means Linux/BSD.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      e4d2c389
    • Libreboot project's avatar
      uefitool: Add patch working around musl libc issue · 12742916
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      musl libc is very conservative in what it implements,
      preferring a very "pure" libc implementation. this means
      that it lacks many of the niceties found in others like
      the GNU C Library; the latter implements many BSD libc
      extensions, for example.
      
      ACCESSPERMS is a #define in BSD libc that does:
      S_IRWXU | S_IRWXG | S_IRWXO
      
      Essentially, it provides a bitwise OR providing chmod 0777,
      which can be used as shorthand in calls to functions such
      as mkdir() available in all libc implementations.
      
      In the case of uefitool, this define is indeed used on mkdir.
      Conditionally re-define ACCESSPERMS, if undefined, so that musl
      libc can be used when building uefitool.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      12742916
  2. Jul 28, 2024
    • Libreboot project's avatar
      lib.sh: new function mk() to handle trees in bulk · 8b74fe2c
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      single-tree projects cannot be handled in bulk, e.g.
      ./mk -f project1 project2 project3
      
      that is still the case, from the shell, but internally
      it is now possible:
      mk -f project1 project2 project3
      
      mk() is a function that simply handles the given flag,
      and all projects specified.
      
      it does not handle cases without argument, for example
      you cannot do:
      mk -f
      
      arguments must be provided. it can be used internally,
      to simplify cases where multiple single-tree projects
      must be handled, but *also* allows multi-tree projects
      to be specified, without being able to actually handle
      trees within that multi-tree project; so for example,
      you can only specify coreboot, and then it would run
      on every coreboot tree.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      8b74fe2c
  3. Jul 26, 2024
  4. Jul 22, 2024
    • Libreboot project's avatar
      rom.sh: don't dry-run mkcoreboottar · bd517a3d
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      same as the last change. make the main function a wrapper
      that dry-runs the real function.
      
      if the "dry" variable is blank, it executes.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      bd517a3d
    • Libreboot project's avatar
      rom.sh: don't run mkcorebootbin on trees -d · 64e99021
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      don't let it execute during dry builds
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      64e99021
    • Libreboot project's avatar
      support ./mk in place of ./update trees · acac32f0
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      it's a shortcut command. a new symlink.
      
      ./update trees -b flashprog
      
      can instead do:
      
      ./mk -b flashprog
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      acac32f0
    • Libreboot project's avatar
      trees: initialise badhash no n, not empty string · 3fd2769b
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      this is another alternative to the previous fix. this one
      is therefore now a pre-emptive fix, in case other code is
      written in the future that makes use of badhash.
      
      the badhash variable in a y/n variable, so initialise to n.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      3fd2769b
    • Libreboot project's avatar
      rom.sh: fix buggy deletion of cbutils · c5364e6d
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      when badhash=y, the utils should be deleted, but
      the check is deleting if badhash isn't n. if the
      hash check isn't being performed, then this will
      always be the case and the utils are always deleted.
      
      make it positively delete the file only if badhash=y,
      not when it isn't n. while this may not sound very
      different, it will prevent the utils being deleted and
      re-build endlessly in other cases, like when building
      release archives and running the inject --nuke mode
      on every image that gets built.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      c5364e6d
    • Libreboot project's avatar
      rom.sh: also add grub to seabios images · 792efc65
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      we want multiple seagrub images made, with different
      keymaps, but we only want one non-seagrub image.
      
      however, we also want grub in the non-seagrub image.
      it just means that seabios is primarily what the user
      wants, and they might occasionally use grub, whereas
      the seagrub images are for people who primarily want
      grub but may occasionally access the seabios menu.
      
      right now, the seabios images really only contain seabios,
      but there's no harm in adding grub to them.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      792efc65
    • Libreboot project's avatar
      rom.sh: copy tmprom to TMPDIR for modification · 6ddc02a7
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      don't rely on build/coreboot.rom staying in place,
      because sometimes it can get purged under certain
      conditions, due to idiosyncrasies in the coreboot
      build system, even when we don't explicitly clean it
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      6ddc02a7
    • Libreboot project's avatar
      rom.sh: re-add seabios-only roms and grub keymaps · d08b175a
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      this time, only handle multiple keymaps on seagrub
      images. for images where seabios is first but does
      not immediately load grub, whether grub is still
      available in flash, just do one image (US Qwerty)
      
      this still results in fewer images per target than
      Libreboot 20240612, but should prevent most users
      from being annoyed. i got a few people asking
      repeatedly, and i hadn't documented yet how to add
      keymap.gkb or how to remove bootorder, to get a
      different keymap or disable seagrub respectively.
      
      i anticipate that i'll get such questions a lot, even
      if i do document it, so i'm reversing that decision.
      
      it doesn't result in much extra code. the new design
      in lbmk makes this sort of thing much simpler.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      d08b175a
  5. Jul 21, 2024
  6. Jul 19, 2024
  7. Jul 18, 2024
    • Libreboot project's avatar
      trees: hardcode makeargs for xgcc · 71091e03
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      if coreboot itself is being handled, crossgcc has the
      correct makeargs, setting the number of build threads.
      
      however, other projects can specify "xtree" pointing to
      a given coreboot tree, and build crossgcc for it.
      
      one workaround may be to use trees -d coreboot TREE,
      but then extra code would have to be written to make
      it avoid other things like building cbfstool, which is
      not required for just building crossgcc.
      
      the cleanest way to do it is to simply hardcode it. the
      value is set exactly the same as regular coreboot makeargs.
      
      this fixes a bug, where some builds of crossgcc are made
      on a single thread, rather than using XBMK_THREADS. this
      patch forces it to always use CPUS=$XBMK_THREADS
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      71091e03
    • Libreboot project's avatar
      allow using coreboot's build system to add payload · 1bc484db
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      lbmk must still define payloads, but specific configs
      may use coreboot's build system instead.
      
      you might use this to add your own config with, say,
      tianocore payload, using coreboot.git to build it,
      rather than using lbmk's choice of payloads.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      1bc484db
    • Libreboot project's avatar
      trees: remove unnecessary command · 93a476b4
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      we no longer need to remove cache/ per project, because
      it's removed in bulk at the end, in the main build script,
      when generating release archives.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      93a476b4
    • Libreboot project's avatar
      build: remove cache/ on making releases · ae3966a0
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      ae3966a0
    • Libreboot project's avatar
      unify caching of files into cache/ · 0cf0fdcf
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      hash/ becomes cache/hash/
      
      repo/ becomes cache/repo/
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      0cf0fdcf
    • Libreboot project's avatar
      cache downloaded files(module) to cache/file/HASH · 8bb3730e
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      lib.sh download() is used by subfile handling in git.sh,
      e.g. crossgcc tarballs.
      
      they are not currently cached, but are downloaded directly
      in place.
      
      cache them, under cache/file/, saved with the name equal
      to the checksum, so: cache/file/CHECKSUM
      
      if the given cached file exists, use it as-is for simple
      copy, instead of curl. this avoids re-downloading a lot of
      crossgcc tarballs, where different coreboot trees may use
      some archives that are the same throughout.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      8bb3730e
    • Libreboot project's avatar
      git.sh: remove previous tmprepo if args>5 · 0d55d7b2
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      if doing a retry, the directory may still exist, which
      would make git clone yield an error response; the existing
      directory will have been the one that failed to reset, so
      let's delete it.
      
      the one deleted is not the cache (repo/PROJECT/), thus
      otherwise maintaining current behaviour.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      0d55d7b2
    • Libreboot project's avatar
      git.sh: try direct clone if cached git fails · 3e2e5ecf
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      normally, a project is cached at repo/PROJECT/, and
      cloned from there to the final destination.
      
      errors lead to a calling of $err, but this will result
      in a return if done from inside a subshell, of non-zero
      value, so use this to re-try with a 6th argument when
      calling tmpclone().
      
      in most cases, this fallback will never kick in, but
      it will kick in resetting or patching the cached clone
      fails; specifically, we are interested in the reset part.
      
      a given project name may change repositories in lbmk at
      a given time. if this happens, and the old one is cached,
      the overall result of this patch is that lbmk will fall
      back to the old behaviour, where git urls are tried
      directly, without caching.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      3e2e5ecf
    • Libreboot project's avatar
      git.sh: re-try git pull three times · 03c9670f
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      mitigate jittery internet connections
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      03c9670f
    • Libreboot project's avatar
      trees: auto-delete+auto-rebuild if project changes · 055c9be1
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      actual source code is not scanned, but config directories are
      scanned. simply get the checksum of each file under config/
      pertaining to a given project/tree, and also for the given
      target. coreboot utilities are also handled.
      
      if it changes, in any way, delete and re-build automatically.
      
      such deletions should probably still be done manually, as part
      of understanding the build system, but this change should make
      the build system much easier to use during development.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      055c9be1
    • Libreboot project's avatar
      trees: also remove single-tree repo/p/ · 2d794a83
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      single-tree repos were not previously cached, but now
      they are and they have to be handled.
      
      this, as also alluded to in the previous commit, is done
      when preparing release archives (XBMK_RELEASE=y)
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      2d794a83
    • Libreboot project's avatar
      trees: remove repo/p, not src/p/p · b564f5b8
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      repo/p/ does not have its revision reset, so it
      changes unpredictably, and it's not used in builds.
      
      this used to be src/p/p/ - the context here is multi-tree
      projects, in source archives.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      b564f5b8
    • Libreboot project's avatar
      git.sh: don't download to src/project/project/ · c44ff5ac
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      re-use repo/project/
      
      this means that single- and multi-tree projects now
      have a unified cached git repo location, as per the
      new rules, thus saving on disk space usage.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      c44ff5ac
    • Libreboot project's avatar
      git.sh: cache git downloads to repo/ · 3590a53e
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      do it based on the URL, e.g. https://review.coreboot.org/coreboot
      
      
      becomes repo/coreboot
      
      the downside is if you have two projects with repo urls specifying
      the same string at the end, but this isn't the case at the moment
      and likely won't be the case, but it's a theoretical issue.
      
      this saves on bandwidth when downloading identical submodule repos
      between multiple trees within the same multi-tree project
      
      for example, coreboot 3rdparty/vboot is no longer downloaded more
      than once, instead cloned locally on subsequent downloads.
      
      if repo/DIR exists, git-pull is attempted, but errors do not result
      in a non-zero exit, by design.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      3590a53e
    • Libreboot project's avatar
      remove util/autoport · 2823ccc4
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      upstream has merged all of the changes that it contained,
      so we don't need this anymore. we'll have the newer upstream
      changes on the next general revision updates for coreboot,
      within config/coreboot/
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      2823ccc4
    • Libreboot project's avatar
      trees: move dependency building to new function · a2945302
      Libreboot project authored and Leah Rowe's avatar Leah Rowe committed
      
      configure_project is a bit big. move the dependencies
      build logic to a new function.
      
      it may be desirable in future to make the way that
      function works the way all build commands are done.
      
      for example:
      
      ./update trees -b coreboot x230_12mb
      
      would become:
      
      ./update trees -b coreboot/x230_12mb
      
      this would enable to mix and match multi/single tree
      projects. for now, leave things as they are.
      
      Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
      a2945302
Loading