diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2011-11-17 16:17:35 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-11-17 16:35:20 -0500 |
| commit | 052ad274964e613a12bf8ce7c5631f70d0bc82cc (patch) | |
| tree | fd3519410801d766f63b07dc308d2b702f3c9ec0 /Makefile | |
| parent | cb97914b04e7b587cf555ec5b1c69d61014f3378 (diff) | |
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: | |||
| 442 | 442 | ||
| 443 | no-dot-config-targets := clean mrproper distclean \ | 443 | no-dot-config-targets := clean mrproper distclean \ |
| 444 | cscope gtags TAGS tags help %docs check% coccicheck \ | 444 | cscope gtags TAGS tags help %docs check% coccicheck \ |
| 445 | include/linux/version.h headers_% \ | 445 | include/linux/version.h headers_% archheaders \ |
| 446 | kernelversion %src-pkg | 446 | kernelversion %src-pkg |
| 447 | 447 | ||
| 448 | config-targets := 0 | 448 | config-targets := 0 |
| @@ -979,7 +979,7 @@ prepare1: prepare2 include/linux/version.h include/generated/utsrelease.h \ | |||
| 979 | include/config/auto.conf | 979 | include/config/auto.conf |
| 980 | $(cmd_crmodverdir) | 980 | $(cmd_crmodverdir) |
| 981 | 981 | ||
| 982 | archprepare: prepare1 scripts_basic | 982 | archprepare: archheaders prepare1 scripts_basic |
| 983 | 983 | ||
| 984 | prepare0: archprepare FORCE | 984 | prepare0: archprepare FORCE |
| 985 | $(Q)$(MAKE) $(build)=. | 985 | $(Q)$(MAKE) $(build)=. |
| @@ -1046,8 +1046,11 @@ hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj | |||
| 1046 | # If we do an all arch process set dst to asm-$(hdr-arch) | 1046 | # If we do an all arch process set dst to asm-$(hdr-arch) |
| 1047 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) | 1047 | hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) |
| 1048 | 1048 | ||
| 1049 | PHONY += archheaders | ||
| 1050 | archheaders: | ||
| 1051 | |||
| 1049 | PHONY += __headers | 1052 | PHONY += __headers |
| 1050 | __headers: include/linux/version.h scripts_basic asm-generic FORCE | 1053 | __headers: include/linux/version.h scripts_basic asm-generic archheaders FORCE |
| 1051 | $(Q)$(MAKE) $(build)=scripts build_unifdef | 1054 | $(Q)$(MAKE) $(build)=scripts build_unifdef |
| 1052 | 1055 | ||
| 1053 | PHONY += headers_install_all | 1056 | PHONY += headers_install_all |
