echo > $1
}
-function select_driver
+function select_drivers_from_makefile
{
- backup_file $DRIVERS_MAKEFILE
- perl -i -ne 'print if /'$1'\)/ ' $DRIVERS_MAKEFILE
-}
-
-function select_drivers
-{
- backup_file $DRIVERS_MAKEFILE
+ MAKEFILE="$1"
+ shift
+ backup_file $MAKEFILE
CONFIGS=""
COUNT=0
for i in $@; do
CONFIGS="${CONFIGS}|$i"
fi
done
- egrep "$CONFIGS" $DRIVERS_MAKEFILE > ${DRIVERS_MAKEFILE}.tmp
- mv ${DRIVERS_MAKEFILE}.tmp ${DRIVERS_MAKEFILE}
+ egrep "$CONFIGS" $MAKEFILE > ${MAKEFILE}.tmp
+ mv ${MAKEFILE}.tmp ${MAKEFILE}
+}
+
+function select_drivers
+{
+ select_drivers_from_makefile $DRIVERS_MAKEFILE $@
}
function disable_lib80211
disable_usbnet
;;
iwlwifi)
- select_driver CONFIG_IWLWIFI
+ select_drivers CONFIG_IWLWIFI
disable_staging
disable_var_01
disable_bt
disable_usbnet
;;
iwlegacy)
- select_driver CONFIG_IWLEGACY
+ select_drivers CONFIG_IWLEGACY
disable_staging
disable_var_01
disable_bt
ath5k)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath_driver CONFIG_ATH5K
#patch -p1 < enable-older-kernels/enable-2.6.23.patch
;;
ath9k)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath9k_driver
;;
ath9k_ap)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath9k_driver_ap
;;
carl9170)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath_driver CONFIG_CARL9170
;;
ath9k_htc)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath9k_driver
;;
ath6kl)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath_driver CONFIG_ATH6KL
;;
wil6210)
disable_staging
disable_bt_usb_ethernet_var
- select_driver CONFIG_ATH_COMMON
+ select_drivers CONFIG_ATH_COMMON
select_ath_driver CONFIG_WIL6210
;;
brcmsmac)
select_brcm80211_driver CONFIG_BRCMFMAC CONFIG_BRCMUTIL
;;
zd1211rw)
- select_driver CONFIG_COMPAT_ZD1211RW
+ select_drivers CONFIG_COMPAT_ZD1211RW
disable_staging
disable_var_01
;;
disable_bt_usb_ethernet
disable_eeprom
disable_lib80211
- select_driver CONFIG_B43
+ select_drivers CONFIG_B43
;;
rt2x00)
- select_driver CONFIG_RT2X00
+ select_drivers CONFIG_RT2X00
disable_staging
disable_bt_usb_ethernet
disable_var_02
disable_update-initramfs
;;
bt)
- select_driver CONFIG_BT
+ select_drivers CONFIG_BT
disable_var
disable_ethernet
disable_staging