Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/scripts/headers.sh

  1 #!/bin/sh
  2 # Run headers_$1 command for all suitable architectures
  3 
  4 # Stop on error
  5 set -e
  6 
  7 do_command()
  8 {
  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}
 13         fi
 14 }
 15 
 16 archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
 17 
 18 for arch in ${archs}; do
 19         case ${arch} in
 20         um)        # no userspace export
 21                 ;;
 22         *)
 23                 if [ -d ${srctree}/arch/${arch} ]; then
 24                         do_command $1 ${arch}
 25                 fi
 26                 ;;
 27         esac
 28 done

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us