[LEDE-DEV] [PATCH] brcm47xx: include wpad-mini only for devices with WiFi supported

Rafał Miłecki zajec5 at gmail.com
Fri Aug 25 04:16:55 PDT 2017


From: Rafał Miłecki <rafal at milecki.pl>

This saves some flash space for the others.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 target/linux/brcm47xx/Makefile       |   2 +-
 target/linux/brcm47xx/image/Makefile | 141 ++++++++++++++++++-----------------
 2 files changed, 73 insertions(+), 70 deletions(-)

diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile
index 73b7bff4f3..992d2d698b 100644
--- a/target/linux/brcm47xx/Makefile
+++ b/target/linux/brcm47xx/Makefile
@@ -21,7 +21,7 @@ endef
 
 include $(INCLUDE_DIR)/target.mk
 
-DEFAULT_PACKAGES += swconfig wpad-mini nvram otrx \
+DEFAULT_PACKAGES += swconfig nvram otrx \
 	kmod-leds-gpio kmod-gpio-button-hotplug \
 	kmod-ledtrig-default-on kmod-ledtrig-timer kmod-ledtrig-netdev
 
diff --git a/target/linux/brcm47xx/image/Makefile b/target/linux/brcm47xx/image/Makefile
index 8c681ac345..4501bcaf38 100644
--- a/target/linux/brcm47xx/image/Makefile
+++ b/target/linux/brcm47xx/image/Makefile
@@ -7,6 +7,9 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
+IEEE8021X := wpad-mini
+B43 := $(IEEE8021X) kmod-b43
+B43LEGACY := $(IEEE8021X) kmod-b43legacy
 USB1_PACKAGES := kmod-usb-ohci
 USB2_PACKAGES := $(USB1_PACKAGES) kmod-usb2
 
@@ -191,7 +194,7 @@ ifeq ($(SUBTARGET),generic)
   # BCM4705 with tg3
 define Device/linksys-wrt300n-v1.1
   DEVICE_TITLE := Linksys WRT300N v1.1
-  DEVICE_PACKAGES := kmod-tg3 kmod-b43
+  DEVICE_PACKAGES := kmod-tg3 $(B43)
   $(Device/linksys)
   DEVICE_ID := EWC2
   VERSION := 1.51.2
@@ -200,7 +203,7 @@ TARGET_DEVICES += linksys-wrt300n-v1.1
 
 define Device/linksys-wrt310n-v1
   DEVICE_TITLE := Linksys WRT310N v1
-  DEVICE_PACKAGES := kmod-tg3 kmod-b43
+  DEVICE_PACKAGES := kmod-tg3 $(B43)
   $(Device/linksys)
   DEVICE_ID := 310N
   VERSION := 1.0.10
@@ -209,7 +212,7 @@ TARGET_DEVICES += linksys-wrt310n-v1
 
 define Device/linksys-wrt350n-v1
   DEVICE_TITLE := Linksys WRT350N v1
-  DEVICE_PACKAGES := kmod-tg3 kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := kmod-tg3 $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := EWCG
   VERSION := 1.04.1
@@ -218,7 +221,7 @@ TARGET_DEVICES += linksys-wrt350n-v1
 
 define Device/linksys-wrt610n-v1
   DEVICE_TITLE := Linksys WRT610N v1
-  DEVICE_PACKAGES := kmod-tg3 kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := kmod-tg3 $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := 610N
   VERSION := 1.0.1
@@ -228,7 +231,7 @@ TARGET_DEVICES += linksys-wrt610n-v1
   # BCMA SoC with SSB WiFi
 define Device/linksys-wrt610n-v2
   DEVICE_TITLE := Linksys WRT610N v2
-  DEVICE_PACKAGES := kmod-bgmac kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := kmod-bgmac $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := 610N
   VERSION := 2.0.0
@@ -237,7 +240,7 @@ TARGET_DEVICES += linksys-wrt610n-v2
 
 define Device/linksys-e3000-v1
   DEVICE_TITLE := Linksys E3000 v1
-  DEVICE_PACKAGES := kmod-bgmac kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := kmod-bgmac $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := 61XN
   VERSION := 1.0.3
@@ -260,7 +263,7 @@ ifeq ($(SUBTARGET),legacy)
 
 define Device/asus-wl-300g
   DEVICE_TITLE := Asus WL-300g
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY)
   $(Device/asus)
   PRODUCTID := "WL300g      "
 endef
