aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.headersinst
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-06-09 15:24:28 -0400
committerSam Ravnborg <sam@ravnborg.org>2008-07-25 16:11:44 -0400
commit88181ec30f58a28cd78b26aaac38bef4062b23dc (patch)
tree91f83bc96d0b07e0d18ec1182f9d17cc9c9c730d /scripts/Makefile.headersinst
parentf6ecd4c84a279a7c82f45687a612302becd7b844 (diff)
kbuild: only one call for include/ in make headers_*
Move it to the top-level file to decide if we install/check the generic headers or the arch specific headers. This revealed a long standing bug where "make headers_check_all" relied on the files in asm/ for the current architecture. So make headers_check_all is now broken by this commit. In addition: o add a simpler way to detect if an arch support exporting header files. o add 'set -e;' so we error out early if make headers_check_all fails. o add sparc64 and cris to arch we do not process in make headers_*_all because: sparc64 - use sparc to export headers cris - is know seriously broken Includes suggestions from: David Woodhouse <dwmw2@infradead.org>. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'scripts/Makefile.headersinst')
-rw-r--r--scripts/Makefile.headersinst9
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 599adc63b84c..599503f0e5f2 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -28,15 +28,6 @@ include $(kbuild-file)
28 28
29include scripts/Kbuild.include 29include scripts/Kbuild.include
30 30
31# If this is include/asm-$(ARCH) then override $(_dst) so that
32# we install to include/asm directly.
33# Unless $(BIASMDIR) is set, in which case we're probably doing
34# a 'headers_install_all' build and we should keep the -$(ARCH)
35# in the directory name.
36ifeq ($(obj),include/asm-$(ARCH)$(BIASMDIR))
37 _dst := include/asm
38endif
39
40install := $(INSTALL_HDR_PATH)/$(_dst) 31install := $(INSTALL_HDR_PATH)/$(_dst)
41 32
42header-y := $(sort $(header-y) $(unifdef-y)) 33header-y := $(sort $(header-y) $(unifdef-y))