diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-11-17 13:17:35 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-11-17 13:35:20 -0800 |
commit | 052ad274964e613a12bf8ce7c5631f70d0bc82cc (patch) | |
tree | fd3519410801d766f63b07dc308d2b702f3c9ec0 /Makefile | |
parent | cb97914b04e7b587cf555ec5b1c69d61014f3378 (diff) | |
download | linux-052ad274964e613a12bf8ce7c5631f70d0bc82cc.tar.gz linux-052ad274964e613a12bf8ce7c5631f70d0bc82cc.tar.bz2 linux-052ad274964e613a12bf8ce7c5631f70d0bc82cc.zip |
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 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -442,7 +442,7 @@ asm-generic: no-dot-config-targets := clean mrproper distclean \ cscope gtags TAGS tags help %docs check% coccicheck \ - include/linux/version.h headers_% \ + include/linux/version.h headers_% archheaders \ kernelversion %src-pkg config-targets := 0 @@ -979,7 +979,7 @@ prepare1: prepare2 include/linux/version.h include/generated/utsrelease.h \ include/config/auto.conf $(cmd_crmodverdir) -archprepare: prepare1 scripts_basic +archprepare: archheaders prepare1 scripts_basic prepare0: archprepare FORCE $(Q)$(MAKE) $(build)=. @@ -1046,8 +1046,11 @@ hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj # If we do an all arch process set dst to asm-$(hdr-arch) hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) +PHONY += archheaders +archheaders: + PHONY += __headers -__headers: include/linux/version.h scripts_basic asm-generic FORCE +__headers: include/linux/version.h scripts_basic asm-generic archheaders FORCE $(Q)$(MAKE) $(build)=scripts build_unifdef PHONY += headers_install_all |