Add convenience target for building new kernel headers package

This commit is contained in:
Kevin Lange 2017-02-14 14:24:41 +09:00
parent cbb462b84a
commit 672aa74947
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -75,6 +75,7 @@
/toaruos-big.iso
/modpack.kop
/cdrom/
/kernel-headers.img
# Toolchain
/toolchain/build

View File

@ -444,6 +444,20 @@ netboot.img.gz: _cdrom/ramdisk.img.gz
fix-cd:
$(call fixup-cd)
##############
# packages #
##############
kernel-headers.img.gz: kernel/include
@${BEG} "pack" "$@"
@rm -rf _kernel
@mkdir _kernel
@cp -rL kernel/include/* _kernel/
@${GENEXT} -B 4096 -d _kernel -U -b 170 $@ ${ERRORS}
@rm -r _kernel
@${END} "pack" "$@"
##############
# ctags #
##############