forked from rosa/hakurei
internal/rosa: improve helper bindings
This uses more intuitive names for some arguments and inverts their default value. Slices and nil-capable strings replace skip arguments. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -25,8 +25,8 @@ package kernel-headers {
|
||||
toyboxEarly = true;
|
||||
|
||||
exec = make {
|
||||
omitDefaults = true;
|
||||
skipConfigure = true;
|
||||
defaults = false;
|
||||
configure = nil;
|
||||
make = [
|
||||
"-f /usr/src/kernel-headers/Makefile",
|
||||
"O=/tmp/kbuild",
|
||||
@@ -35,7 +35,7 @@ package kernel-headers {
|
||||
"INSTALL_HDR_PATH=/work/system",
|
||||
"headers_install",
|
||||
];
|
||||
skipCheck = true;
|
||||
check = nil;
|
||||
install = `
|
||||
cat \
|
||||
/usr/src/version.h > \
|
||||
@@ -86,11 +86,12 @@ install -Dm0500 \
|
||||
exclusive = true;
|
||||
|
||||
exec = make {
|
||||
omitDefaults = true;
|
||||
skipConfigure = true;
|
||||
defaults = false;
|
||||
|
||||
configure = nil;
|
||||
|
||||
// Build, install, and boot kernel before running kselftest on it.
|
||||
skipCheck = true;
|
||||
check = nil;
|
||||
|
||||
make = [
|
||||
"-f /usr/src/kernel/Makefile",
|
||||
@@ -154,7 +155,7 @@ package gen_init_cpio {
|
||||
|
||||
enterSource = true;
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
chdir = false;
|
||||
build = `
|
||||
mkdir -p /work/system/bin/
|
||||
cc -o /work/system/bin/gen_init_cpio usr/gen_init_cpio.c
|
||||
|
||||
Reference in New Issue
Block a user