@@ -268,7 +271,7 @@ TARGET_DEVICES += asus-wl-300g
 
 define Device/asus-wl-320gp
   DEVICE_TITLE := Asus WL-320gP
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := "WL320gP     "
 endef
@@ -276,7 +279,7 @@ TARGET_DEVICES += asus-wl-320gp
 
 define Device/asus-wl-330ge
   DEVICE_TITLE := Asus WL-330gE
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := "WL-330gE    "
 endef
@@ -284,7 +287,7 @@ TARGET_DEVICES += asus-wl-330ge
 
 define Device/asus-wl-500gp-v1
   DEVICE_TITLE := Asus WL-500gP v1
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := "WL500gp     "
 endef
@@ -292,7 +295,7 @@ TARGET_DEVICES += asus-wl-500gp-v1
 
 define Device/asus-wl-500gp-v2
   DEVICE_TITLE := Asus WL-500gP v2
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := "WL500gpv2   "
 endef
@@ -300,7 +303,7 @@ TARGET_DEVICES += asus-wl-500gp-v2
 
 define Device/asus-wl-500w
   DEVICE_TITLE := Asus WL-500W
-  DEVICE_PACKAGES := kmod-b43 kmod-usb-uhci kmod-usb2-pci
+  DEVICE_PACKAGES := $(B43) kmod-usb-uhci kmod-usb2-pci
   $(Device/asus)
   PRODUCTID := "WL500W      "
 endef
@@ -308,7 +311,7 @@ TARGET_DEVICES += asus-wl-500w
 
 define Device/asus-wl-520gu
   DEVICE_TITLE := Asus WL-520gU
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := "WL520gu     "
 endef
@@ -316,7 +319,7 @@ TARGET_DEVICES += asus-wl-520gu
 
 define Device/asus-wl-550ge
   DEVICE_TITLE := Asus WL-550gE
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := "WL550gE     "
 endef
@@ -324,7 +327,7 @@ TARGET_DEVICES += asus-wl-550ge
 
 define Device/asus-wl-hdd25
   DEVICE_TITLE := Asus WL-HDD25
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy $(USB1_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY) $(USB1_PACKAGES)
   $(Device/asus)
   PRODUCTID := "WLHDD       "
 endef
@@ -340,7 +343,7 @@ TARGET_DEVICES += dlink-dwl-3150
 
 define Device/edimax-ps1208-mfg
   DEVICE_TITLE := Edimax PS-1208MFg
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   IMAGES := bin
   IMAGE/bin := append-rootfs | trx-with-loader | edimax-bin
 endef
@@ -348,7 +351,7 @@ TARGET_DEVICES += edimax-ps1208-mfg
 
 define Device/huawei-e970
   DEVICE_TITLE := Huawei E970
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   KERNEL_NAME = vmlinux.gz
   IMAGES := bin
   IMAGE/bin := append-rootfs | trx-without-loader | huawei-bin
@@ -357,7 +360,7 @@ TARGET_DEVICES += huawei-e970
 
 define Device/linksys-wrt54g3g
   DEVICE_TITLE := Linksys WRT54G3G
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := W54F
   VERSION := 2.20.1
@@ -374,7 +377,7 @@ TARGET_DEVICES += linksys-wrt54g3g-em
 
 define Device/linksys-wrt54g3gv2-vf
   DEVICE_TITLE := Linksys WRT54G3GV2-VF
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   FILESYSTEMS := $(FS_128K)
   IMAGES := noheader.bin bin
   IMAGE/noheader.bin := linksys-pattern-partition | append-rootfs | trx-v2-with-loader
@@ -387,7 +390,7 @@ TARGET_DEVICES += linksys-wrt54g3gv2-vf
 
 define Device/linksys-wrt54g
   DEVICE_TITLE := Linksys WRT54G
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY)
   $(Device/linksys)
   DEVICE_ID := W54G
   VERSION := 4.71.1
@@ -396,7 +399,7 @@ TARGET_DEVICES += linksys-wrt54g
 
 define Device/linksys-wrt54gs
   DEVICE_TITLE := Linksys WRT54GS
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   FILESYSTEMS := $(FS_128K)
   DEVICE_ID := W54S
