diff options
author | Bruce Wayne <olivercscott@gmail.com> | 2017-01-23 20:15:27 -0500 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2017-01-25 05:56:49 +0000 |
commit | b3e137b656ba31db1e630185995d0d4a5a676e0d (patch) | |
tree | 99c3fe040152422fafbc78a49f4dec3707b0ca0b | |
parent | f2267c46e725e83b23587acab490759927294f25 (diff) | |
download | android_hardware_ti_wlan-b3e137b656ba31db1e630185995d0d4a5a676e0d.tar.gz android_hardware_ti_wlan-b3e137b656ba31db1e630185995d0d4a5a676e0d.tar.bz2 android_hardware_ti_wlan-b3e137b656ba31db1e630185995d0d4a5a676e0d.zip |
wl12xx: fix some builds breaking for devices depending on this file
There was a line that required a double bracket instead of a single one.
Previously, it would compile and then when building the auto-generated
.h file multiple errors were thrown due to a if statement missing a binary operator before "("
Change-Id: I5dead48fc9182b43f0af407a9fe99cbc7f3c2cbc
-rwxr-xr-x | mac80211/compat_wl12xx/scripts/gen-compat-autoconf.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mac80211/compat_wl12xx/scripts/gen-compat-autoconf.sh b/mac80211/compat_wl12xx/scripts/gen-compat-autoconf.sh index 28ed25ae..b44771f2 100755 --- a/mac80211/compat_wl12xx/scripts/gen-compat-autoconf.sh +++ b/mac80211/compat_wl12xx/scripts/gen-compat-autoconf.sh @@ -148,11 +148,11 @@ kernel_version_req $OLDEST_KERNEL_SUPPORTED for i in $(egrep '^CONFIG_|^ifdef CONFIG_|^ifndef CONFIG_|^endif #CONFIG_|^else #CONFIG_' $COMPAT_CONFIG | sed 's/ /+/'); do case $i in 'ifdef+CONFIG_'* ) - echo "#$i" | sed -e 's/+/ /' -e 's/\(ifdef CONFIG_COMPAT_KERNEL_3_\)\([0-9]*\)/if (LINUX_VERSION_CODE < KERNEL_VERSION(3,\2,0))/' -e 's/\(ifdef CONFIG_COMPAT_KERNEL_2_6_\)\([0-9]*\)/if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,\2))/' -e 's/\(ifdef CONFIG_COMPAT_RHEL_\)\([0-9]*\)_\([0-9]*\)/if (defined(RHEL_MAJOR) \&\& RHEL_MAJOR == \2 \&\& RHEL_MINOR >= \3)/' -e 's/\(#ifdef \)\(CONFIG_[^:space:]*\)/#if defined(\2) || defined(\2_MODULE)/' + echo "#$i" | sed -e 's/+/ /' -e 's/\(ifdef CONFIG_COMPAT_KERNEL_3_\)\([0-9]*\)/if (LINUX_VERSION_CODE < KERNEL_VERSION(3,\2,0))/' -e 's/\(ifdef CONFIG_COMPAT_KERNEL_2_6_\)\([0-9]*\)/if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,\2))/' -e 's/\(ifdef CONFIG_COMPAT_RHEL_\)\([0-9]*\)_\([0-9]*\)/if (defined(RHEL_MAJOR) \&\& RHEL_MAJOR == \2 \&\& RHEL_MINOR >= \3)/' -e 's/\(#ifdef \)\(CONFIG_[[^:space:]]*\)/#if defined(\2) || defined(\2_MODULE)/' continue ;; 'ifndef+CONFIG_'* ) - echo "#$i" | sed -e 's/+/ /' -e 's/\(ifndef CONFIG_COMPAT_KERNEL_3_\)\([0-9]*\)/if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,\2,0))/' -e 's/\(ifndef CONFIG_COMPAT_KERNEL_2_6_\)\([0-9]*\)/if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,\2))/' -e 's/\(ifndef CONFIG_COMPAT_RHEL_\)\([0-9]*\)_\([0-9]*\)/if (!defined(RHEL_MAJOR) || RHEL_MAJOR != \2 || RHEL_MINOR < \3)/' -e 's/\(#ifndef \)\(CONFIG_[^:space:]*\)/#if !defined(\2) \&\& !defined(\2_MODULE)/' + echo "#$i" | sed -e 's/+/ /' -e 's/\(ifndef CONFIG_COMPAT_KERNEL_3_\)\([0-9]*\)/if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,\2,0))/' -e 's/\(ifndef CONFIG_COMPAT_KERNEL_2_6_\)\([0-9]*\)/if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,\2))/' -e 's/\(ifndef CONFIG_COMPAT_RHEL_\)\([0-9]*\)_\([0-9]*\)/if (!defined(RHEL_MAJOR) || RHEL_MAJOR != \2 || RHEL_MINOR < \3)/' -e 's/\(#ifndef \)\(CONFIG_[[^:space:]]*\)/#if !defined(\2) \&\& !defined(\2_MODULE)/' continue ;; 'else+#CONFIG_'* | 'endif+#CONFIG_'* ) |