compat-wireless: Rename compat-wireless to compat-drivers
PATCH 1/1 compat-wireless: Rename compat-wireless to compat-drivers
This first patch touches mostly cosmetic parts to change compat-wireless -> compat-drivers.
GIT URL's describing compat-wireless.git are not changed for now as the git repo in github is still compat-wireless.git.
Signed-off-by Ozan Çağlayan <[email protected]>
--- Makefile | 10 +++---- README | 61 +++++++++++++++++++----------------------- config.mk | 11 ++++---- crap/README | 2 +- enable-older-kernels/README | 6 ++--- linux-next-cherry-picks/README | 4 +-- linux-next-pending/README | 4 +-- patches/README | 2 +- pending-stable/README | 2 +- scripts/admin-update.sh | 18 ++++++------- scripts/athenable | 2 +- scripts/athload | 2 +- scripts/b43enable | 2 +- scripts/b43load | 2 +- scripts/check_config.sh | 4 +-- scripts/check_depmod | 4 +-- scripts/driver-select | 8 +++--- scripts/gen-compat-autoconf.sh | 12 ++++----- scripts/gen-stable-release.sh | 10 +++---- scripts/iwl-enable | 2 +- scripts/iwl-load | 2 +- scripts/refresh-compat | 4 +-- scripts/refresh-compat-local | 2 +- 23 files changed, 85 insertions(+), 91 deletions(-)
Makefile +5 -5
@@ -66,7 +66,7 @@ export PWD := $(shell pwd) # The build will fail if there is any space in PWD. ifneq (,$(findstring $() ,$(PWD))) -$(error "The path to this compat-wireless directory has spaces in it." \ +$(error "The path to this compat-drivers directory has spaces in it." \ "Please put it somewhere where there is no space") endif
@@ -74,7 +74,7 @@ export CFLAGS += \ -DCOMPAT_BASE="\"$(shell cat $(PWD)/.compat_base)\"" \ -DCOMPAT_BASE_TREE="\"$(shell cat $(PWD)/.compat_base_tree)\"" \ -DCOMPAT_BASE_TREE_VERSION="\"$(shell cat $(PWD)/.compat_base_tree_version)\"" \ - -DCOMPAT_PROJECT="\"Compat-wireless\"" \ + -DCOMPAT_PROJECT="\"Compat-drivers\"" \ -DCOMPAT_VERSION="\"$(shell cat $(PWD)/.compat_version)\"" # These exported as they are used by the scripts
@@ -103,7 +103,7 @@ bt: $(CREL_CHECK) # We use a CREL_CHECK variable which will depend on the environment used to # build. If the environment requirements change it forces a reconfiguration # check. This means we force a new reconfiguration check if a the user gets a -# new updates of compat-wireless or when the user updates the $(COMPAT_CONFIG) +# new updates of compat-drivers or when the user updates the $(COMPAT_CONFIG) # file. # XXX: add kernel target to the CREL_CHECK mix, this would ensure we also # reconfigure and build again fresh if we detect a new target kernel is
@@ -152,8 +152,8 @@ install-modules: modules install-scripts: @# All the scripts we can use - @mkdir -p $(DESTDIR)/usr/lib/compat-wireless/ - @install scripts/modlib.sh $(DESTDIR)/usr/lib/compat-wireless/ + @mkdir -p $(DESTDIR)/usr/lib/compat-drivers/ + @install scripts/modlib.sh $(DESTDIR)/usr/lib/compat-drivers/ @install scripts/madwifi-unload $(DESTDIR)/usr/sbin/ @# This is to allow switching between drivers without blacklisting @install scripts/athenable $(DESTDIR)/usr/sbin/
README +27 -34
129 lines not on this page · raw message
config.mk +6 -5
@@ -17,8 +17,9 @@ else KERNEL_26SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p') endif +# FIXME: This lower limit is different (e.g. 3.0) for DRM stuff. ifdef CONFIG_COMPAT_KERNEL_2_6_24 -$(error "ERROR: compat-wireless by default supports kernels >= 2.6.24, try enabling only one driver though") +$(error "ERROR: compat-drivers by default supports kernels >= 2.6.24, try enabling only one driver though") endif #CONFIG_COMPAT_KERNEL_2_6_24 ifeq ($(CONFIG_CFG80211),y)
@@ -76,7 +77,7 @@ endif endif # build check endif # kernel Makefile check -# These both are needed by compat-wireless || compat-bluetooth so enable them +# These both are needed by 802.11 and bluetooth so enable export CONFIG_COMPAT_RFKILL=y ifeq ($(CONFIG_MAC80211),y)
@@ -165,7 +166,7 @@ endif #CONFIG_COMPAT_KERNEL_2_6_33 export CONFIG_MAC80211_RC_DEFAULT=minstrel_ht export CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y # export CONFIG_MAC80211_RC_DEFAULT_PID=y -# This is the one used by our compat-wireless net/mac80211/rate.c +# This is the one used by our compat-drivers net/mac80211/rate.c # in case you have and old kernel which is overriding this to pid. export CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstrel_ht export CONFIG_MAC80211_RC_PID=y
@@ -228,8 +229,8 @@ endif #CONFIG_PCMCIA # We need CONFIG_WIRELESS_EXT for CONFIG_CFG80211_WEXT for every kernel # version. The new way CONFIG_CFG80211_WEXT is called from the kernel -# does not work with compat-wireless because it calls some callback -# function on struct wiphy. This struct is shipped with compat-wireless +# does not work with compat-drivers because it calls some callback +# function on struct wiphy. This struct is shipped with compat-drivers # and changes from kernel version to version. We are using the # wireless_handlers attribute which will be activated by # export CONFIG_WIRELESS_EXT.
crap/README +1 -1
@@ -1,5 +1,5 @@ -compat-wireless crap patches +compat-drivers crap patches ============================ If you are including patches into this directory you
enable-older-kernels/README +3 -3
@@ -1,12 +1,12 @@ -compat-wireless as a whole aims to always be compiled and used with the +compat-drivers as a whole aims to always be compiled and used with the oldest stable kernel supported by kernel.org. This will be the oldest stable kernel on the 2.6. series listed on the kernel.org front page. Sometimes we'll go even beyond that. -Backporting compat-wireless involves backporting some subsystems but +Backporting compat-drivers involves backporting some subsystems but at times we may want to support compiling only certain drivers on older kernels since its easier to backport some subsystems. Such is the case with PCI drivers. This directly exists to allow developers enable -compilation of compat-wireless on older drivers using ./scripts/driver-select +compilation of compat-drivers on older drivers using ./scripts/driver-select Upon selection of a driver a patch from this directly will be applied to allow further compilation of one driver onto even older kernels.
linux-next-cherry-picks/README +2 -2
@@ -1,5 +1,5 @@ -compat-wireless linux-next chery picked patches -=============================================== +compat-drivers linux-next chery picked patches +============================================== We work hard to get patches in time onto the stable tree but sometimes a few things slip out, and sometimes a
linux-next-pending/README +2 -2
@@ -1,5 +1,5 @@ -compat-wireless linux-next-pending patches +compat-drivers linux-next-pending patches ========================================== You must have a really good reason to be adding files
@@ -8,7 +8,7 @@ been posted to a public mailing list for the subsystem you are working on. Each patch you add here must have a really good explanation on the top of the file which clarifies why the patch has not yet been merged OR specify it on the commit log -when you add it on compat-wireless. +when you add it on compat-drivers. We try to avoid having patch files because but we understand if you might because you need to test code posted but not yet
patches/README +1 -1
@@ -1,5 +1,5 @@ -compat-wireless patches +compat-drivers patches ======================= You must have a really good reason to be adding files
pending-stable/README +1 -1
@@ -1,4 +1,4 @@ -compat-wireless pending-stable/ patches +compat-drivers pending-stable/ patches ======================================= Often right before the merge window we get a block on non
scripts/admin-update.sh +9 -9
@@ -2,13 +2,13 @@ # # Copyright 2007, 2008, 2010 Luis R. Rodriguez <[email protected]> # -# Use this to update compat-wireless to the latest +# Use this to update compat-drivers to the latest # linux-next.git tree you have. # # Usage: you should have the latest pull of linux-next.git # git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git # We assume you have it on your ~/linux-next/ directory. If you do, -# just run this script from the compat-wireless directory. +# just run this script from the compat-drivers directory. # You can specify where your GIT_TREE is by doing: # # export GIT_TREE=/home/mcgrof/linux-next/
@@ -443,7 +443,7 @@ cp -a $GIT_COMPAT_TREE/include/pcmcia/* include/pcmcia/ cp -a $GIT_COMPAT_TREE/include/crypto/* include/crypto/ rm -f $COMPAT/*.mod.c -# files we suck in for compat-wireless +# files we suck in for wireless drivers export WSTABLE=" net/wireless/ net/wireless/
@@ -561,7 +561,7 @@ patchRefresh() { ORIG_CODE=$(find ./ -type f -name \*.[ch] | egrep -v "^./compat/|include/linux/compat" | xargs wc -l | tail -1 | awk '{print $1}') -printf "\n${CYAN}compat-wireless code metrics${NORMAL}\n\n" > $CODE_METRICS +printf "\n${CYAN}compat-drivers code metrics${NORMAL}\n\n" > $CODE_METRICS printf "${PURPLE}%10s${NORMAL} - Total upstream lines of code being pulled\n" $ORIG_CODE >> $CODE_METRICS for dir in $EXTRA_PATCHES; do
@@ -625,16 +625,16 @@ if [ -d ./.git ]; then case $TREE_NAME in "wireless-testing.git") # John's wireless-testing - echo -e "This is a ${RED}wireless-testing.git${NORMAL} compat-wireless release" + echo -e "This is a ${RED}wireless-testing.git${NORMAL} compat-drivers release" ;; "linux-next.git") # The linux-next integration testing tree - echo -e "This is a ${RED}linux-next.git${NORMAL} compat-wireless release" + echo -e "This is a ${RED}linux-next.git${NORMAL} compat-drivers release" ;; "linux-stable.git") # Greg's all stable tree - echo -e "This is a ${GREEN}linux-stable.git${NORMAL} compat-wireless release" + echo -e "This is a ${GREEN}linux-stable.git${NORMAL} compat-drivers release" ;; "linux-2.6.git") # Linus' 2.6 tree - echo -e "This is a ${GREEN}linux-2.6.git${NORMAL} compat-wireless release" + echo -e "This is a ${GREEN}linux-2.6.git${NORMAL} compat-drivers release" ;; *) ;;
@@ -644,7 +644,7 @@ if [ -d ./.git ]; then echo -e "\nBase tree: ${GREEN}$(cat .compat_base_tree)${NORMAL}" >> $CODE_METRICS echo -e "Base tree version: ${PURPLE}$(cat .compat_base_tree_version)${NORMAL}" >> $CODE_METRICS echo -e "compat.git: ${CYAN}$(cat .compat_base)${NORMAL}" >> $CODE_METRICS - echo -e "compat-wireless release: ${YELLOW}$(cat .compat_version)${NORMAL}" >> $CODE_METRICS + echo -e "compat-drivers release: ${YELLOW}$(cat .compat_version)${NORMAL}" >> $CODE_METRICS fi
scripts/athenable +1 -1
@@ -5,7 +5,7 @@ # Makes sure either ath5k or MadWifi are ready to be used. This allows # us to choose any driver without blacklisting each other. -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh if [[ $UID -ne 0 ]]; then echo "Run with root privileges"
scripts/athload +1 -1
@@ -3,7 +3,7 @@ # # Loads ath5k or madwifi -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh if [[ $UID -ne 0 ]]; then echo "Run with root privileges"
scripts/b43enable +1 -1
@@ -6,7 +6,7 @@ # is enabled to be used. This allows us to choose any driver without # blacklisting each other. -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh if [[ $UID -ne 0 ]]; then echo "Run with root privileges"
scripts/b43load +1 -1
@@ -3,7 +3,7 @@ # # Loads new broadcom drivers (b43 and b43legacy) or the old ones (bcm43xx) -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh if [[ $UID -ne 0 ]]; then echo "Run with root privileges"
scripts/check_config.sh +2 -2
@@ -1,5 +1,5 @@ #!/usr/bin/env bash -# This script checks the compat-wireless configuration file and if changes were made +# This script checks the compat-drivers configuration file and if changes were made # regenerates the compat_autoconf header. # These variables are expected to be exported:
@@ -28,7 +28,7 @@ fi md5sum -c $CONFIG_CHECK 2> /dev/null 1>/dev/null if [ $? -ne 0 ]; then - echo "Changes to compat-wireless's configuration was detected, regenerating autoconf..." + echo "Changes to compat-drivers's configuration was detected, regenerating autoconf..." gen_compat_autoconf fi
scripts/check_depmod +2 -2
@@ -7,9 +7,9 @@ # Seems Mandriva has an $DEPMOD_DIR but it doesn't have any files, # so lets deal with those distributions. DEPMOD_CONF="/etc/depmod.conf" -DEPMOD_CONF_TMP="$DEPMOD_CONF.compat-wireless.old" +DEPMOD_CONF_TMP="$DEPMOD_CONF.compat-drivers.old" DEPMOD_DIR="/etc/depmod.d/" -COMPAT_DEPMOD_FILE=compat-wireless.conf +COMPAT_DEPMOD_FILE=compat-drivers.conf GREP_REGEX_UPDATES="^[[:space:]]*search.*[[:space:]]updates\([[:space:]]\|$\)" GREP_REGEX_SEARCH="^[[:space:]]*search[[:space:]].\+$" DEPMOD_CMD="depmod"
scripts/driver-select +4 -4
@@ -1,7 +1,7 @@ #!/usr/bin/env bash # Copyright 2009 Luis R. Rodriguez <[email protected]> # -# This script allows you to select your compat-wireless driver and +# This script allows you to select your compat-drivers driver and # reduce compilation time. COMPAT_CONFIG_CW="config.mk"
@@ -69,8 +69,8 @@ function usage { echo -e "\t${CYAN}atlxx${NORMAL} < ${PURPLE} atl1 atl2 atl1e alx${NORMAL}>" echo -e "\t${CYAN}bt${NORMAL} < ${PURPLE} Linux bluetooth drivers ${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" + echo -e "Restoring compat-drivers:" + echo -e "\t${GREEN}restore${NORMAL}: you can use this option to restore compat-drivers to the original state" } function backup_file {
@@ -279,7 +279,7 @@ if [ $# -ne 1 ]; then fi if [ ! -f .compat_version ]; then - echo "Must run $0 from the compat-wireless top level directory" + echo "Must run $0 from the compat-drivers top level directory" exit fi
scripts/gen-compat-autoconf.sh +6 -6
@@ -17,7 +17,7 @@ KERNEL_RELEASE=".compat_base_tree_version" MULT_DEP_FILE=".compat_pivot_dep" if [ $# -ne 2 ]; then - echo "Usage $0 <generic-compat-config-file> <compat-wireless-config-file>" + echo "Usage $0 <generic-compat-config-file> <compat-drivers-config-file>" exit fi
@@ -67,19 +67,19 @@ function define_config { esac } -# This deals with core compat-wireless kernel requirements. +# This deals with core compat-drivers kernel requirements. function define_config_req { VAR=$1 echo "#ifndef $VAR" - echo -n "#error Compat-wireless requirement: $VAR must be enabled " + echo -n "#error Compat-drivers requirement: $VAR must be enabled " echo "in your kernel" echo "#endif /* $VAR */" } # This handles modules which have dependencies from the kernel -# which compat-wireless isn't providing yet either because +# which compat-drivers isn't providing yet either because # the dependency is not available as kernel module or -# the module simply isn't provided by compat-wireless. +# the module simply isn't provided by compat-drivers. function define_config_dep { VAR=$1 VALUE=$2
@@ -135,7 +135,7 @@ cat <<EOF /* * Automatically generated C config: don't edit * $DATE - * compat-wireless-2.6: $CREL + * compat-drivers: $CREL * linux-2.6: $KREL */ #define COMPAT_RELEASE "$CREL"
scripts/gen-stable-release.sh +5 -5
@@ -1,7 +1,7 @@ #!/usr/bin/env bash # Copyright 2009 Luis R. Rodriguez <[email protected]> # -# You can use this to make stable compat-wireless releases +# You can use this to make stable compat-drivers releases # # The assumption is you have the linux-stable git tree on your $HOME # git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
@@ -26,7 +26,7 @@ UNDERLINE="\033[02m" # Linus' tree as a remote and fetch those objects if you want to make an RC # release instead. ALL_STABLE_TREE="linux-stable" -STAGING=/tmp/staging/compat-wireless/ +STAGING=/tmp/staging/compat-drivers/ function usage() {
@@ -105,7 +105,7 @@ done function check_for_updates() { case $TARGET_BRANCH in - "master") # Preparing a new stable compat-wireless release based on an RC kernel + "master") # Preparing a new stable compat-drivers release based on an RC kernel git checkout -f git fetch git reset --hard origin
@@ -136,13 +136,13 @@ echo "On $ALL_STABLE_TREE: $TARGET_BRANCH" # At this point your linux-2.6-allstable tree should be up to date # with the target kernel you want to use. Lets now make sure you are -# on matching compat-wireless branch. +# on matching compat-drivers branch. # This is a super hack, but let me know if you figure out a cleaner way TARGET_KERNEL_RELEASE=$(make VERSION="linux-3" SUBLEVEL="" EXTRAVERSION=".y" kernelversion) if [[ $COMPAT_WIRELESS_BRANCH != $TARGET_KERNEL_RELEASE ]]; then - echo -e "You are on the compat-wireless ${GREEN}${COMPAT_WIRELESS_BRANCH}${NORMAL} but are " + echo -e "You are on the compat-drivers ${GREEN}${COMPAT_WIRELESS_BRANCH}${NORMAL} but are " echo -en "on the ${RED}${TARGET_KERNEL_RELEASE}${NORMAL} branch... " echo -e "try changing to that first."
scripts/iwl-enable +1 -1
@@ -6,7 +6,7 @@ # is enabled to be used. This allows us to choose any driver without # blacklisting each other. -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh if [[ $UID -ne 0 ]]; then echo "Run with root privileges"
scripts/iwl-load +1 -1
@@ -3,7 +3,7 @@ # # Loads new Intel iwl (iwlagn) or the old ones (iwl4965) -. /usr/lib/compat-wireless/modlib.sh +. /usr/lib/compat-drivers/modlib.sh IWL_OLD="iwl4965" IWL_NEW="iwlagn"
scripts/refresh-compat +2 -2
@@ -14,9 +14,9 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# The purpose of this script is to enable developers use compat-wireless +# The purpose of this script is to enable developers use compat-drivers # backport work without having to carry code on their tree. This lets -# developers synch to newer compat-wireless releases to gain more backport +# developers synch to newer compat-drivers releases to gain more backport # work. If you use this throw the files into your .gitignore: # # compat/
scripts/refresh-compat-local +1 -1
@@ -21,7 +21,7 @@ source .compat_copy UPDATE_SCRIPT="$COMPAT_SRC/scripts/refresh-compat" if [[ ! -d $COMPAT_SRC ]]; then - echo -e "You should have compat-wireless.git cloned and checked out under $COMPAT_SRC" + echo -e "You should have compat-drivers.git cloned and checked out under $COMPAT_SRC" echo -e "The git tree: git://github.com/mcgrof/compat-wireless.git" exit 1 fi
Signature · 1 line
1.7.11.2
Quoted 7 lines · Ozan Çağlayan
This first patch touches mostly cosmetic parts to change compat-wireless -> compat-drivers.
GIT URL's describing compat-wireless.git are not changed for now as the git repo in github is still compat-wireless.git.
Signed-off-by Ozan Çağlayan <[email protected]>
Applied and pushed, thanks! I'll change the github project name once we get the documentation up on the new wiki.
Luis