aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/mt7620.mk
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-15 14:55:37 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-25 14:31:27 +0200
commit363197311b342a59b3c67e4bd2dfea3b3030b456 (patch)
tree011d1f66850ea187a3e74f3badec2d108e705234 /target/linux/ramips/image/mt7620.mk
parent24ded1810b071ec7e7c8d134e5491d9649c13dac (diff)
downloadupstream-363197311b342a59b3c67e4bd2dfea3b3030b456.tar.gz
upstream-363197311b342a59b3c67e4bd2dfea3b3030b456.tar.bz2
upstream-363197311b342a59b3c67e4bd2dfea3b3030b456.zip
ramips: remove default IMAGE_SIZE for ramips target
Currently, ramips target defines 0x7b0000 as default IMAGE_SIZE for all devices in ramips target, i.e. this will be set if a device does not specify IMAGE_SIZE itself. From 92 devices using that default due to a "missing" IMAGE_SIZE, 14 were incorrect by a small amount (i.e. still "8M" flash) and 12 were completely off ("16M", "4M", ...). This patch thus removes the _default_ IMAGE_SIZE and defines IMAGE_SIZE for each device individually. This should indicate to people supporting new devices that this parameter has to be cared about. For the present code, this patch is cosmetical. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/image/mt7620.mk')
-rw-r--r--target/linux/ramips/image/mt7620.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index 2a95b31087..01fa00afd7 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -86,6 +86,7 @@ endef
define Device/asus_rp-n53
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Asus
DEVICE_MODEL := RP-N53
DEVICE_PACKAGES := kmod-rt2800-pci
@@ -162,6 +163,7 @@ TARGET_DEVICES += buffalo_whr-600d
define Device/buffalo_wmr-300
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Buffalo
DEVICE_MODEL := WMR-300
SUPPORTED_DEVICES += wmr-300
@@ -170,6 +172,7 @@ TARGET_DEVICES += buffalo_wmr-300
define Device/comfast_cf-wr800n
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Comfast
DEVICE_MODEL := CF-WR800N
SUPPORTED_DEVICES += cf-wr800n
@@ -295,6 +298,7 @@ TARGET_DEVICES += dlink_dwr-922-e2
define Device/dovado_tiny-ac
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Dovado
DEVICE_MODEL := Tiny AC
DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci
@@ -549,6 +553,7 @@ TARGET_DEVICES += lenovo_newifi-y1s
define Device/linksys_e1700
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
umedia-header 0x013326
@@ -600,6 +605,7 @@ TARGET_DEVICES += netgear_ex3700
define Device/netgear_wn3000rp-v3
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
NETGEAR_BOARD_ID := WN3000RPv3
BLOCKSIZE := 4k
@@ -630,6 +636,7 @@ TARGET_DEVICES += nexx_wt3020-4m
define Device/nexx_wt3020-8m
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
poray-header -B WT3020 -F 8M
@@ -662,6 +669,7 @@ TARGET_DEVICES += phicomm_k2g
define Device/phicomm_psg1208
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Phicomm
DEVICE_MODEL := PSG1208
DEVICE_PACKAGES := kmod-mt76x2
@@ -671,6 +679,7 @@ TARGET_DEVICES += phicomm_psg1208
define Device/phicomm_psg1218a
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Phicomm
DEVICE_MODEL := PSG1218
DEVICE_VARIANT:= Ax
@@ -681,6 +690,7 @@ TARGET_DEVICES += phicomm_psg1218a
define Device/phicomm_psg1218b
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Phicomm
DEVICE_MODEL := PSG1218
DEVICE_VARIANT := Bx
@@ -691,6 +701,7 @@ TARGET_DEVICES += phicomm_psg1218b
define Device/planex_cs-qr10
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Planex
DEVICE_MODEL := CS-QR10
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci \
@@ -702,6 +713,7 @@ TARGET_DEVICES += planex_cs-qr10
define Device/planex_db-wrt01
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Planex
DEVICE_MODEL := DB-WRT01
SUPPORTED_DEVICES += db-wrt01
@@ -710,6 +722,7 @@ TARGET_DEVICES += planex_db-wrt01
define Device/planex_mzk-750dhp
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-750DHP
DEVICE_PACKAGES := kmod-mt76x0e
@@ -738,6 +751,7 @@ TARGET_DEVICES += planex_mzk-ex750np
define Device/ralink_mt7620a-evb
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := MediaTek
DEVICE_MODEL := MT7620a EVB
endef
@@ -745,6 +759,7 @@ TARGET_DEVICES += ralink_mt7620a-evb
define Device/ralink_mt7620a-mt7530-evb
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := MediaTek
DEVICE_MODEL := MT7620a + MT7530 EVB
SUPPORTED_DEVICES += mt7620a_mt7530
@@ -753,6 +768,7 @@ TARGET_DEVICES += ralink_mt7620a-mt7530-evb
define Device/ralink_mt7620a-mt7610e-evb
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := MediaTek
DEVICE_MODEL := MT7620a + MT7610e EVB
DEVICE_PACKAGES := kmod-mt76x0e
@@ -859,6 +875,7 @@ TARGET_DEVICES += tplink_archer-c50-v1
define Device/tplink_archer-mr200
$(Device/Archer)
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
TPLINK_FLASHLAYOUT := 8MLmtk
TPLINK_HWID := 0xd7500001
TPLINK_HWREV := 0x4a
@@ -909,6 +926,7 @@ TARGET_DEVICES += youku_yk1
define Device/yukai_bocco
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := YUKAI Engineering
DEVICE_MODEL := BOCCO
DEVICE_PACKAGES := kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink
@@ -1000,6 +1018,7 @@ TARGET_DEVICES += zbtlink_zbt-we826-e
define Device/zbtlink_zbt-wr8305rt
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := Zbtlink
DEVICE_MODEL := ZBT-WR8305RT
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
@@ -1009,6 +1028,7 @@ TARGET_DEVICES += zbtlink_zbt-wr8305rt
define Device/zte_q7
MTK_SOC := mt7620a
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := ZTE
DEVICE_MODEL := Q7
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
@@ -1018,6 +1038,7 @@ TARGET_DEVICES += zte_q7
define Device/zyxel_keenetic-omni
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Omni
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
@@ -1030,6 +1051,7 @@ TARGET_DEVICES += zyxel_keenetic-omni
define Device/zyxel_keenetic-omni-ii
MTK_SOC := mt7620n
+ IMAGE_SIZE := $(ralink_default_fw_size_8M)
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Omni II
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport