Commit Graph

4134 Commits

Author SHA1 Message Date
Leah Rowe 8822c56815 mk: make it completely generic
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>
2026-09-10 18:05:57 +01:00
Leah Rowe bb0221252c mk: make xbcddir usage clearer
it's always a directory, so filter it first

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-10 17:47:48 +01:00
Leah Rowe 1ceeb0ab55 update lbmk headers
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>
2026-09-10 17:45:11 +01:00
Leah Rowe bb4c038794 cleanup
actually use xbarg0

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-10 15:03:03 +01:00
Leah Rowe 786cf8cd9c xbmk: allow to run from PATH
now you can put lbmk somewhere on your system,
and symlink to the mk script from PATH

e.g. /usr/local/bin/lbmk -> /home/leah/lbmk/mk

lbmk will cd to itself, including from PATH,
because the string will then be passed through
readlink, which gets the real path.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-10 14:03:11 +01:00
Leah Rowe 189b61018f xbmk: allow running from outside of work dir
i need only now implement a check for sys dirs
e.g. /etc/lbmk.cfg and check if it defines
e.g. other location for config/ and include/

then mk is a generic dispatcher and i can one
day make mk possible to install. for example, if
you have a bsd ports system and you want to
install lbmk

i could make it check user dirs too, overriding
defaults. for example /usr/local/etc/lbmk, but
then i might have ~/.config/lbmk

you no longer need to be in the xbmk directory
to run xbmk. it'll cd to itself, with this patch

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-10 13:52:16 +01:00
Leah Rowe e973584123 mk: generalised dispatch loop
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>
2026-09-10 13:49:34 +01:00
Leah Rowe afdf8c7733 Revert "xbmk: general code cleanup"
This reverts commit 1b65e8914c.

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-10 12:34:35 +01:00
Leah Rowe 123639e3db delete util/libreboot-utils (unused code)
this was an intense audit of nvmutil that somehow evolved
into writing a new, hardened implementation of mktemp.

it all works, a few memory bugs to solve on bsd, but i don't
see the point in keeping it. mktemp is fine, and nvmutil
already works.

lbutils implemented atomic writes and integrity checking,
in a manner completely overengineered for what it was
actually doing (modifying a few bytes in 8KB GbE files)

just delete it. i'll bring it back if i ever finish the
code. i don't want to leave dead/unfinished code in the tree.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-09-07 08:12:24 +01:00
Leah Rowe 01cb422c97 include/get.sh: 3-way merge on git am
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-09-06 10:16:00 +01:00
Leah Rowe 8d0ad21112 cb/hp820g2_12mb: disable u-boot
it currently boot loops like on some kabylake machines

really buggy codebase. i should just rip off the band-aid
and add edk2 already.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-08-03 23:50:03 +01:00
Leah Rowe d19a0241a1 coreboot/fam15h: fix build error (__unused)
see patch. just some gcc chicanery. nothing to see here.

