2
0
forked from Ivasoft/openwrt

ramips: remove ralink_default_fw_size_xxx variables

There are frequent examples of the ralink_default_fw_size_xxx
variables being used to "roughly" set flash size without caring
about the actual size of the firmware partition.

To discourage this behavior, this patch removes the variables and
just sets IMAGE_SIZE by its numeric value for each target.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler
2019-07-22 18:09:57 +02:00
parent 363197311b
commit 9d87a58d34
7 changed files with 182 additions and 187 deletions

View File

@@ -25,7 +25,7 @@ TARGET_DEVICES += airlink101_ar670w
define Device/airlink101_ar725w
MTK_SOC := rt2880
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Airlink
DEVICE_MODEL := AR725W
IMAGES += factory.bin
@@ -38,7 +38,7 @@ TARGET_DEVICES += airlink101_ar725w
define Device/asus_rt-n15
MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Asus
DEVICE_MODEL := RT-N15
DEVICE_PACKAGES := kmod-switch-rtl8366s
@@ -48,7 +48,7 @@ TARGET_DEVICES += asus_rt-n15
define Device/belkin_f5d8235-v1
MTK_SOC := rt2880
IMAGE_SIZE := $(ralink_default_fw_size_8M)
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F5D8235
DEVICE_VARIANT := V1
@@ -61,7 +61,7 @@ TARGET_DEVICES += belkin_f5d8235-v1
define Device/buffalo_wli-tx4-ag300n
MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Buffalo
DEVICE_MODEL := WLI-TX4-AG300N
DEVICE_PACKAGES := kmod-switch-ip17xx
@@ -72,7 +72,7 @@ TARGET_DEVICES += buffalo_wli-tx4-ag300n
define Device/buffalo_wzr-agl300nh
MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Buffalo
DEVICE_MODEL := WZR-AGL300NH
DEVICE_PACKAGES := kmod-switch-rtl8366s
@@ -101,7 +101,7 @@ TARGET_DEVICES += dlink_dap-1522-a1
define Device/ralink_v11st-fe
MTK_SOC := rt2880
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Ralink
DEVICE_MODEL := V11ST-FE
SUPPORTED_DEVICES += v11st-fe