summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
15 hoursrom.sh: reduce indendation in check_coreboot_utilsHEADmasterLeah Rowe
call it via fx_, instead of using a for loop Signed-off-by: Leah Rowe <leah@libreboot.org>
15 hoursrelease.sh: simplify release()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
16 hoursrelease.sh: clean up the vdir after releaseLeah Rowe
do this after moving the version directory within it. Signed-off-by: Leah Rowe <leah@libreboot.org>
16 hoursrelease.sh: remove src_dirname variableLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
16 hoursrelease.sh: build in tmp directory firstLeah Rowe
don't move to the real directory until the work is done. that way, a re-try can be done, while analysing the old files. it is created based on the tmpdir, under XBMK_CACHE/ Signed-off-by: Leah Rowe <leah@libreboot.org>
17 hoursrelease.sh: remove unnecessary mkdir commandLeah Rowe
the following git clone command creates that directory Signed-off-by: Leah Rowe <leah@libreboot.org>
17 hoursrelease.sh: split up build_release()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
17 hoursrelease.sh: delete tmp/cache from the tarballLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
17 hourslib.sh: remove rmgit()Leah Rowe
We don't need to call it from git.sh, because it's only being done when building a release anyway, and we already run rmgit when doing a release. The function itself is only two simple fx_ calls, so we can just do that from build_release(). Signed-off-by: Leah Rowe <leah@libreboot.org>
19 hourslib.sh: remove mk()Leah Rowe
i don't need it. i can use fx_ instead, on functions that previously called mk(). Signed-off-by: Leah Rowe <leah@libreboot.org>
20 hourslib.sh: move xbmkget() to git.shLeah Rowe
in cbmk, it's only used from there. in lbmk, it's also used from vendor.sh. however, i plan to further expand git.sh at some point, tidying it up so that git cloning is also done from xbmkget, with dlop=git and git.sh would then be renamed to get.sh Signed-off-by: Leah Rowe <leah@libreboot.org>
20 hourslib.sh: move mksha512sum() to vendor.shLeah Rowe
this is unused in cbmk. it's only used from vendor.sh. therefore, lbmk shall have it in vendor.sh. Signed-off-by: Leah Rowe <leah@libreboot.org>
21 hourslib.sh: split up try_file()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
21 hourslib.sh: move _ua to try_file()Leah Rowe
it's only used there Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursmrc.sh: minor cleanupLeah Rowe
group the cbfs command to the extract command, since they are related. this makes it clearer that the following command to extract refcode is unrelated. Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursmrc.sh: update copyright year to include 2025Leah Rowe
I've made several modifications to the file, this year. Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursinject.sh: remove the hashfiles variableLeah Rowe
we only use it once, and it's a trivial string Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursinject.sh: define xchanged here insteadLeah Rowe
this is used here, and also needed in cbmk. Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursvendor.sh: remove check_vcfg()Leah Rowe
We don't need it. The vfile variable is only used in one place, and only once, for use with setcfg. Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursvendor.sh: simplify getvfile()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
22 hoursvendor.sh: simplify setvfile()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
23 hourslib.sh: use fx_ in rmgit()Leah Rowe
with fx_, i have more much granular control over how errors are handled. Signed-off-by: Leah Rowe <leah@libreboot.org>
23 hourslib.sh: split up xbmkget()Leah Rowe
it was too complicated. most of the logic has been moved to a new function, try_file() the for loop is handled by xbmkget(), whereas each try is now handled in try_file() Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysinject.sh: only compile nvmutil if neededLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysinject.sh: simplified serprog checkLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysvendor.sh: tidy up variablesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysvendor.sh: split up setvfile()Leah Rowe
split the actual bootstrapping to getvfile() setvfile only sets the config, but then it will call getvfile() to act on that config. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysremove another confusing messageLeah Rowe
the current message says the file name, and implies that the given file has already been updated. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysinject.sh: Remove confusing path on tar creationLeah Rowe
The path is wrong. The correct path is printed afterward. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysinject.sh: re-add mac address confirmationLeah Rowe
it just makes the script more user-friendly Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysinject.sh: further cleanup for vendor.shLeah Rowe
i moved out more code to vendor.sh, to reduce the amount of lbmk-only code on inject.sh this should reduce the number of merge conflicts even further, when cherry picking from lbmk to cbmk. in particular, vendor file insertion is now handled entirely through the "setvfile" function, instead of from inject.sh, which seems counterintuitive, but remember that inject.sh also does MAC addresses. therefore, the inject.sh script is now primarily for inserting MAC addresses, and handles vendor downloads in a slightly more convoluted way, but still easy enough to understand if you read it a bit. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daystree.sh: only create elfdir in copy_elf()Leah Rowe
otherwise, we create empty directories where build.list doesn't exist, like on coreboot. we already create a directory when needed, when actually copying elf files, so let's just leave it at that. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daystree.sh: simplified srcdir check on make-cleanLeah Rowe
this is the check that ksips a given target if the tree directory does not exist, on the clean command. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysinject.sh: split to vendor.sh the download partsLeah Rowe
to the extent feasible, keep lbmk-specific parts on inject.sh to a minimum. this will later be used to re-sync cbmk's inject.sh with lbmk's, because cbmk's one doesn't handle vendor files. the way this is designed now, with this patch, will make cherry-picking lbmk to cbmk easier in the future, when keeping this part of cbmk in sync with lbmk. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysinject.sh: split up the inject functionsLeah Rowe
generally go for a more linear function order, and split up any functions. the objective is to have functions only suitable to libreboot be separate. more splitting will be done, and eventually the vendor-download functions will be split into a new file, as will several other functions. this is being done as part of an effort to bring the libreboot and canoeboot versions of inject.sh in sync, so that from now on, cherry picking between the two projects will produce fewer merge conflicts and require a lesser amount of post-merge maintenance. some other minor cleanup has also been done; for example, the "need_files" variable is redundant and was removed. Signed-off-by: Leah Rowe <leah@libreboot.org>
4 dayslbmk: use x_ instead of err, where appropriateLeah Rowe
many places in lbmk used err, because older versions of x_ did not handle globbing properly. however, use of x_ is preferable on trivial commands. the only time err() should be called is what it has to be, when x_ can't work, or when a more useful error message is needed, for context. Signed-off-by: Leah Rowe <leah@libreboot.org>
4 daysmrc.sh: operate on refcode in tmp area firstLeah Rowe
that way, the Intel GbE device can be enabled there, and only then would the refcode file be copied. otherwise, the current behaviour would leave buggy refcode in place, if the dd command failed. Signed-off-by: Leah Rowe <leah@libreboot.org>
4 daysmrc.sh: fix outdated info in the commentLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysinject.sh: use direct comparison for metmpLeah Rowe
use of the e function would slow down execution, and it's mostly unnecessary in this case. the e function is only needed if we want to confirm via user message that a file exists. that is not needed here. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysinject.sh: use subshell to speed up find_me()Leah Rowe
the current test allows a further extraction after running mecleaner, even if me.bin was found. further, any recursive calls that exit non-ze don't lot the loop acthually stop, unless we subshell that too, otherwise fx_ is returned to return 0 when a given command it runs returns 1, or more specifically: the for loop in x_ breaks. this is by design, and there's not much that can be done, but this patch should pseed up extraction a little bit, when dealing with intel me files. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysmk: use zero exit instead, to run treesLeah Rowe
that way, with set -u -e, we aren't risking some buggy sh implementations from causing an error exit where it shouldn't. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysremove useless commentLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysmk: remove unnecessary line breakLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysmk: re-split tree logic to include/tree.shLeah Rowe
I really think mk should just be a small stub. Better to keep everything separate. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysmk: move release functions to idnclude/release.shLeah Rowe
The idea with mk is that it's meant to basically be a stub for running everything else, while mainly having the trees logic within it (what was once script/trees). Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysmk: add missing error handli for mk -fLeah Rowe
on the release command, that is Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysgit.sh: re-write tmpclone without cachingLeah Rowe
remove caching for now. it's buggy as hell. will re-write the caching feature next. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysgit.sh: use setvars for fail variablesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysgit.sh: hard fail if git am failsLeah Rowe
similar to the last patch, we must ensure that the inability to patch will cause a hard exit, regardless of any redundancy we have for cloning. Signed-off-by: Leah Rowe <leah@libreboot.org>
5 daysgit.sh: Hard fail if reset failsLeah Rowe
We allow a re-try when cloning fails, to account for redundancy, but resetfail currently doesn't cause any error exit at all. This patch mitigates that bug. Signed-off-by: Leah Rowe <leah@libreboot.org>