Add 'stagekernel' target, which invokes 'distributekernel'

with -DNO_ROOT to create the METALOG mtree(8) file.

Separate the default STAGEDIR for world (WSTAGEDIR) and kernel
(KSTAGEDIR).

Fix the 'create-kernel-packages' target to work properly.

Evaluate if 'kernel' is set when invoking mtree-to-plist.awk,
which splits the kernel and kernel.debug into separate plist
files.

Fix METALOG creation when building/packaging multiple kernels.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber
2016-01-27 21:10:03 +00:00
parent 0e186c0aab
commit 3d98f473dc
3 changed files with 88 additions and 49 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ TGTS= all all-man buildenv buildenvvars buildkernel buildworld \
_worldtmp _legacy _bootstrap-tools _cleanobj _obj \
_build-tools _cross-tools _includes _libraries _depend \
build32 builddtb distribute32 install32 xdev xdev-build xdev-install \
xdev-links native-xtools create-kernel-packages stageworld \
xdev-links native-xtools create-kernel-packages stageworld stagekernel \
create-world-packages packages installconfig signpackages
TGTS+= ${SUBDIR_TARGETS}