Commit 6d71627581e96efb3717960b79fc2167a4617977

Authored by David Woodhouse
1 parent de78912582

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>

Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff

... ... @@ -892,6 +892,15 @@
892 892 INSTALL_HDR_PATH=$(objtree)/usr
893 893 export INSTALL_HDR_PATH
894 894  
  895 +HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
  896 +
  897 +PHONY += headers_install_all
  898 +headers_install_all: include/linux/version.h
  899 + $(Q)unifdef -Ux /dev/null
  900 + $(Q)for arch in $(HDRARCHES); do \
  901 + $(MAKE) ARCH=$$arch -rR -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\
  902 + done
  903 +
895 904 PHONY += headers_install
896 905 headers_install: include/linux/version.h
897 906 @if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \