[openwrt/openwrt] ramips: move ravpower-wd009-factory recipe to mt76x8.mk

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 11 13:18:13 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/4527f59428954ca07bebbfd339de504e5babf8e5

commit 4527f59428954ca07bebbfd339de504e5babf8e5
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Fri Sep 11 18:26:38 2020 +0200

    ramips: move ravpower-wd009-factory recipe to mt76x8.mk
    
    The recipe is only used for a single device, so put it in the
    subtarget file.
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/image/Makefile  | 6 ------
 target/linux/ramips/image/mt76x8.mk | 8 ++++++++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index bcd46d88a8..309ccbdf90 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -122,12 +122,6 @@ define Build/poray-header
 	mv $@.new $@
 endef
 
-define Build/ravpower-wd009-factory
-	mkimage -A mips -T standalone -C none -a 0x80010000 -e 0x80010000 -n "OpenWrt Bootloader" -d $(UBOOT_PATH) $@.new
-	cat $@ >> $@.new
-	@mv $@.new $@
-endef
-
 define Build/relocate-kernel
 	rm -rf $@.relocate
 	$(CP) ../../generic/image/relocate $@.relocate
diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
index 4e30100c63..326dcd82bb 100644
--- a/target/linux/ramips/image/mt76x8.mk
+++ b/target/linux/ramips/image/mt76x8.mk
@@ -6,6 +6,14 @@ include ./common-tp-link.mk
 
 DEFAULT_SOC := mt7628an
 
+define Build/ravpower-wd009-factory
+	mkimage -A mips -T standalone -C none -a 0x80010000 -e 0x80010000 \
+		-n "OpenWrt Bootloader" -d $(UBOOT_PATH) $@.new
+	cat $@ >> $@.new
+	@mv $@.new $@
+endef
+
+
 define Device/alfa-network_awusfree1
   IMAGE_SIZE := 7872k
   DEVICE_VENDOR := ALFA Network



More information about the lede-commits mailing list