From patchwork Sat Oct 2 16:55:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Walter Goldens X-Patchwork-Id: 227201 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o92GtsVQ015079 for ; Sat, 2 Oct 2010 16:55:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750816Ab0JBQzx (ORCPT ); Sat, 2 Oct 2010 12:55:53 -0400 Received: from web56802.mail.re3.yahoo.com ([66.196.97.76]:39387 "HELO web56802.mail.re3.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750762Ab0JBQzw (ORCPT ); Sat, 2 Oct 2010 12:55:52 -0400 Received: (qmail 48322 invoked by uid 60001); 2 Oct 2010 16:55:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1286038551; bh=5BNAp97zGBi9xvhYfAkp49pUBx3A0LzVeN/BCBf5nHQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Z9gDN8wWCfOkL/BqT8Ga2yp7b0UP8JuOLemQDX+ZL/cp2nTHO/BSoKb5wub488VJLSpzuV7fZoxZcVDFfkyd3R8/H91xt7gAy3GvjQjJqNdUIX4zNPZMklAzWDE0iUbpn0e1HsBOs0ronxxZ8d9K8+oaCsVdl2DWnWX7Vgbc3r0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=3Gc6ak+jvqqFORZ/lp8H5ONSN5amU2LzI+a3DHT+xPyc5IjTqYvEOch81b5+4M5ajERRPNOQgYOVCoqTRXhTeYE5lt9FfwrAOIbjjl2bri+NUNhszKJ3M3B2gUzWUDwLF1P8l09nHaflugnUkWwdVsT7UETdHET0WmCcQracoAQ=; Message-ID: <698964.46316.qm@web56802.mail.re3.yahoo.com> X-YMail-OSG: 5Pj5ruIVM1ksN2IiWbHNzHx7g.4NpqDgkwmM23qXArKk_Ti eBZVKrfkHktR8K7R0S7CERcHOimlNt0kF619nTm6IzuINKlkss1C90intBgB azt6nvy7MpDO4R_lg.6WJkPXyjHUN8xtObzCpyZm8dIHu1TlOApk_4nvB5uZ 2SFH1zTZXkN6R4lNTrFtDqOaWqa7166carKvmdQ9oAG92..2lga6jhI2C.3t FA5An0j0DosBf4w3RJsGpYUEvEBgzQc_WJzwqlo5wx_doDqLhAPfR3qvgzdQ hCyJ4cxIuOU1Jrftim0oMMf535phvMydY8RBso0Z_4T0bmWP.61vJGMNj1v7 L Received: from [83.148.93.107] by web56802.mail.re3.yahoo.com via HTTP; Sat, 02 Oct 2010 09:55:51 PDT X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.106.282862 Date: Sat, 2 Oct 2010 09:55:51 -0700 (PDT) From: Walter Goldens Subject: [PATCH] compat-wireless: introduce driver-select group for atlxx To: "Luis R. Rodriguez" Cc: linux-wireless@vger.kernel.org In-Reply-To: <1284325760-929-1-git-send-email-hauke@hauke-m.de> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 02 Oct 2010 16:55:54 +0000 (UTC) --- a/scripts/driver-select +++ b/scripts/driver-select @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2009 Luis R. Rodriguez # -# This this to select your compat-wireless driver and +# This script allows you to select your compat-wireless driver and # reduce compilation time. DRIVERS_MAKEFILE="drivers/net/wireless/Makefile" @@ -42,7 +42,7 @@ 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" +SUPPORTED_ETH_DRIVERS="" function usage { echo -e "${GREEN}Usage${NORMAL}: ${CYAN}$0${NORMAL} [ ${PURPLE}${NORMAL} | ${PURPLE}${NORMAL} | ${GREEN}restore${NORMAL} ]" @@ -53,7 +53,7 @@ function usage { echo -e "\t${PURPLE}${i}${NORMAL}" done - echo -e "\nSupported Ethernet drivers:" + echo -e "\nSupported Ethernet drivers: < ${PURPLE}atl1 atl2 atl1e atl1c${NORMAL} >" for i in $SUPPORTED_ETH_DRIVERS; do echo -e "\t${PURPLE}${i}${NORMAL}" done @@ -66,6 +66,8 @@ function usage { echo -e "\t${CYAN}iwlwifi${NORMAL} < ${PURPLE} iwl3945 iwlagn ${NORMAL}>" echo -e "\t${CYAN}rtl818x${NORMAL} < ${PURPLE} rtl8180 rtl8187 ${NORMAL}>" echo -e "\t${CYAN}wl12xx${NORMAL} < ${PURPLE} wl1251 (SPI and SDIO) wl1271 ${NORMAL}>" + + echo -e "\t${BLUE}atlxx${NORMAL} < ${PURPLE} atl1 atl2 atl1e atl1c ${NORMAL}>" echo -e "Restoring compat-wireless:" echo -e "\t${GREEN}restore${NORMAL}: you can use this option to restore compat-wireless to the original state" @@ -265,7 +267,7 @@ fi if [[ ! -f built-in.o ]]; then if [[ "$1" != "restore" ]]; then - echo -e "${YELLOW}Processing new driver-select request...${NORMAL}" + echo -e "${PURPLE}Processing new driver-select request...${NORMAL}" fi fi @@ -279,9 +281,9 @@ fi # we'll be trying to leave drivers on Makefiles which are not # already there from a previous run. if [ -f built-in.o ]; then - echo -e "${YELLOW}Old build found, going to clean this up first...${NORMAL}" + echo -e "${PURPLE}Old build found, going to clean this up first...${NORMAL}" make clean - echo -e "${YELLOW}Restoring Makefiles...${NORMAL}" + echo -e "${PURPLE}Restoring Makefiles...${NORMAL}" ./$0 restore fi @@ -289,6 +291,7 @@ case $1 in restore) restore_compat ;; +# Group drivers atheros) select_drivers CONFIG_ATH_COMMON \ CONFIG_ZD1211RW @@ -316,6 +319,12 @@ case $1 in disable_staging disable_var_01 ;; + rtl818x) + select_drivers CONFIG_RTL8180 CONFIG_RTL8187 + disable_staging + disable_var_02 + ;; +# Singular modules ath5k) disable_staging disable_bt_usb_ethernet_var @@ -353,11 +362,6 @@ case $1 in disable_ath6kl select_driver CONFIG_NOTHING ;; - rtl818x) - select_drivers CONFIG_RTL8180 CONFIG_RTL8187 - disable_staging - disable_var_02 - ;; zd1211rw) select_driver CONFIG_ZD1211RW disable_staging @@ -375,6 +379,7 @@ case $1 in disable_staging disable_var_02 ;; +# Ethernet drivers atl1) enable_only_ethernet echo -e "obj-\$(CONFIG_ATL1) += atlx/" > $DRIVERS_NET @@ -391,6 +396,11 @@ case $1 in enable_only_ethernet echo -e "obj-\$(CONFIG_ATL1C) += atl1c/" > $DRIVERS_NET ;; + atlxx) + select_drivers CONFIG_ATL1 CONFIG_ATL2 CONFIG_ATL1E CONFIG_ATL1C + enable_only_ethernet + disable_b44 + ;; *) echo "Unsupported driver" exit