summaryrefslogtreecommitdiff
path: root/include/get.sh
AgeCommit message (Collapse)Author
10 dayssplit up include/Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysxbmk: remove xbmkdir()Leah Rowe
pointless function. literally pointless. it is literally the most pointless function ever written in the history of functions. literally pointless in every possible way. Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysget.sh: remove redundant checkLeah Rowe
we don't pull anything from supermicro's site. we did briefly, in an earlier port for that one supermicro board. don't maintain dead code. dead code has one purpose: be deleted. Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysget.sh: add try_fetch_copy functionLeah Rowe
just a skeleton that calls the curl function Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysmore cleanupLeah Rowe
this will be the last time, i promise Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysget.sh: even more cleanup (simplified fetch)Leah Rowe
fetch_submodule now contains just the right amount of eval, which means all of the eval. Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysget.sh: further cleanupLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysget.sh: simplify xbgetLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysxbmk: re-introduce condensed if statementsLeah Rowe
i've been careful to makely only use it on AND operations, not onse that use OR. a lot of blocks are not condensed, unlike previously when this design was used. i removed the condensed design because it made the code allegedly easier to read, but i found it harder to read and found the code looked dirty. this change makes it clean again, but i've done it in a way where the shorthand conditional statements are easy to understand for most people. this strikes a compromise; i would go further. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysxbmk: reintroduce setvar as newvar (init only)Leah Rowe
use the simpler logic recently introduced, generalised but it only sets variables to empty. this is safer than the previous design, and brings the same reduction in sloccount overall since i wasn't doing anything other than emptying variables anyway, when it was used before. i didn't like the long list of variables inside files, so this makes everything more readable. Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysupdate lbmk headersLeah Rowe
i made several modificatinos to several files thus for in 2026, in the main part of the build system. i've added 2026 to the ones that i modified. Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysRevert "xbmk: general code cleanup"Leah Rowe
This reverts commit 1b65e8914c4ad1e140b573fa6bc8feead14542ad. NOTE: cleanup of xbmk_git_init was retained this "cleanup" actually made the code harder to read. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-06include/get.sh: 3-way merge on git amLeah Rowe
this will make managing updates easier. which will be soon, because i have a lot of patches. no idea why i didn't add this before. normally, i just copy a directory and git-fetch, then cherry-pick as i please. this will make it trivial to just update a revision and merge the patches. then i can just intervene only when necessary, on a given src tree. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-30xbmk: general code cleanupLeah Rowe
make the code much easier to read i also cleaned up the recent git identity check Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-03-29Revert "lbmk: use mkhtemp in libreboot's build system"Leah Rowe
This reverts commit e54862fcccca0325da8ae2879c1fa965267d3df0. nope. not ready yet. will fix it later.
2026-03-29lbmk: use mkhtemp in libreboot's build systemLeah Rowe
i added a fake -t option, which doesn't actually read optarg, so that -t usage can just override the normal template. mkhtemp isn't ready for distros yet, but it's ready for lbmk. i hacked the makefile to also copy the binary to mktemp, and i set PATH in lbmk so that this binary is used insttead of the one on your system. that way, upstream projects use it. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-02-21get.sh: properly initialise _uaLeah Rowe
it is currently only initialised inside case conditions. this is fine on most shells, but some of them can be a bit buggy here. initialise it empty and then override. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-02-14Add Supermicro X11SSH-F/LN4F portRon Nazarov
Surprisingly, SeaBIOS VGA output works (coreboot documentation says it doesn't). I'm using a static CMOS option table currently (like most other boards supported in libreboot), but maybe it would be better to switch to the CBFS file option table. The default option table enables hyperthreading, overriding the compile-time setting. I'm also using a ME/SPS image extracted from the official BIOS update for this board. Unfortunately, https://www.supermicro.com/Bios/* is excluded from crawlers in robots.txt so it's not in archive.org, so I haven't been able to find a backup download URL. I also needed to set the user-agent for fetching the update to "curl/8.6.0" because the default user-agent override used by lbmk resulted in a 403 error. deguard is not required (there's no bootguard on this board). SPS does not implement CPU replacement detection which means that the MRC cache does not work and RAM training needs to happen on every boot. To avoid this it may be possible to run ME instead of SPS on this board, but I tried both the ME image used on the OptiPlex 3050 Micro in libreboot and one from the ASRock C236 WSI and they both hung at "[INFO ] POST: 0x92" (POSTCODE_FSP_MEMORY_INIT). The memtest86+ build included with libreboot doesn't work with USB keyboards and this board doesn't have a PS/2 port, which is annoying.
2025-11-15get.sh: reduce indendation in fetch_targetsLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-11-15get.sh: reduce indentation in clone_projectLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-17get.sh: return clone_project if multi-treeLeah Rowe
this is the true fix, replacing the fixes previously reverted. the problem with the old fix was that it was a hack, and could result in the archived backup of a code repo being the wrong one; the destination was the one for the main repo, but what if we were cloning the backup? Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-17Revert "get.sh: don't frivolously copy tmp git clones"Leah Rowe
This reverts commit b840cf3a832de815a87d9d10b698eec97aceb342.
2025-10-17Revert "get.sh: remove a redundant check"Leah Rowe
This reverts commit e2a97455cc25921dcb9f5e3a4bf06cdfb3e34b49.
2025-10-17get.sh: remove a redundant checkLeah Rowe
loc is never empty. if it is, it's a bug. don't hide bugs. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-17get.sh: don't frivolously copy tmp git clonesLeah Rowe
this fixes a regression in a previous patch, this time also taking account for the different cache locations. all of get.sh needs to be purged, and re-written clean. it looks clean. but it's years of hacks. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-17Revert "get.sh: make forcepull a macro"Leah Rowe
This reverts commit b3232a7c4a6466381d798d7beda56fd020d86d54.
2025-10-17get.sh: make forcepull a macroLeah Rowe
: Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-16xbmk: sort global variables alphabeticallyLeah Rowe
also separate some of the special ones. this makes the variables easier to read/find. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-16get.sh: use the same directory map as --mirrorLeah Rowe
Don't hardcode the cache directory, and don't store remotes anymore. This change retains compatibility in practice, with the older directory location, because it's extremely unlikely that newly generated locations would conflict with old ones. With this new change, non-mirror git clone caches are now done twice; one directory per remote, rather than one directory with two remotes. This is just inherently much more reliable. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-16get.sh: use --keep-cr on git-amLeah Rowe
Some repositories might use CR-LF line endings. This option keeps Git from mangling patches when merging. Repositories that don't do this, such as ALL repositories currently used by xbmk, will be unaffected by this change. This is being done in preparation for importing MrChromebox edk2, as Intel's own edk2 repository on GitHub uses these. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-16get.sh: More reliable git remote cachingLeah Rowe
Don't do one repository for all remotes. Do one *clone* per remote. This also means that users no longer download information twice, in practice, because the backup repository will only be downloaded if the main one didn't work. Theoretically, this change is makes the process less efficient, but in practise it's more reliable now. We do now use --mirror on the git clone command for caches, but we already did git pull --all before. This just ensures that we absolutely have all local code. NOTE: The new code isn't used by default. To use it, you must do: export XBMK_CACHE_MIRROR="y" Otherwise, the old behaviour will continue to be used. This is because the new code, while correct, puts more strain on upstream servers (more code being downloaded), and can result in higher amounts of disk space being used. The old behaviour wasn't broken, so we'll also support that method. TODO: perhaps also have a check in place to re-use both caches, where available, regardless of XBMK_CACHE_MIRROR? Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-07get.sh: use git-show instead, for rev checksLeah Rowe
whatchanged is deprecated, and results in an error on modern git versions, prompting you to include the --i-still-use-this argument what absolute, utter fucking arrogance. i use the whatchanged feature every fucking day. i will be complaining to git-scm.com about this. but that's what we do in libreboot. we adapt. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: don't call mkdir. use xbmkdir (new function)Leah Rowe
xbmkdir checks if a directory exists, before running mkdir, and then still uses -p i was testing xbmk on arch linux today, and noticed that it errored out when a directory already exists. i'm mitigating against buggy or differently behaving mkdir implementations this way, by wrapping around it. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: use sbase sha512sum, not host sha512sumLeah Rowe
the --status flag seems to be a GNUism as stated in the previous commit, i import sbase suckless now, so as to have a consistent implementation of sha512sum. this ensures that its output is reliable, when i'm using the output of this command within backticks. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04tree.sh: rename xtree to xgcctree, for clarityLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04get.sh: delete tmp patch list when doneLeah Rowe
yet another oversight Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04get.sh: sort patches when applyingLeah Rowe
this was an oversight in my recent patch unrolling the condensed code lines, to remove eval statements. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: remove even more eval statementsLeah Rowe
in one or two cases, the use of eval is retained, but modified so as to be safer. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: remove the setcfg functionLeah Rowe
this allows me to remove several eval calls, and the errors relating to configs can now show exactly which function they occured in, allowing for easier debugging. once again, eval should be used sparingly if at all. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: remove more eval statementsLeah Rowe
i will eventually find a way to remove them all, while still leaving the code completely clean. in practise, i never use the contents of a file for eval and the inputs are carefully checked. however, over-use of eval is always a bad idea in shell scripting. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-04xbmk: general cleanup: unroll condensed code linesLeah Rowe
i overlooked a number of lines, during previous cleanup Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-02get.sh: reduce the number of eval statementsLeah Rowe
also split up try_fetch() Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-01get.sh: allow force-pull via -F instead of -fLeah Rowe
use of ./mk -F behaves the same as -f before the previous commit. this can be useful, during development when we want to update revisions. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-10-01get.sh: only pull if the local revision is missingLeah Rowe
we pull from upstream in cached git repos, before performing an operation, and we run from the cache, but we do this every time, even if a local revision exists, defeating the purpose of the caching; on unreliable/intermittent internet connections, this can cause a problem. this also causes us problems with gnulib.git and grub.cfg, which for *some reason* are really slow, even when doing a pull. this change improves the efficiency of the build system, during release builds, on a development repository where we already have lots of caches. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-26get.sh: remove unnecessary check in try_copyLeah Rowe
the check for whether a file is present is unnecessary, because the following cp command would also print the file name if it doesn't exist, and exit with the same non-zero status. let cp do the work. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-26get.sh: rename try_file to try_fetchLeah Rowe
the previous function name was misleading, because this tries multiple methods including git and curl. therefore, this was renamed to match what it dose. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-26xbmk: tidy up some if statementsLeah Rowe
this is an extension of the previous work to unroll most of the condensed code lines. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-24make notices a bit more readableLeah Rowe
add line breaks, so that the license and author are visually separated. this makes it easier to read. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-24get.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-18Revert "xbmk: don't use backticks for command substitution"Leah Rowe
This reverts commit 4999a49de39667b3239fc2010d0e99c958b29417.