diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-22 18:09:57 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-07-25 14:31:30 +0200 |
commit | 9d87a58d347a299a8d3c27b038d5bb8a7d8d5b89 (patch) | |
tree | 5c4a1bf8f193064092d6559efc27c3c279c2f355 /target/linux/ramips/image/mt76x8.mk | |
parent | 363197311b342a59b3c67e4bd2dfea3b3030b456 (diff) | |
download | upstream-9d87a58d347a299a8d3c27b038d5bb8a7d8d5b89.tar.gz upstream-9d87a58d347a299a8d3c27b038d5bb8a7d8d5b89.tar.bz2 upstream-9d87a58d347a299a8d3c27b038d5bb8a7d8d5b89.zip |
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>
Diffstat (limited to 'target/linux/ramips/image/mt76x8.mk')
-rw-r--r-- | target/linux/ramips/image/mt76x8.mk | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index ceb124569b..edf9a67645 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -4,7 +4,7 @@ define Device/alfa-network_awusfree1 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := ALFA Network DEVICE_MODEL := AWUSFREE1 DEVICE_PACKAGES := uboot-envtools @@ -33,7 +33,7 @@ TARGET_DEVICES += buffalo_wcr-1166ds define Device/cudy_wr1000 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k IMAGES += factory.bin IMAGE/factory.bin := \ $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | jcg-header 92.122 @@ -47,7 +47,7 @@ TARGET_DEVICES += cudy_wr1000 define Device/d-team_pbr-d1 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16064k DEVICE_VENDOR := PandoraBox DEVICE_MODEL := PBR-D1 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -57,7 +57,7 @@ TARGET_DEVICES += d-team_pbr-d1 define Device/duzun_dm06 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := DuZun DEVICE_MODEL := DM06 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -87,7 +87,7 @@ TARGET_DEVICES += glinet_vixmini define Device/hilink_hlk-7628n MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := HILINK DEVICE_MODEL := HLK-7628N endef @@ -113,7 +113,7 @@ TARGET_DEVICES += hiwifi_hc5861b define Device/mediatek_linkit-smart-7688 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := MediaTek DEVICE_MODEL := LinkIt Smart 7688 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools @@ -164,7 +164,7 @@ TARGET_DEVICES += netgear_r6120 define Device/onion_omega2 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16064k DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools @@ -174,7 +174,7 @@ TARGET_DEVICES += onion_omega2 define Device/onion_omega2p MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := Onion DEVICE_MODEL := Omega2+ DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620 @@ -184,7 +184,7 @@ TARGET_DEVICES += onion_omega2p define Device/rakwireless_rak633 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := Rakwireless DEVICE_MODEL := RAK633 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -437,7 +437,7 @@ TARGET_DEVICES += unielec_u7628-01-128m-16m define Device/vocore_vocore2 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16064k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ @@ -448,7 +448,7 @@ TARGET_DEVICES += vocore_vocore2 define Device/vocore_vocore2-lite MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := VoCore DEVICE_MODEL := VoCore2-Lite DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \ @@ -459,7 +459,7 @@ TARGET_DEVICES += vocore_vocore2-lite define Device/wavlink_wl-wn570ha1 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN570HA1 DEVICE_PACKAGES := kmod-mt76x0e @@ -468,7 +468,7 @@ TARGET_DEVICES += wavlink_wl-wn570ha1 define Device/wavlink_wl-wn575a3 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := Wavlink DEVICE_MODEL := WL-WN575A3 DEVICE_PACKAGES := kmod-mt76x2 @@ -478,7 +478,7 @@ TARGET_DEVICES += wavlink_wl-wn575a3 define Device/widora_neo-16m MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16064k DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO DEVICE_VARIANT := 16M @@ -489,7 +489,7 @@ TARGET_DEVICES += widora_neo-16m define Device/widora_neo-32m MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := Widora DEVICE_MODEL := Widora-NEO DEVICE_VARIANT := 32M @@ -499,7 +499,7 @@ TARGET_DEVICES += widora_neo-32m define Device/wiznet_wizfi630s MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := WIZnet DEVICE_MODEL := WizFi630S endef @@ -507,7 +507,7 @@ TARGET_DEVICES += wiznet_wizfi630s define Device/wrtnode_wrtnode2p MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2P DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -517,7 +517,7 @@ TARGET_DEVICES += wrtnode_wrtnode2p define Device/wrtnode_wrtnode2r MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_32M) + IMAGE_SIZE := 32448k DEVICE_VENDOR := WRTnode DEVICE_MODEL := WRTnode 2R DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci @@ -537,7 +537,7 @@ TARGET_DEVICES += xiaomi_mir4a-100m define Device/xiaomi_miwifi-nano MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_16M) + IMAGE_SIZE := 16064k DEVICE_VENDOR := Xiaomi DEVICE_MODEL := MiWiFi Nano DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport @@ -547,7 +547,7 @@ TARGET_DEVICES += xiaomi_miwifi-nano define Device/zbtlink_zbt-we1226 MTK_SOC := mt7628an - IMAGE_SIZE := $(ralink_default_fw_size_8M) + IMAGE_SIZE := 7872k DEVICE_VENDOR := ZBTlink DEVICE_MODEL := ZBT-WE1226 endef |