@@ -406,7 +409,7 @@ TARGET_DEVICES += linksys-wrt54gs
 
 define Device/linksys-wrt54gs-v4
   DEVICE_TITLE := Linksys WRT54GS v4
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := W54s
   VERSION := 1.09.1
@@ -415,7 +418,7 @@ TARGET_DEVICES += linksys-wrt54gs-v4
 
 define Device/linksys-wrtsl54gs
   DEVICE_TITLE := Linksys WRTSL54GS
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   FILESYSTEMS := $(FS_128K)
   DEVICE_ID := W54U
@@ -425,7 +428,7 @@ TARGET_DEVICES += linksys-wrtsl54gs
 
 define Device/linksys-wrt150n
   DEVICE_TITLE := Linksys WRT150N
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := N150
   VERSION := 1.51.3
@@ -434,7 +437,7 @@ TARGET_DEVICES += linksys-wrt150n
 
 define Device/linksys-wrt160n-v1
   DEVICE_TITLE := Linksys WRT160N v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := N150
   VERSION := 1.50.1
@@ -443,7 +446,7 @@ TARGET_DEVICES += linksys-wrt160n-v1
 
 define Device/linksys-wrt300n-v1
   DEVICE_TITLE := Linksys WRT300N v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   IMAGES := bin trx
   DEVICE_ID := EWCB
@@ -453,7 +456,7 @@ TARGET_DEVICES += linksys-wrt300n-v1
 
 define Device/motorola-wa840g
   DEVICE_TITLE := Motorola WA840G
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY)
   $(Device/motorola)
   MOTOROLA_DEVICE := 2
 endef
@@ -461,7 +464,7 @@ TARGET_DEVICES += motorola-wa840g
 
 define Device/motorola-we800g
   DEVICE_TITLE := Motorola WE800G
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY)
   $(Device/motorola)
   MOTOROLA_DEVICE := 3
 endef
@@ -469,7 +472,7 @@ TARGET_DEVICES += motorola-we800g
 
 define Device/motorola-wr850g
   DEVICE_TITLE := Motorola WR850G
-  DEVICE_PACKAGES := kmod-b43 kmod-b43legacy
+  DEVICE_PACKAGES := $(B43) $(B43LEGACY)
   $(Device/motorola)
   MOTOROLA_DEVICE := 1
 endef
@@ -477,7 +480,7 @@ TARGET_DEVICES += motorola-wr850g
 
 define Device/netgear-wgr614-v8
   DEVICE_TITLE := Netgear WGR614 v8
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H072T00_NETGEAR
   NETGEAR_REGION := 2
@@ -495,7 +498,7 @@ TARGET_DEVICES += netgear-wgt634u
 
 define Device/netgear-wndr3300-v1
   DEVICE_TITLE := Netgear WNDR3300 v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H093T00_NETGEAR
   NETGEAR_REGION := 2
@@ -504,7 +507,7 @@ TARGET_DEVICES += netgear-wndr3300-v1
 
 define Device/netgear-wnr834b-v2
   DEVICE_TITLE := Netgear WNR834B v2
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H081T00_NETGEAR
   NETGEAR_REGION := 2
@@ -513,7 +516,7 @@ TARGET_DEVICES += netgear-wnr834b-v2
 
 define Device/usrobotics-usr5461
   DEVICE_TITLE := USRobotics USR5461
-  DEVICE_PACKAGES := kmod-b43 $(USB1_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB1_PACKAGES)
   IMAGES := bin
   IMAGE/bin := append-rootfs | trx-with-loader | usrobotics-bin
 endef
@@ -537,7 +540,7 @@ TARGET_DEVICES += asus-rt-ac53u
 
 define Device/asus-rt-ac66u
   DEVICE_TITLE := Asus RT-AC66U
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-AC66U
 endef
@@ -545,7 +548,7 @@ endef
 
 define Device/asus-rt-n10
   DEVICE_TITLE := Asus RT-N10
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := "RT-N10      "
 endef
@@ -553,7 +556,7 @@ TARGET_DEVICES += asus-rt-n10
 
 define Device/asus-rt-n10p
   DEVICE_TITLE := Asus RT-N10P
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := RT-N10P
 endef
@@ -568,7 +571,7 @@ TARGET_DEVICES += asus-rt-n10p-v2
 
 define Device/asus-rt-n10u
   DEVICE_TITLE := Asus RT-N10U
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N10U
 endef
