summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-11-18 01:17:35 +0400
committerH. Peter Anvin <hpa@linux.intel.com>2011-11-18 01:35:20 +0400
commit052ad274964e613a12bf8ce7c5631f70d0bc82cc (patch)
treefd3519410801d766f63b07dc308d2b702f3c9ec0 /scripts
parentcb97914b04e7b587cf555ec5b1c69d61014f3378 (diff)
downloadlinux-052ad274964e613a12bf8ce7c5631f70d0bc82cc.tar.xz
kbuild: Add support for an "archheaders" target
Add support for an "archheaders" target. This target can generate files that need to be installed for user space by "make headers_install" or "make headers_install_all". In order to support "make headers_install_all", it must be able to run without the tree having to be configured first. Cc: David Woodhouse <dwmw2@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/headers.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/headers.sh b/scripts/headers.sh
index 978b42b3acd7..af1ed8810087 100755
--- a/scripts/headers.sh
+++ b/scripts/headers.sh
@@ -7,6 +7,7 @@ set -e
do_command()
{
if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then
+ make ARCH=$2 KBUILD_HEADERS=$1 archheaders
make ARCH=$2 KBUILD_HEADERS=$1 headers_$1
else
printf "Ignoring arch: %s\n" ${arch}