If asked to build a kernel without first building world, build the
kernel toolchain first.
This commit is contained in:
parent
0f126ea09f
commit
08e6faa278
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user