include/image-commands.mk: add package-kernel-ubifs

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-04-01 02:09:42 +08:00
parent 13dba15ccb
commit 770db0dab6
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -283,6 +283,15 @@ define Build/append-kernel
dd if=$(IMAGE_KERNEL) >> $@
endef
define Build/package-kernel-ubifs
mkdir $@.kernelubifs
cp $@ $@.kernelubifs/kernel
$(STAGING_DIR_HOST)/bin/mkfs.ubifs \
$(KERNEL_UBIFS_OPTS) \
-r $@.kernelubifs $@
rm -r $@.kernelubifs
endef
define Build/append-rootfs
dd if=$(IMAGE_ROOTFS) >> $@
endef