diff options
| author | John Thomson | 2023-01-22 11:34:43 +0000 |
|---|---|---|
| committer | Daniel Golle | 2025-09-29 16:34:51 +0000 |
| commit | f473d15816c78a1580ed036107428ed7d51b3142 (patch) | |
| tree | 7326a918cd1dbcba6ac942baaf28ff9c7876c6ff | |
| parent | c5ece837a3ffb20b0694df8210ebb1c7580baeb9 (diff) | |
| download | openwrt-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.mk | 5 |
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 $@)" \ |