summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
10 dayssplit up include/Leah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysmore build system cleanupLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysinit.sh: remove unnecessary directory checkLeah Rowe
literally the point of -p in mkdir is to, you know, check whether the directory already exists unclear thinking = unclear code Signed-off-by: Leah Rowe <leah@libreboot.org>
10 daysfix regression in version checkLeah Rowe
it occured to me that this style of check was bad. it only works when checking if both variables are set my bad 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>
10 dayslib.sh: always sanitize xbmkver before writingLeah Rowe
this removed the need to check it in xbmk_set_version as it calls update_xbmkver, which in turn performs the same check. this increases the general reliability and safety of xbmk when recording its own version after update. Signed-off-by: Leah Rowe <leah@libreboot.org>
10 dayslib.sh: simplify update_xbmkverLeah Rowe
sanitization can be done with a single sed command Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysmore cleanupLeah Rowe
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>
11 daysmore variable cleanupLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysmk: export locales much earlierLeah Rowe
also simplify the way it works (eval and awk) Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysremove include/chromebook.sh import script (not needed)Leah Rowe
i will be adding chromebooks, but not using this script, which is why i never finished the script. i previously had the plan to patch upstream coreboot, by importing patches from mrchromebox, but that results in an extreme number of patches. several hundred patches, in fact. more efficient is to add multi-upstream support in include/get.sh, for using different upstreams including forks, on a given multi-tree project. i haven't done this yet, but this is what will be done, and then adding each chromebook will be a matter of importing configs from mrchromebox alongside edk2 integration. a script will still need to be written, for the initial import, and imported chromebooks will be set release=n until and when each target is fully tested. Signed-off-by: Leah Rowe <leah@libreboot.org>
11 daysmore cleanupLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daystree.sh: remove redundant TODOLeah Rowe
infinite loop detection was here before. i removed it because it was bloat. we don't take general user input here, so careful configuration is all we need. infinite loops are harmless to the user. they are merely annoying. they would never be introduced to the user, because configs are always tested before release. before commit, even. we can save the user a few watts of electricity, or we can Keep It Simple. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysrom.sh: remove another TODOLeah Rowe
this one is unnecessary, because we're not taking general input from the user. we mitigate this carefully by being, you know, careful. implementing the TODO would have bloated the code, in ways that might only introduce other serious bugs. the current logic is fine, and great care will always be taken by me to keep the code safe, while i'm in charge. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysrom.sh: remove redundant TODOLeah Rowe
the code is correct. no TODO needed here. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysinit.sh: universally set git commit/auth dateLeah Rowe
do it as an export. to avoid pollution elsewhere, do it inside a subshell. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysinit.sh: set git committer date as wellLeah Rowe
only the author date was being set before with this change, at least on my system, i now get the same commit ID and date each time on the following test: NOTE: . is lbmk (main work directory) NOTE: here, we are copying the current clone git clone . lbmktest cd lbmktest ./mk version rm -Rf .git ./mk version git log same output each time. we have thus eliminated timestamps as a variable. this is but a part of in a series of changes that will eventually lead to libreboot being built reproducibly. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysinit.sh: portable date on git-initLeah Rowe
don't even call the date util at all, to fix the portability issues. now we don't need GNU date anymore. git itself can just take an epoch, and it will do whatever it will do. yes. Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysinit.sh: don't check PATH on startupLeah Rowe
even if i unset PATH before running lbmk, it is reinitialised because of the shebang. if no PATH exists, then it's either a broken system and you have bigger problems, or you have some weird system that uses something else. our job is not to fix the world. there was no scenario in which this check would even trigger an error or fallback, so just remove it. 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>
12 daysinject.sh: simplify xbmkcheck initialisationLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
12 daysinject.sh: re-order variablesLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysinit.sh: much more thorough locale initialisationLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysupdate header againLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysxbmk: remove setvars functionLeah Rowe
only one file used it. i've replaced its use with a simple awk call alongside eval. Signed-off-by: Leah Rowe <leah@libreboot.org>
13 daysmk: make it completely genericLeah Rowe
commands now fed from a file, include/common.sh which in turn also includes other lib files this makes mk completely generic, and means that changes will now be completely in sync with cbmk, ensuring a lack of merge conflicts, though the file was already pretty small anyway. 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 daysmk: generalised dispatch loopLeah Rowe
with this new function, i can turn commands on and off by virtue of config. for now, behaviour is unchanged, but this new design means i will be able to disable certain commands in child processes 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-07-28fix git identity handling in xbmk_git_initZoomm Deka
Signed-off-by: Zoomm Deka <zoomm10@gmail.com>
2026-07-27only disable git check for ./mk -b corebootLeah Rowe
the previous patch was half the battle. now that annoying person who complained on irc should be happy. someone complained about having to enter git name/email when just doing e.g. ./mk inject a valid complaint, but their attitude kinda stunk. oh well. this patch should satisfy them. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-27make the bitch on irc happyLeah Rowe
some person complained about this. see diff. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: add a throught-provoking TODOLeah Rowe
this will be revisited by October 2026 Leah. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: add error check on mkdir in gentoo checkLeah Rowe
yes. i should have reviewed that patch properly. the code should meet lbmk standards now. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: fix bad printf string in gentoo checkLeah Rowe
Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: add -p on mkdir command in gentoo checkLeah Rowe
probably redundant, but can't hurt Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: double-quote variables in gentoo checkLeah Rowe
yes. silly twit. Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: fix indentation in gentoo checkLeah Rowe
the submitted messed up indentation, yeah Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21init.sh: add --includes to git config checkLeah Rowe
just to be sure this now matches util/gitconfig/gitconfig.sh in coreboot Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21Merge pull request 'Add Gentoo dependencies.' (#428) from ↵Leah Rowe
lordbaraa/lbmk:add-gentoo-dependencies into master Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/428
2026-07-21init.sh: Don't check global git configLeah Rowe
Some users have it in a file e.g. inside ~/.gitconfig Those users are currently forced to set git config globally by lbmk. We only need to check that a git config is set, regardless of scope, because coreboot needs it in parts of its build system when used on lbmk. This prevents a pointless error report for users who have their git config on such a scope. Thanks go to Hendrik Jäger for reporting this to me. Yes, thank you. Further context: https://lore.kernel.org/git/20260720113402.0dc16abe@frustcomp.hnjs.home.arpa/T/#u Signed-off-by: Leah Rowe <leah@libreboot.org>