diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-06-24 23:42:23 +0100 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-15 02:49:20 -0700 |
commit | 370dc6b95f7041c27353f7847be5a0899aefa6f2 (patch) | |
tree | cb060387bef1b50a8ff90ba362ba2ef729a9d7e1 /Documentation | |
parent | b108bfeec18bc90b34f2fea1edfa89180ca09a9b (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.
Change-Id: I67d31c0f32a9182be25a1a6c56512b51e85da9b2
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>
Git-commit: 54b880caf15034644b564e378abf67b7f9eaf4dc
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.14/
[schikk@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Diffstat (limited to 'Documentation')
-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 2ab3294ed8d1..eec685e268b5 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt @@ -46,6 +46,7 @@ This document describes the Linux kernel Makefiles. --- 7.1 header-y --- 7.2 genhdr-y --- 7.3 generic-y + --- 7.4 generated-y === 8 Kbuild Variables === 9 Makefile language @@ -1304,6 +1305,19 @@ See subsequent chapter for the syntax of the Kbuild file. Example: termios.h #include <asm-generic/termios.h> + --- 7.4 generated-y + + If an architecture generates other header files alongside generic-y + wrappers, and not included in genhdr-y, then generated-y specifies + them. + + This prevents them being treated as stale asm-generic wrappers and + removed. + + Example: + #arch/x86/include/asm/Kbuild + generated-y += syscalls_32.h + === 8 Kbuild Variables The top Makefile exports the following variables: |