Browse files

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


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 <>
Cc: Al Viro <>
Cc: Linus Torvalds <>
  • Loading branch information...
1 parent ff54250 commit f14875a3e0cc35d7dbe15ee39763a6ae922e7034 Sam Ravnborg committed Apr 18, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 Makefile
1 .gitignore
@@ -49,6 +49,7 @@ include/linux/compile.h
# stgit generated dirs
2 Makefile
@@ -1200,7 +1200,7 @@ CLEAN_FILES += vmlinux \
.tmp_kallsyms* .tmp_version .tmp_vmlinux*
# Directories & files removed with 'make mrproper'
-MRPROPER_DIRS += include/config include2 usr/include
+MRPROPER_DIRS += include/config include2 usr/include include/generated
MRPROPER_FILES += .config .config.old include/asm .version .old_version \
include/linux/autoconf.h include/linux/version.h \
include/linux/utsrelease.h \

0 comments on commit f14875a

Please sign in to comment.