aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-24 22:16:03 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-24 22:16:03 +0100
commit6d71627581e96efb3717960b79fc2167a4617977 (patch)
treec9953caf9adef637b54e0ce1632ebd5746e630d6 /Makefile
parentde78912582bc1f95733d53e0d40779c0cd7b0686 (diff)
downloadkernel_goldelico_gta04-6d71627581e96efb3717960b79fc2167a4617977.zip
kernel_goldelico_gta04-6d71627581e96efb3717960b79fc2167a4617977.tar.gz
kernel_goldelico_gta04-6d71627581e96efb3717960b79fc2167a4617977.tar.bz2
New 'make headers_install_all' target.
Install headers for _all_ architectures, suitable for making a tarball release or extracting them for use in a separate package. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 13448d7..b78c88d 100644
--- a/Makefile
+++ b/Makefile
@@ -892,6 +892,15 @@ depend dep:
INSTALL_HDR_PATH=$(objtree)/usr
export INSTALL_HDR_PATH
+HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
+
+PHONY += headers_install_all
+headers_install_all: include/linux/version.h
+ $(Q)unifdef -Ux /dev/null
+ $(Q)for arch in $(HDRARCHES); do \
+ $(MAKE) ARCH=$$arch -rR -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\
+ done
+
PHONY += headers_install
headers_install: include/linux/version.h
@if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \