diff mbox

[OpenWrt-Devel,v2] mac80211: Make wlcore platform-independent

Message ID 1478780897-10851-1-git-send-email-abrodkin@synopsys.com
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Alexey Brodkin Nov. 10, 2016, 12:28 p.m. UTC
TI wl18xx and wl12xx are Wi-Fi/Bluetooth combo modules
that could be found on different existing boards.

But it is possible to get those modules as a separate
component and use with existing boards as well as
new boards equipped with either module may appear so we
remove dependency on OMAP instead we add dependency on MMC
because this Wi-Fi module uses SDIO interface.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Imre Kaloz <kaloz@openwrt.org>
---

Changes v1 -> v2:
 * Added dependency on kmod-mmc because SDIO interface is used by
   TI's wl12/18xx modules.

Build-tested for AR7xxx/9xxx and ARC platforms.

 package/kernel/mac80211/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Florian Fainelli Nov. 10, 2016, 11:26 p.m. UTC | #1
On 11/10/2016 04:28 AM, Alexey Brodkin wrote:
> TI wl18xx and wl12xx are Wi-Fi/Bluetooth combo modules
> that could be found on different existing boards.
> 
> But it is possible to get those modules as a separate
> component and use with existing boards as well as
> new boards equipped with either module may appear so we
> remove dependency on OMAP instead we add dependency on MMC
> because this Wi-Fi module uses SDIO interface.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Jo-Philipp Wich <jo@mein.io>
> Cc: Felix Fietkau <nbd@nbd.name>
> Cc: Imre Kaloz <kaloz@openwrt.org>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>

Makes sense!
diff mbox

Patch

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 25adbfb..50f225e 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -1378,7 +1378,7 @@  endef
 define KernelPackage/wlcore
   $(call KernelPackage/mac80211/Default)
   TITLE:=TI common driver part
-  DEPENDS+= @TARGET_omap +kmod-mac80211 +@DRIVER_11N_SUPPORT
+  DEPENDS+= +kmod-mmc +kmod-mac80211 +@DRIVER_11N_SUPPORT
   FILES:= \
 	$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore.ko \
 	$(PKG_BUILD_DIR)/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko