[openwrt/openwrt] realtek: build factory images for all DGS-1210 models

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 8 11:17:59 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2b49ec3a28ad09446f48f1f830a42bdfe3bce9be

commit 2b49ec3a28ad09446f48f1f830a42bdfe3bce9be
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Wed Jul 6 13:41:51 2022 +0200

    realtek: build factory images for all DGS-1210 models
    
    Currently we build factory images only for DGS-1210-28 model. Relax
    that constraint and take care about all models. Tested on DGS-1210-20
    and should work on other models too because of common flash layout.
    
    Tested-by: Luiz Angelo Daros de Luca <luizluca at gmail.com>
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
---
 target/linux/realtek/image/rtl838x.mk | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/target/linux/realtek/image/rtl838x.mk b/target/linux/realtek/image/rtl838x.mk
index dc18182110..8eac72b3ef 100644
--- a/target/linux/realtek/image/rtl838x.mk
+++ b/target/linux/realtek/image/rtl838x.mk
@@ -17,6 +17,13 @@ define Device/d-link_dgs-1210
   DEVICE_VENDOR := D-Link
   DLINK_KERNEL_PART_SIZE := 1572864
   KERNEL := kernel-bin | append-dtb | gzip | uImage gzip | dlink-cameo
+  CAMEO_KERNEL_PART := 2
+  CAMEO_ROOTFS_PART := 3
+  CAMEO_CUSTOMER_SIGNATURE := 2
+  CAMEO_BOARD_VERSION := 32
+  IMAGES += factory_image1.bin
+  IMAGE/factory_image1.bin := append-kernel | pad-to 64k | \
+	append-rootfs | pad-rootfs | pad-to 16 | check-size | dlink-headers
 endef
 
 define Device/d-link_dgs-1210-10p
@@ -41,13 +48,6 @@ TARGET_DEVICES += d-link_dgs-1210-20
 define Device/d-link_dgs-1210-28
   $(Device/d-link_dgs-1210)
   DEVICE_MODEL := DGS-1210-28
-  CAMEO_KERNEL_PART := 2
-  CAMEO_ROOTFS_PART := 3
-  CAMEO_CUSTOMER_SIGNATURE := 2
-  CAMEO_BOARD_VERSION := 32
-  IMAGES += factory_image1.bin
-  IMAGE/factory_image1.bin := append-kernel | pad-to 64k | \
-        append-rootfs | pad-rootfs | pad-to 16 | check-size | dlink-headers
 endef
 TARGET_DEVICES += d-link_dgs-1210-28
 




More information about the lede-commits mailing list