diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-04-18 17:51:08 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-04-19 05:12:06 -0400 |
commit | f14875a3e0cc35d7dbe15ee39763a6ae922e7034 (patch) | |
tree | fc663d3df49fe08968bffe8708f8967054218cef | |
parent | ff54250a0ebab7f90a5f848a0ba63f999830c872 (diff) |
kbuild: support include/generated
We need a location for generated files.
Today they are spread over several places and bringing them
together to a common place makes it obvious hat is generated
and what isreal files.
Al Viro originally suggested: include/gen
Linus suggested to spell it out.
This patch implement support for
include/generated
All files in include/generated are ignored by git.
include/generated is removed during "make mrproper".
With this we are ready to implement support for include/generated
in the various architctures and in the base kernel.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 869e1a3b64b..51bd99d6a26 100644 --- a/.gitignore +++ b/.gitignore | |||
@@ -49,6 +49,7 @@ include/linux/compile.h | |||
49 | include/linux/version.h | 49 | include/linux/version.h |
50 | include/linux/utsrelease.h | 50 | include/linux/utsrelease.h |
51 | include/linux/bounds.h | 51 | include/linux/bounds.h |
52 | include/generated | ||
52 | 53 | ||
53 | # stgit generated dirs | 54 | # stgit generated dirs |
54 | patches-* | 55 | patches-* |
@@ -1200,7 +1200,7 @@ CLEAN_FILES += vmlinux System.map \ | |||
1200 | .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map | 1200 | .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map |
1201 | 1201 | ||
1202 | # Directories & files removed with 'make mrproper' | 1202 | # Directories & files removed with 'make mrproper' |
1203 | MRPROPER_DIRS += include/config include2 usr/include | 1203 | MRPROPER_DIRS += include/config include2 usr/include include/generated |
1204 | MRPROPER_FILES += .config .config.old include/asm .version .old_version \ | 1204 | MRPROPER_FILES += .config .config.old include/asm .version .old_version \ |
1205 | include/linux/autoconf.h include/linux/version.h \ | 1205 | include/linux/autoconf.h include/linux/version.h \ |
1206 | include/linux/utsrelease.h \ | 1206 | include/linux/utsrelease.h \ |