summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2 daysmrc.sh: remove superfluous eval statementLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daystree.sh: remove superfluous eval statementsLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysrom.sh: remove superfluous eval statementLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysinject: remove superfluous use of evalLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysinit.sh: reduce the use of eval statementsLeah Rowe
also remove the unused _nogit variable Signed-off-by: Leah Rowe <leah@libreboot.org>
2 daysget.sh: reduce the number of eval statementsLeah Rowe
also split up try_fetch() Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysget.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>
3 daysget.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>
3 daysinit.sh: break up xbmk_set_envLeah Rowe
what this function does will differ wildly, depending on whether it's a child instance or a parent instance of xbmk. break up this function accordingly. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daystree.sh: break up check_gnu_path to subfunctionsLeah Rowe
this whole check could probably be removed, honestly. it was only put in place during the debian trixie testing release cycle, before they finally updated gnat just before the stable release of trixie came out. Signed-off-by: Leah Rowe <leah@libreboot.org>
3 daysvendor.sh: break up the extract_kbc1126 subshellLeah Rowe
stick it in a new function, for easier reading. Signed-off-by: Leah Rowe <leah@libreboot.org>
6 daysrom.sh: support "fspgop" init modeLeah Rowe
for all intents and purposes, this functions like libgfxinit corebootfb, but uses intel fsp's video initialisation instead of coreboot's native initialisation code this is currently in use on the x2e n150 mainboard, whose config is dubiously named "libgfxinit_corebootfb" now the config can be renamed, and will be, in the next commit. Signed-off-by: Leah Rowe <leah@libreboot.org>
6 daysvendor.sh: use bsdunzip, not unzipLeah Rowe
most implementations of unzip are info-zip we already compile libarchive for bsdtar, to extract rar archives in vendor.sh now we also use bsdunzip Signed-off-by: Leah Rowe <leah@libreboot.org>
7 daysvendor.sh: remove false error messageLeah Rowe
mkdst cycles through a bunch of outputted files when running an extract function, to find the right file as per defined checksums; if one is found, it can still show errors for the others, leading the user to think something is wrong. remove their fear by removing this benign error. Signed-off-by: Leah Rowe <leah@libreboot.org>
7 daysvendor.sh: use bsdtar, not unarLeah Rowe
unar is buggy and crap and bsdtar has superior licensing Signed-off-by: Leah Rowe <leah@libreboot.org>
7 daysvendor.sh: don't use unrarLeah Rowe
the only practical way to use it is to to use the non-free version; currently used as a fallback if unar fails. however, i'm also going to scrap unar and use bsdtar instead. Signed-off-by: Leah Rowe <leah@libreboot.org>
7 daysNew mainboard: X2E_N150Riku Viitanen
Patch in Gerrit: https://review.coreboot.org/c/coreboot/+/89281 Not working: USB3 ports only work at USB2 speeds. IFD: Modified the original by: - Removing Device Exp2 region (empty anyway) - Enlarging the BIOS region to use this freed space - Setting the HAP bit in PCHSTRP55 using a fork of me_cleaner: https://github.com/XutaxKamay/me_cleaner Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com> Signed-off-by: Leah Rowe <leah@libreboot.org>
9 daysrom.sh: remove TODO noteLeah Rowe
the return is necessary when release=n while doing release builds, because it prevents a build error since the given images don't exist in that scenario. Signed-off-by: Leah Rowe <leah@libreboot.org>
9 daysinject.sh: don't exit from patch_releaseLeah Rowe
return instead. xbmk's coding style specifically prohibits anything other than x_ or err from running "exit". Signed-off-by: Leah Rowe <leah@libreboot.org>
9 daysinit.sh: remove comment in pybinLeah Rowe
the following checks on the path mitigates the lack of error handling in the findpath command that sets pypath. this was all thought of when i initially wrote this code. it's perfectly fine. Signed-off-by: Leah Rowe <leah@libreboot.org>
9 daysget.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>
9 daysget.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>
9 daysxbmk: 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>
9 daysinit.sh: remove TODO noteLeah Rowe
on further inspection, the following check ensures that the python version number is 3. if anything went wrong, the possibility alluded to in the comment wouldn't actually matter in practise. Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysinit.sh: create TMPDIR *after* suid checkLeah Rowe
otherwise, it may get created as the root user, disabling further use of lbmk until manual user intervention. Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysrelease.sh: use cache src on release buildsLeah Rowe
use what's in cache/clone/ from the main directory this speeds up the build process Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysinit.sh: remove symlink check on XBMK_CACHELeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysinit.sh: switch back to old TMPDIR checksLeah Rowe
the new check is still retained, to the extent that the lock file still contains the TMPDIR string, and it's checked whether this changed during execution. however, the current TMPDIR handling is over-engineered and prevents the re-use of project source caches when doing release builds; this means that the release builds happen much more slowly, especially for slow internet connections. this change *fixes* that bug. now release builds once again re-use the main cache/ directory. Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysmake 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>
10 daysrelease.sh: fix typo in script: ./mk, not ./mxLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysxbmk: cleanup of recent code refactoringLeah Rowe
be a bit less pedantic about if else clauses. leave the big ones still with then on separate lines, where else is specified. also unroll a few condensed code lines where i missed a few. sloccount 2303 in lbmk. that's still only slightly bigger than libreboot 20260907 which was 2180, and still much smaller than libreboot 20230625 which was 3322. this is *without* the condensed codelines, so now the only thing that's reduced is the overall amount of logic present in the build system. and i should clarify that lbmk is presently much more powerful than both of those two versions (20160907/20230625). the 2016 one is useful for comparison historically, since that was the last major version of libreboot prior to the great second coming of leah in 2021; and the 2023 june release was basically the last one before the great audits of 2023 to 2025 began. not to brag (not much anyway), but all of this means that lbmk is an insanely efficient build system, considering all the features it has and what it does. i unrolled the condensed code style in lbmk, making the scripts a lot easier to read, because i received complainst about the condensed style previously used; nicholas chin and alper nebi yasak both told me that it sucked, and riku viitanen had hinted at that same fact several months prior. so hopefully now, lbmk is a bit nicer. those and other people often find it challenging to challenge me because for reason they assume i'll get upset and fly off the handle, but it's the opposite. i want constant criticism, so that i know to improve! Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysget.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysinit.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysinject.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 dayslib.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysmrc.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysrelease.sh: unroll condensed code linesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysrom.sh: unroll condensed code linesLeah Rowe
ditto to last commit Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daystree.sh: unroll condensed commandsLeah Rowe
i went further than in the previosu commit. in this commit, i also provide indentation inside subshells, to make it clearer that soomething is being done inside a subshell. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysvendor.sh: unroll condensed code linesLeah Rowe
this is part of a general effort to make lbmk easier for novices to understand. more commits to follow (one for every script). Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysinit.sh: make TMPDIR *after* calling xbmkpkgLeah Rowe
otherwise, running ./mk dependencies as root will create xbmkwd/ (temporary directories) as root, which will then prevent non-root instances of lbmk from being able to make temporary files. 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.
2025-09-17vendor.sh: add missing error handle on sha512sumLeah Rowe
it's still outputting to a file, with an error handle there, but use of x_ on the sha512sum command itself adds further assurance of reliability. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-14tree.sh: fix bad variable referenceLeah Rowe
we didn't want to say a variable name here. we only wanted to say "trees". Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-13xbmk: much more verbose error messagesLeah Rowe
use the new functionality in err(), whereby a given function name and arguments can be provided, for debugging purposes. something similar was already done in a few places, and replaced with this unified functionality. this patch will make xbmk much easier to debug, under fault conditions. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-13lib.sh: use xprintf in err()Leah Rowe
if more than one argument is provided, it is interpreted as a command, and the command is outputted. this means that now for example, where you have: ls -l foo | err "could not list directory" you could do: ls -l foo | err "could not list directory" "$@" this would show all the arguments given to the calling function that tried to run "ls" let's say that function was called bar, you might do: ls -l foo | err "could not list directory" bar "$@" right now, it's not easy to provide good debug info where err is used, unless it was called with x_, which provides the command/arguments that was bugging out. with this, we now have an easy and readable/maintainable way to do the same thing everywhere in xbmk. this will now be done, in a follow-up commit. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-13lib.sh: use xprintf in x_Leah Rowe
don't echo the arguments this new logic shows quotes, in error outputs. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-13lib.sh: check args for errors in fx_ and dx_Leah Rowe
check that there are at least two arguments, and ensure that they are not empty. Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-11inject.sh: add missing semicolon in caseLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2025-09-11vendor.sh: tidy up apply_deguard_hack()Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>