aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/tiny-netgear.mk
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-25 20:29:12 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-29 12:08:16 +0200
commit01a3e891d745ea15b149483bde43d6dfe75cd1fa (patch)
tree672c8638f355319c2badfb3c899fc233bfd73b05 /target/linux/ath79/image/tiny-netgear.mk
parenta15ed964cfd09ded63c654738123d20d546c6d35 (diff)
downloadupstream-01a3e891d745ea15b149483bde43d6dfe75cd1fa.tar.gz
upstream-01a3e891d745ea15b149483bde43d6dfe75cd1fa.tar.bz2
upstream-01a3e891d745ea15b149483bde43d6dfe75cd1fa.zip
ath79: reorganize common image definitions for Netgear
Netgear currently has a special definition for tiny devices, which is only used by two devices. Despite, it sets ups the IMAGE/default definition individually for all devices, although there is actually only one exception. This merges the common parts into a single netgear_generic definition (in contrast to netgear_ath79_nand), and adjusts the individual definitions accordingly. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/image/tiny-netgear.mk')
-rw-r--r--target/linux/ath79/image/tiny-netgear.mk28
1 files changed, 10 insertions, 18 deletions
diff --git a/target/linux/ath79/image/tiny-netgear.mk b/target/linux/ath79/image/tiny-netgear.mk
index 5c83a10e01..0127e5bd97 100644
--- a/target/linux/ath79/image/tiny-netgear.mk
+++ b/target/linux/ath79/image/tiny-netgear.mk
@@ -1,35 +1,32 @@
include ./common-netgear.mk
-define Device/netgear_ar7240
- SOC := ar7240
- NETGEAR_KERNEL_MAGIC := 0x32303631
- KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
- IMAGE_SIZE := 3712k
- IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | \
- append-rootfs | pad-rootfs
- $(Device/netgear_ath79)
-endef
-
define Device/netgear_wnr612-v2
- $(Device/netgear_ar7240)
+ $(Device/netgear_generic)
+ SOC := ar7240
DEVICE_MODEL := WNR612
DEVICE_VARIANT := v2
DEVICE_DTS := ar7240_netgear_wnr612-v2
+ NETGEAR_KERNEL_MAGIC := 0x32303631
NETGEAR_BOARD_ID := REALWNR612V2
+ IMAGE_SIZE := 3712k
SUPPORTED_DEVICES += wnr612-v2
endef
TARGET_DEVICES += netgear_wnr612-v2
define Device/on_n150r
- $(Device/netgear_ar7240)
+ $(Device/netgear_generic)
+ SOC := ar7240
DEVICE_VENDOR := On Networks
DEVICE_MODEL := N150R
+ NETGEAR_KERNEL_MAGIC := 0x32303631
NETGEAR_BOARD_ID := N150R
+ IMAGE_SIZE := 3712k
SUPPORTED_DEVICES += n150r
endef
TARGET_DEVICES += on_n150r
define Device/netgear_wnr1000-v2
+ $(Device/netgear_generic)
SOC := ar7240
DEVICE_MODEL := WNR1000
DEVICE_VARIANT := v2
@@ -37,14 +34,12 @@ define Device/netgear_wnr1000-v2
NETGEAR_BOARD_ID := WNR1000V2
NETGEAR_HW_ID := 29763331+4+32
IMAGE_SIZE := 3712k
- IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | \
- append-rootfs | pad-rootfs
SUPPORTED_DEVICES += wnr1000-v2
- $(Device/netgear_ath79)
endef
TARGET_DEVICES += netgear_wnr1000-v2
define Device/netgear_wnr2000-v3
+ $(Device/netgear_generic)
SOC := ar7241
DEVICE_MODEL := WNR2000
DEVICE_VARIANT := v3
@@ -52,12 +47,9 @@ define Device/netgear_wnr2000-v3
NETGEAR_BOARD_ID := WNR2000V3
NETGEAR_HW_ID := 29763551+04+32
IMAGE_SIZE := 3712k
- IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | \
- append-rootfs | pad-rootfs
IMAGES += factory-NA.img
IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
check-size
SUPPORTED_DEVICES += wnr2000-v3
- $(Device/netgear_ath79)
endef
TARGET_DEVICES += netgear_wnr2000-v3