@@ -576,7 +579,7 @@ TARGET_DEVICES += asus-rt-n10u
 
 define Device/asus-rt-n10u-b
   DEVICE_TITLE := Asus RT-N10U B
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N10U
 endef
@@ -584,7 +587,7 @@ TARGET_DEVICES += asus-rt-n10u-b
 
 define Device/asus-rt-n12
   DEVICE_TITLE := Asus RT-N12
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := "RT-N12      "
 endef
@@ -620,7 +623,7 @@ TARGET_DEVICES += asus-rt-n12hp
 
 define Device/asus-rt-n14uhp
   DEVICE_TITLE := Asus RT-N14UHP
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N14UHP
 endef
@@ -628,7 +631,7 @@ TARGET_DEVICES += asus-rt-n14uhp
 
 define Device/asus-rt-n15u
   DEVICE_TITLE := Asus RT-N15U
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N15U
 endef
@@ -636,7 +639,7 @@ TARGET_DEVICES += asus-rt-n15u
 
 define Device/asus-rt-n16
   DEVICE_TITLE := Asus RT-N16
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N16
 endef
@@ -644,7 +647,7 @@ TARGET_DEVICES += asus-rt-n16
 
 define Device/asus-rt-n53
   DEVICE_TITLE := Asus RT-N53
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/asus)
   PRODUCTID := RT-N53
 endef
@@ -652,7 +655,7 @@ TARGET_DEVICES += asus-rt-n53
 
 define Device/asus-rt-n66u
   DEVICE_TITLE := Asus RT-N66U
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N66U
 endef
@@ -660,7 +663,7 @@ TARGET_DEVICES += asus-rt-n66u
 
 define Device/asus-rt-n66w
   DEVICE_TITLE := Asus RT-N66W
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/asus)
   PRODUCTID := RT-N66U
 endef
@@ -668,7 +671,7 @@ TARGET_DEVICES += asus-rt-n66w
 
 define Device/linksys-wrt160n-v3
   DEVICE_TITLE := Linksys WRT160N v3
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := N150
   VERSION := 3.0.3
@@ -677,7 +680,7 @@ TARGET_DEVICES += linksys-wrt160n-v3
 
 define Device/linksys-wrt310n-v2
   DEVICE_TITLE := Linksys WRT310N v2
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 310N
   VERSION := 2.0.1
@@ -686,7 +689,7 @@ TARGET_DEVICES += linksys-wrt310n-v2
 
 define Device/linksys-wrt320n-v1
   DEVICE_TITLE := Linksys WRT320N v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 320N
   VERSION := 1.0.5
@@ -703,7 +706,7 @@ TARGET_DEVICES += linksys-e900-v1
 
 define Device/linksys-e1000-v1-v2-v2.1
   DEVICE_TITLE := Linksys E1000 v1 v2 v2.1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := E100
   VERSION := 1.1.3
@@ -736,7 +739,7 @@ TARGET_DEVICES += linksys-e1500-v1
 
 define Device/linksys-e1550-v1
   DEVICE_TITLE := Linksys E1550 v1
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := 1550
   VERSION := 1.0.3
@@ -745,7 +748,7 @@ TARGET_DEVICES += linksys-e1550-v1
 
 define Device/linksys-e2000-v1
   DEVICE_TITLE := Linksys E2000 v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 32XN
   VERSION := 1.0.4
@@ -754,7 +757,7 @@ TARGET_DEVICES += linksys-e2000-v1
 
 define Device/linksys-e2500-v1
   DEVICE_TITLE := Linksys E2500 v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := E25X
   VERSION := 1.0.7
@@ -763,7 +766,7 @@ TARGET_DEVICES += linksys-e2500-v1
 
 define Device/linksys-e2500-v2
   DEVICE_TITLE := Linksys E2500 v2
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := E25X
   VERSION := 2.0.0
@@ -772,7 +775,7 @@ TARGET_DEVICES += linksys-e2500-v2
 
 define Device/linksys-e2500-v2.1
   DEVICE_TITLE := Linksys E2500 v2.1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 25RU
   VERSION := 2.1.0
@@ -781,7 +784,7 @@ TARGET_DEVICES += linksys-e2500-v2.1
 
 define Device/linksys-e2500-v3
   DEVICE_TITLE := Linksys E2500 v3
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 25V3
   VERSION := 3.0.0
