kbuild: only one call for include/ in make headers_*
authorSam Ravnborg <sam@ravnborg.org>
Mon, 9 Jun 2008 19:24:28 +0000 (21:24 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 25 Jul 2008 20:11:44 +0000 (22:11 +0200)
commit88181ec30f58a28cd78b26aaac38bef4062b23dc
tree91f83bc96d0b07e0d18ec1182f9d17cc9c9c730d
parentf6ecd4c84a279a7c82f45687a612302becd7b844
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>
Makefile
include/Kbuild
scripts/Makefile.headersinst