mac80211: avoid NULL ptr deref when using WEP
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / scripts / headers.sh
blob0308ecc10d5b133858a15bf9f46b3cb2f424d4d6
1 #!/bin/sh
2 # Run headers_$1 command for all suitable architectures
4 # Stop on error
5 set -e
7 do_command()
9 if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then
10 make ARCH=$2 KBUILD_HEADERS=$1 headers_$1
11 elif [ -f ${srctree}/include/asm-$2/Kbuild ]; then
12 make ARCH=$2 KBUILD_HEADERS=$1 headers_$1
13 else
14 printf "Ignoring arch: %s\n" ${arch}
18 archs=$(ls ${srctree}/arch)
20 for arch in ${archs}; do
21 case ${arch} in
22 um) # no userspace export
24 cris) # headers export are known broken
27 if [ -d ${srctree}/arch/${arch} ]; then
28 do_command $1 ${arch}
31 esac
32 done