@@ -790,7 +793,7 @@ TARGET_DEVICES += linksys-e2500-v3
 
 define Device/linksys-e3200-v1
   DEVICE_TITLE := Linksys E3200 v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/linksys)
   DEVICE_ID := 3200
   VERSION := 1.0.1
@@ -799,7 +802,7 @@ TARGET_DEVICES += linksys-e3200-v1
 
 define Device/linksys-e4200-v1
   DEVICE_TITLE := Linksys E4200 v1
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/linksys)
   DEVICE_ID := 4200
   VERSION := 1.0.5
@@ -824,7 +827,7 @@ TARGET_DEVICES += netgear-wgr614-v10_other-regions
 
 define Device/netgear-wn2500rp-v1
   DEVICE_TITLE := Netgear WN2500RP v1
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H197T00_NETGEAR
   NETGEAR_REGION := 1
@@ -841,7 +844,7 @@ TARGET_DEVICES += netgear-wn3000rp
 
 define Device/netgear-wndr3400-v1
   DEVICE_TITLE := Netgear WNDR3400 v1
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H155T00_NETGEAR
   NETGEAR_REGION := 2
@@ -850,7 +853,7 @@ TARGET_DEVICES += netgear-wndr3400-v1
 
 define Device/netgear-wndr3400-v2
   DEVICE_TITLE := Netgear WNDR3400 v2
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H187T00_NETGEAR
   NETGEAR_REGION := 2
@@ -859,7 +862,7 @@ TARGET_DEVICES += netgear-wndr3400-v2
 
 define Device/netgear-wndr3400-v3
   DEVICE_TITLE := Netgear WNDR3400 v3
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H208T00_NETGEAR
   NETGEAR_REGION := 1
@@ -868,7 +871,7 @@ TARGET_DEVICES += netgear-wndr3400-v3
 
 define Device/netgear-wndr3700-v3
   DEVICE_TITLE := Netgear WNDR3700 v3
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H194T00_NETGEAR
   NETGEAR_REGION := 2
@@ -877,7 +880,7 @@ TARGET_DEVICES += netgear-wndr3700-v3
 
 define Device/netgear-wndr3400-vcna
   DEVICE_TITLE := Netgear WNDR3400 vcna
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H155T01_NETGEAR
   NETGEAR_REGION := 2
@@ -886,7 +889,7 @@ endef
 
 define Device/netgear-wndr4000
   DEVICE_TITLE := Netgear WNDR4000
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H181T00_NETGEAR
   NETGEAR_REGION := 2
@@ -903,7 +906,7 @@ TARGET_DEVICES += netgear-wnr1000-v3
 
 define Device/netgear-wnr2000v2
   DEVICE_TITLE := Netgear WNR2000 v2
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H114T00_NETGEAR
   NETGEAR_REGION := 2
@@ -912,7 +915,7 @@ TARGET_DEVICES += netgear-wnr2000v2
 
 define Device/netgear-wnr3500l-v1-north-america
   DEVICE_TITLE := Netgear WNR3500L v1 North America
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H136T99_NETGEAR
   NETGEAR_REGION := 2
@@ -921,7 +924,7 @@ TARGET_DEVICES += netgear-wnr3500l-v1-north-america
 
 define Device/netgear-wnr3500l-v1-other-regions
   DEVICE_TITLE := Netgear WNR3500L v1 Other Regions
-  DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
+  DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H136T99_NETGEAR
   NETGEAR_REGION := 1
@@ -948,7 +951,7 @@ endef
 
 define Device/netgear-wnr3500-v2
   DEVICE_TITLE := Netgear WNR3500 v2
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H127T00_NETGEAR
   NETGEAR_REGION := 2
@@ -957,7 +960,7 @@ TARGET_DEVICES += netgear-wnr3500-v2
 
 define Device/netgear-wnr3500-v2-vc
   DEVICE_TITLE := Netgear WNR3500 v2 vc
-  DEVICE_PACKAGES := kmod-b43
+  DEVICE_PACKAGES := $(B43)
   $(Device/netgear)
   NETGEAR_BOARD_ID := U12H127T70_NETGEAR
   NETGEAR_REGION := 2
-- 
2.11.0




More information about the Lede-dev mailing list