diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-06-24 18:42:23 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-07-07 09:58:44 -0400 |
commit | 54b880caf15034644b564e378abf67b7f9eaf4dc (patch) | |
tree | dfef2534071d6afde8059f84fe228bc966ecc1e4 /Documentation/kbuild | |
parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) |
kbuild, x86: Track generated headers with generated-y
Track generated header files which aren't already in genhdr-y, alongside
generic-y wrappers in the */include/generated/[uapi/]asm/ directories.
Currently only x86 generates extra headers in these directories, for the
purposes of enumerating system calls for different ABIs, and xen
hypercalls.
This will allow the asm-generic wrapper handling code to remove stale
wrappers when files are removed from generic-y, without also removing
these headers which are generated separately.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-kbuild@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: Michal Marek <mmarek@suse.com>
Link: http://lkml.kernel.org/r/1466808144-23209-2-git-send-email-james.hogan@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 13f888a02a3d..385a5ef41c17 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -47,6 +47,7 @@ This document describes the Linux kernel Makefiles. | |||
47 | --- 7.2 genhdr-y | 47 | --- 7.2 genhdr-y |
48 | --- 7.3 destination-y | 48 | --- 7.3 destination-y |
49 | --- 7.4 generic-y | 49 | --- 7.4 generic-y |
50 | --- 7.5 generated-y | ||
50 | 51 | ||
51 | === 8 Kbuild Variables | 52 | === 8 Kbuild Variables |
52 | === 9 Makefile language | 53 | === 9 Makefile language |
@@ -1319,6 +1320,19 @@ See subsequent chapter for the syntax of the Kbuild file. | |||
1319 | Example: termios.h | 1320 | Example: termios.h |
1320 | #include <asm-generic/termios.h> | 1321 | #include <asm-generic/termios.h> |
1321 | 1322 | ||
1323 | --- 7.5 generated-y | ||
1324 | |||
1325 | If an architecture generates other header files alongside generic-y | ||
1326 | wrappers, and not included in genhdr-y, then generated-y specifies | ||
1327 | them. | ||
1328 | |||
1329 | This prevents them being treated as stale asm-generic wrappers and | ||
1330 | removed. | ||
1331 | |||
1332 | Example: | ||
1333 | #arch/x86/include/asm/Kbuild | ||
1334 | generated-y += syscalls_32.h | ||
1335 | |||
1322 | === 8 Kbuild Variables | 1336 | === 8 Kbuild Variables |
1323 | 1337 | ||
1324 | The top Makefile exports the following variables: | 1338 | The top Makefile exports the following variables: |