From: John Thomson Date: Sun, 22 Jan 2023 11:34:43 +0000 (+1000) Subject: build: add Mikrotik NOR RouterBOOT v7 image build X-Git-Tag: v25.12.0-rc1~1129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f473d15816c78a1580ed036107428ed7d51b3142;p=thirdparty%2Fopenwrt.git build: add Mikrotik NOR RouterBOOT v7 image build Add build step 'kernel-pack-npk' which uses 'npk_pack_kernel' which is now part of firmware-utils to enable wrapping the kernel inside a MikroTik NPK package. Signed-off-by: John Thomson Signed-off-by: Daniel Golle --- diff --git a/include/image-commands.mk b/include/image-commands.mk index 781f6ad03b8..ad57dfd49bd 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -557,6 +557,11 @@ define Build/gl-qsdk-factory $(KDIR_TMP)/$(notdir $(BOOT_SCRIPT)) endef +define Build/kernel-pack-npk + $(STAGING_DIR_HOST)/bin/npk_pack_kernel $@ $@.npk + mv $@.npk $@ +endef + define Build/linksys-image let \ size="$$(stat -c%s $@)" \