From: Luis R. Rodriguez Date: Tue, 31 Aug 2010 01:59:44 +0000 (-0700) Subject: compat-wireless: enable ath6kl from being included X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6d8431e62a8ebc5a81091fd2e8273ae244d05977;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: enable ath6kl from being included ath6kl is not yet upstream but is on its way. For now just display and copy ath6kl if its present on linux-next.git Signed-off-by: Luis R. Rodriguez --- diff --git a/Makefile b/Makefile index e2041123d2d8..b590ca2421da 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,12 @@ endif obj-$(CONFIG_COMPAT_BLUETOOTH) += net/bluetooth/ obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/ + +ifeq ($(CONFIG_STAGING_EXCLUDE_BUILD),) +obj-$(CONFIG_COMPAT_STAGING) += drivers/staging/ath6kl/ +endif + + else export PWD := $(shell pwd) diff --git a/config.mk b/config.mk index 87b637e9d8bb..458de29c5252 100644 --- a/config.mk +++ b/config.mk @@ -196,6 +196,10 @@ ifneq ($(CONFIG_WIRELESS_EXT),) CONFIG_CFG80211_WEXT=y endif +ifneq ($(CONFIG_STAGING),) +CONFIG_COMPAT_STAGING=m +endif + # mac80211 test driver CONFIG_MAC80211_HWSIM=m @@ -485,6 +489,21 @@ CONFIG_IWM=m CONFIG_BT_HCIBTSDIO=m CONFIG_BT_MRVL_SDIO=m +ifneq ($(CONFIG_COMPAT_STAGING),) +CONFIG_ATH6KL_CFG80211=y +CONFIG_ATH6KL_DEBUG=y +# CONFIG_ATH6KL_DISABLE_TARGET_DBGLOGS is not set +# CONFIG_ATH6KL_ENABLE_COEXISTENCE is not set +# CONFIG_ATH6KL_ENABLE_HOST_DEBUG is not set +CONFIG_ATH6KL_ENABLE_TARGET_DEBUG_PRINTS=y +# CONFIG_ATH6KL_HCI_BRIDGE is not set +# CONFIG_ATH6KL_HTC_RAW_INTERFACE is not set +# CONFIG_ATH6KL_SKIP_ABI_VERSION_CHECK is not set +CONFIG_ATH6KL_VIRTUAL_SCATTER_GATHER=y +CONFIG_ATH6K_LEGACY=m +endif + + endif # end of SDIO driver list # Common rt2x00 requirements diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 8ff2eceb2e19..e000faf0cf5d 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -210,6 +210,9 @@ DRIVERS="$DRIVERS drivers/net/wireless/wl12xx" DRIVERS="$DRIVERS drivers/net/wireless/iwmc3200wifi" DRIVERS="$DRIVERS drivers/net/wireless/orinoco" +# Staging drivers +STAGING_DRIVERS="drivers/staging/ath6kl" + # Ethernet drivers DRIVERS="$DRIVERS drivers/net/atl1c" DRIVERS="$DRIVERS drivers/net/atl1e" @@ -303,6 +306,20 @@ for i in $DRIVERS; do rm -f $i/*.mod.c done +# Staging drivers in their own directory +rm -rf drivers/staging/ +mkdir -p drivers/staging/ +for i in $STAGING_DRIVERS; do + if [ ! -d $GIT_TREE/$i ]; then + continue + fi + rm -rf $i + echo -e "Copying ${RED}STAGING${NORMAL} $GIT_TREE/$i/*.[ch]" + # staging drivers tend to have their own subdirs... + cp -a $GIT_TREE/$i drivers/staging/ + rm -f $i/*.mod.c +done + for i in $DRIVERS_BT; do mkdir -p $i echo "Copying $GIT_TREE/$i/*.[ch]" diff --git a/scripts/driver-select b/scripts/driver-select index a88b08eb92a9..5f7d422aed72 100755 --- a/scripts/driver-select +++ b/scripts/driver-select @@ -31,6 +31,11 @@ CYAN="\033[36m" UNDERLINE="\033[02m" SUPPORTED_80211_DRIVERS="ath5k ath9k ath9k_htc ar9170 b43 zd1211rw rt2x00" + +if [ -d drivers/staging/ath6kl ]; then + SUPPORTED_80211_DRIVERS="$SUPPORTED_80211_DRIVERS ath6kl" +fi + # b43 needs some more work for driver-select, the SSB stuff, plus # what if you update b44 but not b43? It will bust. SUPPORTED_ETH_DRIVERS="atl1 atl2 atl1e atl1c" @@ -309,6 +314,12 @@ case $1 in select_driver CONFIG_ATH_COMMON select_ath9k_driver ;; + ath6kl) + disable_bt_usb_ethernet_var + select_driver CONFIG_NOTHING + sed -e 's|net/mac80211/||' Makefile > Makefile.ath6kl + mv Makefile.ath6kl Makefile + ;; rtl818x) select_drivers CONFIG_RTL8180 CONFIG_RTL8187 disable_var_02