summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Thomson2023-01-22 11:34:43 +0000
committerDaniel Golle2025-09-29 16:34:51 +0000
commitf473d15816c78a1580ed036107428ed7d51b3142 (patch)
tree7326a918cd1dbcba6ac942baaf28ff9c7876c6ff
parentc5ece837a3ffb20b0694df8210ebb1c7580baeb9 (diff)
downloadopenwrt-f473d15816c78a1580ed036107428ed7d51b3142.tar.gz
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>
-rw-r--r--include/image-commands.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 781f6ad03b..ad57dfd49b 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 $@)" \