If asked to build a kernel without first building world, build the

kernel toolchain first.
This commit is contained in:
Dag-Erling Smørgrav 2004-05-15 00:08:44 +00:00
parent 0f126ea09f
commit 08e6faa278

View File

@ -539,12 +539,17 @@ MAIN:{
}
}
# Build the world
# Build the world, or at least the kernel toolchain
if ($cmds{'world'}) {
logstage("building world (CFLAGS=$ENV{'CFLAGS'})");
cd("$sandbox/src");
make('buildworld')
or error("failed to build world");
} elsif ($cmds{'generic'} || $cmds{'lint'}) {
logstage("building kernel toolchain (CFLAGS=$ENV{'CFLAGS'})");
cd("$sandbox/src");
make('kernel-toolchain')
or error("failed to build kernel toolchain");
}
# Build GENERIC if requested