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 <git@johnthomson.fastmail.com.au>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
John Thomson 2023-01-22 21:34:43 +10:00 committed by Daniel Golle
parent c5ece837a3
commit f473d15816

View file

@ -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 $@)" \