[openwrt/openwrt] ipq60xx: define common Linksys MR devices configuration

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 28 04:38:40 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/284f37ed807dfac5e46cae0baf1e00a2e445e41c

commit 284f37ed807dfac5e46cae0baf1e00a2e445e41c
Author: Weikai Kong <priv at pppig236.com>
AuthorDate: Sat Dec 28 23:54:27 2024 -0500

    ipq60xx: define common Linksys MR devices configuration
    
    ipq60xx series MR devices share some common attributes such as LED for
    USB port.
    
    Signed-off-by: Weikai Kong <priv at pppig236.com>
    Link: https://github.com/openwrt/openwrt/pull/18185
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/qualcommax/image/ipq60xx.mk | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/target/linux/qualcommax/image/ipq60xx.mk b/target/linux/qualcommax/image/ipq60xx.mk
index 4e88a7c920..03e49b97f7 100644
--- a/target/linux/qualcommax/image/ipq60xx.mk
+++ b/target/linux/qualcommax/image/ipq60xx.mk
@@ -54,21 +54,24 @@ define Device/glinet_gl-axt1800
 endef
 TARGET_DEVICES += glinet_gl-axt1800
 
-define Device/linksys_mr7350
+define Device/linksys_mr
 	$(call Device/FitImage)
 	DEVICE_VENDOR := Linksys
-	DEVICE_MODEL := MR7350
-	SOC := ipq6000
-	NAND_SIZE := 256m
-	KERNEL_SIZE := 8192k
 	BLOCKSIZE := 128k
 	PAGESIZE := 2048
-	IMAGE_SIZE := 75776k
+	KERNEL_SIZE := 8192k
 	IMAGES += factory.bin
-	IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | \
-		append-ubi | linksys-image type=MR7350
-	DEVICE_PACKAGES := ipq-wifi-linksys_mr7350 \
-		kmod-leds-pca963x kmod-usb-ledtrig-usbport
+	IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=$$$$(DEVICE_MODEL)
+	DEVICE_PACKAGE := kmod-usb-ledtrig-usbport
+endef
+
+define Device/linksys_mr7350
+	$(call Device/linksys_mr)
+	DEVICE_MODEL := MR7350
+	NAND_SIZE := 256m
+	IMAGE_SIZE := 75776k
+	SOC := ipq6000
+	DEVICE_PACKAGES += ipq-wifi-linksys_mr7350 kmod-leds-pca963x
 endef
 TARGET_DEVICES += linksys_mr7350
 




More information about the lede-commits mailing list