summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada2017-06-06 09:15:28 +0200
committerMasahiro Yamada2017-06-09 18:31:47 +0200
commitf8224f7f4801733a46f332d9eb498234ff1ddac2 (patch)
treea3d42e6c7458fa1057af02b36d47b5cf0f4bbc09 /Makefile
parentkbuild: speed up checksyscalls.sh (diff)
downloadkernel-qcow2-linux-f8224f7f4801733a46f332d9eb498234ff1ddac2.tar.gz
kernel-qcow2-linux-f8224f7f4801733a46f332d9eb498234ff1ddac2.tar.xz
kernel-qcow2-linux-f8224f7f4801733a46f332d9eb498234ff1ddac2.zip
kbuild: remove duplicated arch/*/include/generated/uapi include path
Commit 90ac086bca10 ("Makefile: include arch/*/include/generated/uapi before .../generated") introduced this for bisect'ability. The commit chose to promote arch/*/include/generated/uapi in the search path rather than cleaning stale headers. After all, we found that approach was not enough, and ended up with cleaning stale headers by commit cda2c65f981d ("kbuild: Remove stale asm-generic wrappers"). So, the extra search path is no longer needed because Kbuild invokes scripts/Makefile.asm-generic and remove stale headers before it starts descending. This commit is also reverting commit dc33db7c338e ("Kbuild: avoid duplicate include path") because we have no more duplicated path. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 57a013dc0364..0afd7f3c22b2 100644
--- a/Makefile
+++ b/Makefile
@@ -381,12 +381,10 @@ USERINCLUDE := \
# Needed to be compatible with the O= option
LINUXINCLUDE := \
-I$(srctree)/arch/$(hdr-arch)/include \
- -I$(objtree)/arch/$(hdr-arch)/include/generated/uapi \
-I$(objtree)/arch/$(hdr-arch)/include/generated \
$(if $(KBUILD_SRC), -I$(srctree)/include) \
- -I$(objtree)/include
-
-LINUXINCLUDE += $(filter-out $(LINUXINCLUDE),$(USERINCLUDE))
+ -I$(objtree)/include \
+ $(USERINCLUDE)
KBUILD_CPPFLAGS := -D__KERNEL__