From: Luis R. Rodriguez Date: Fri, 4 Jun 2010 22:50:34 +0000 (-0700) Subject: compat-wireless: add Ethernet support for driver-select X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f638a1225bbdcaad8f4f10d30e24bf5c9bfd8fb;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: add Ethernet support for driver-select Signed-off-by: Luis R. Rodriguez --- diff --git a/scripts/driver-select b/scripts/driver-select index 70eef2577eb4..9721df699832 100755 --- a/scripts/driver-select +++ b/scripts/driver-select @@ -30,19 +30,27 @@ PURPLE="\033[35m" CYAN="\033[36m" UNDERLINE="\033[02m" -SUPPORTED_DRIVERS="ath5k ath9k ath9k_htc ar9170 b43 zd1211rw rt2x00" +SUPPORTED_80211_DRIVERS="ath5k ath9k ath9k_htc ar9170 b43 zd1211rw rt2x00" +# 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" function usage { echo -e "${GREEN}Usage${NORMAL}: ${CYAN}$0${NORMAL} [ ${PURPLE}${NORMAL} | ${PURPLE}${NORMAL} | ${GREEN}restore${NORMAL} ]" # These should match the switch below. - echo -e "Supported drivers:" - for i in $SUPPORTED_DRIVERS; do + echo -e "Supported 802.11 drivers:" + for i in $SUPPORTED_80211_DRIVERS; do + echo -e "\t${PURPLE}${i}${NORMAL}" + done + + echo -e "\nSupported Ethernet drivers:" + for i in $SUPPORTED_ETH_DRIVERS; do echo -e "\t${PURPLE}${i}${NORMAL}" done # These should match the switch below. - echo -e "Supported group drivers:" + echo -e "\nSupported group drivers:" echo -e "\t${CYAN}atheros${NORMAL} < ${PURPLE} ath5k ath9k ar9170 zd1211rw ${NORMAL}>" echo -e "\t${CYAN}ath${NORMAL} < ${PURPLE} ath5k ath9k ar9170 ${NORMAL}>" echo -e "\t${CYAN}intel${NORMAL} < ${PURPLE} iwl3945 iwlagn ipw2100 ipw2200 ${NORMAL}>" @@ -109,6 +117,12 @@ function disable_ssb perl -i -ne 'print if ! /drivers\/ssb\/ \\/ ' Makefile } +function disable_rfkill +{ + backup_file Makefile + perl -i -ne 'print if ! /CONFIG_COMPAT_RFKILL/' Makefile +} + function disable_eeprom { disable_makefile ${EEPROM_MAKEFILE} @@ -137,6 +151,10 @@ function disable_bt { perl -i -ne 'print if ! /CONFIG_COMPAT_VAR_MODULES/' Makefile } +function disable_80211 { + perl -i -ne 'print if ! /CONFIG_COMPAT_WIRELESS/' Makefile +} + function disable_bt_usb_ethernet_var { backup_file Makefile disable_usbnet @@ -145,6 +163,17 @@ function disable_bt_usb_ethernet_var { disable_bt } +function enable_only_ethernet { + backup_file Makefile + backup_file $DRIVERS_NET + disable_usbnet + disable_var_03 + disable_bt + # rfkill may be needed if you enable b44 as you may have b43 + disable_rfkill + disable_80211 +} + function disable_var { disable_ssb disable_usbnet @@ -298,6 +327,22 @@ case $1 in select_driver CONFIG_RT2X00 disable_var_02 ;; + atl1) + enable_only_ethernet + echo -e "obj-\$(CONFIG_ATL1) += atlx/" > $DRIVERS_NET + ;; + atl2) + enable_only_ethernet + echo -e "obj-\$(CONFIG_ATL2) += atlx/" > $DRIVERS_NET + ;; + atl1e) + enable_only_ethernet + echo -e "obj-\$(CONFIG_ATL1E) += atl1e/" > $DRIVERS_NET + ;; + atl1c) + enable_only_ethernet + echo -e "obj-\$(CONFIG_ATL1C) += atl1c/" > $DRIVERS_NET + ;; *) echo "Unsupported driver" exit