move along now. yes.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-08-03 22:24:08 +01:00
Leah Rowe 2908904a2f Merge pull request 'remove the --update emerge flag cause it breaks something' (#446) from folkmaster/lbmk:master into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/446
2026-08-01 01:37:17 +02:00
Leah Rowe 1b65e8914c xbmk: general code cleanup
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-30 11:58:11 +01:00
folkmaster 3dd440e1a6 remove the --update emerge flag cause it breaks smth 2026-07-28 13:29:33 +02:00
Leah Rowe 72238d22b5 Merge pull request 'Make emerge ignore rebuilds' (#444) from folkmaster/lbmk:master into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/444
2026-07-28 03:26:10 +02:00
Leah Rowe d64090d0b2 Merge pull request 'Fix Git identity handling in xbmk_git_init' (#445) from zoomm10/lbmk:fix-git-identity into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/445
2026-07-28 03:23:41 +02:00
Zoomm Deka ab13b80250 fix git identity handling in xbmk_git_init
Signed-off-by: Zoomm Deka <zoomm10@gmail.com>
2026-07-28 03:02:02 +02:00
Leah Rowe 8b59310209 only disable git check for ./mk -b coreboot
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-27 23:35:38 +01:00
Leah Rowe 06fd12953f make the bitch on irc happy
some person complained about this. see diff.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-27 23:27:56 +01:00
folkmaster 33f6364e26 switch from p7zip to 7zip cause p7zip is obselete 2026-07-25 01:36:59 +02:00
folkmaster 6ef180228d switch from p7zip to 7zip cause p7zip is obselete 2026-07-25 01:35:53 +02:00
folkmaster b61677c9dd Nope fedora does not provide an official 7zip package for older builds of fedora 2026-07-25 01:33:47 +02:00
folkmaster ee597d5815 switch from p7zip to 7zip cause p7zip is obselete 2026-07-25 01:31:45 +02:00
folkmaster 94afbab44e switch from p7zip to 7zip cause p7zip is obselete 2026-07-25 01:28:34 +02:00
folkmaster ba9a1fe130 switch from p7zip to 7zip cause p7zip is obselete 2026-07-25 01:25:15 +02:00
folkmaster 52672c135d Remove the oneshot flag cause that is a bad idea 2026-07-25 01:04:54 +02:00
folkmaster 3fb48e3818 Make it ignore rebuilds 2026-07-23 23:38:15 +02:00
Leah Rowe 1265eb5b63 init.sh: add a throught-provoking TODO
this will be revisited by October 2026 Leah.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:27:57 +01:00
Leah Rowe 56697c1da3 init.sh: add error check on mkdir in gentoo check
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-21 20:24:12 +01:00
Leah Rowe 8d9d1a88a0 init.sh: fix bad printf string in gentoo check
Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:23:12 +01:00
Leah Rowe e1384a1b9f init.sh: add -p on mkdir command in gentoo check
probably redundant, but can't hurt

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:21:44 +01:00
Leah Rowe 598a57639f init.sh: double-quote variables in gentoo check
yes. silly twit.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:21:23 +01:00
Leah Rowe 86142b7e81 init.sh: fix indentation in gentoo check
the submitted messed up indentation, yeah

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:19:53 +01:00
Leah Rowe 1514e82be0 init.sh: add --includes to git config check
just to be sure

this now matches util/gitconfig/gitconfig.sh in coreboot

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-07-21 20:12:44 +01:00
Leah Rowe 76e5a07774 Merge pull request 'void dependencies update' (#443) from lentrey/lbmk:master into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/443
2026-07-21 20:44:19 +02:00
Leah Rowe 83842c9481 Merge pull request 'Add Gentoo dependencies.' (#428) from lordbaraa/lbmk:add-gentoo-dependencies into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/428
2026-07-21 20:43:00 +02:00
Leah Rowe 9dd6ed84ca init.sh: Don't check global git config
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>
2026-07-21 19:34:26 +01:00
lentrey e796a50fb0 void dependencies update 2026-07-20 18:06:41 -03:00
Leah Rowe 049ee793db nvmutil: macro safety
maximum safety.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-05-26 21:46:07 +01:00
Leah Rowe bc4bc4b67e nvmutil: fix error exits
ii used to rely on errno for exit status, but this was flawed.

when removing it, i neglected to adjust the actual error exits,
setting errno accordingly. this patch should fix it. this is
important for scripts that use nvmutil, which may rely on its
error status upon exit.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-05-26 18:48:27 +01:00
Leah Rowe 0e1e0fd0e8 Reapply "coreboot/x2e_n150: fix mismatching fsp header"
This reverts commit 154c5ff319.

this one is still needed, for x2e n150
2026-05-19 12:07:03 +01:00
Leah Rowe ad2d082bc2 Revert "cb/default: use rev 62c8197dd25376cb7b18d272af167cb176d28bcf"
This reverts commit fedeb6ecd8.

this, along with several other updates, have been reverted.
dell 3050 micro had boot issues, on the update. i therefore
revert the recent revision update, pending further investigation.
2026-05-19 11:54:05 +01:00
Leah Rowe 9a132f96a2 Revert "coreboot: never, ever use Werror"
This reverts commit 2ecfe63b5f.
2026-05-19 11:53:54 +01:00
Leah Rowe e90e1df74d Revert "consolidate haswell iommu patches"
This reverts commit f60350344a.
2026-05-19 11:53:46 +01:00
Leah Rowe 154c5ff319 Revert "coreboot/x2e_n150: fix mismatching fsp header"
This reverts commit 0aa019d323.
2026-05-19 11:53:36 +01:00
Baraa Al-Masri cf930f3b32 Add portage package use 2026-05-10 20:40:40 +03:00
Baraa Al-Masri 2cbdb59ccf Add Gentoo dependencies 2026-05-10 15:57:27 +03:00
Leah Rowe 0aa019d323 coreboot/x2e_n150: fix mismatching fsp header
thanks to sirlami on irc for pointing this out.

due to lbmk blob policy, we must not distribute
fsp except as the full, concatenated binary, thus
complying with intel's license. it is removed from
builds before release, re-inserted via vendor
inject scripts in the usual way.

a while ago, coreboot updated fsp but i had to keep
it on the earlier version for this board, lest old
releases no longer match vendor insertion; the new
fsp version also wasnet well tested, and didn't seem
to contain any changes reported that pertained to
our use of it.

the fsp headers do not match the fsp binary in use,
causing boot issues for users on topton x2e n150.
this patch should fix the issue, as reported by
sirlami who is the one who found and first tested
this fix; i'm simply changing the configuration,
as per sirlami's guidance.

Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-05-05 23:21:30 +01:00
Leah Rowe f60350344a consolidate haswell iommu patches
Signed-off-by: Leah Rowe <leah@libreboot.org>
2026-04-23 23:14:25 +01:00