[openwrt/openwrt] ramips: move zyimage creation to include/image-commands.mk

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 28 13:36:09 PST 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/79db5d65ca5a19fb37e7fb428dec798f713a8632

commit 79db5d65ca5a19fb37e7fb428dec798f713a8632
Author: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
AuthorDate: Mon Jun 3 18:52:49 2024 +0300

    ramips: move zyimage creation to include/image-commands.mk
    
    This is required for upcoming Keenetic KN-3911 support
    
    Signed-off-by: Maxim Anisimov <maxim.anisimov.ua at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16830
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 include/image-commands.mk          | 4 ++++
 target/linux/ramips/image/Makefile | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/image-commands.mk b/include/image-commands.mk
index 2568fb3ade..a627ffc202 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -732,6 +732,10 @@ define Build/zip
 	rm -rf $@.tmp
 endef
 
+define Build/zyimage
+	$(STAGING_DIR_HOST)/bin/zyimage $(1) $@
+endef
+
 define Build/zyxel-ras-image
 	let \
 		newsize="$(call exp_units,$(RAS_ROOTFS_SIZE))"; \
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 5697176943..53b9c314ef 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -167,10 +167,6 @@ define Build/wrg-header
 	mv $@.new $@
 endef
 
-define Build/zyimage
-	$(STAGING_DIR_HOST)/bin/zyimage $(1) $@
-endef
-
 define Device/Default
   PROFILES = Default
   BLOCKSIZE := 64k




More information about the lede-commits mailing list