Loading...
1#!/bin/sh
2# Run headers_$1 command for all suitable architectures
3
4# Stop on error
5set -e
6
7do_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
16archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
17
18for arch in ${archs}; do
19 case ${arch} in
20 um) # no userspace export
21 ;;
22 cris) # headers export are known broken
23 ;;
24 *)
25 if [ -d ${srctree}/arch/${arch} ]; then
26 do_command $1 ${arch}
27 fi
28 ;;
29 esac
30done
31
32
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# Run headers_$1 command for all suitable architectures
4
5# Stop on error
6set -e
7
8do_command()
9{
10 if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then
11 make ARCH=$2 KBUILD_HEADERS=$1 headers_$1
12 else
13 printf "Ignoring arch: %s\n" ${arch}
14 fi
15}
16
17archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)}
18
19for arch in ${archs}; do
20 case ${arch} in
21 um) # no userspace export
22 ;;
23 *)
24 if [ -d ${srctree}/arch/${arch} ]; then
25 do_command $1 ${arch}
26 fi
27 ;;
28 esac
29done