few updates from RMerlin sources
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / scripts / headers.sh
blob0fbd17514ce8c8736d8b5c316c2359817008fe90
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 else
12 printf "Ignoring arch: %s\n" ${arch}
16 archs=$(ls ${srctree}/arch)
18 for arch in ${archs}; do
19 case ${arch} in
20 um) # no userspace export
22 cris) # headers export are known broken
25 if [ -d ${srctree}/arch/${arch} ]; then
26 do_command $1 ${arch}
29 esac
30 done