Skip to contentSkip to conversation

kbuild: remove -I$(srctree)/tools/include from scripts/Makefile

PATCH New Masahiro Yamada 1 participant 1 message Apr 4, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: remove -I$(srctree)/tools/include from scripts/Makefile

I do not like to add an extra include path for every tool with no good reason. This should be specified per file.

This line was added by commit 6520fe5564ac ("x86, realmode: 16-bit real-mode code support for relocs tool"), which did not touch anything else in scripts/. I do not know why this was needed.

---

 scripts/Makefile | 2 --
 1 file changed, 2 deletions(-)
scripts/Makefile +0 -2
index 5e75802b1a44..da63ba81e9e7 100644
@@ -5,8 +5,6 @@
 # ---------------------------------------------------------------------------
 # kallsyms:      Find all symbols in vmlinux
 
-HOST_EXTRACFLAGS += -I$(srctree)/tools/include
-
 always-$(CONFIG_BUILD_BIN2C)			+= bin2c
 always-$(CONFIG_KALLSYMS)			+= kallsyms
 always-$(BUILD_C_RECORDMCOUNT)			+= recordmcount
Signature · 1 line
2.17.1