path: root/arch/x86/
diff options
authorMasahiro Yamada <>2015-03-27 20:43:36 +0900
committerMichal Marek <>2015-04-02 16:42:08 +0200
commita436bb7b806383ae0593cab53d17fc9676270cd3 (patch)
tree4d51b1a8b5474fd0d3000f5026032efc71a961b0 /arch/x86/
parent7aacad53aeb57b7ff52399f56eb6d7d4010e72e9 (diff)
kbuild: use relative path more to include Makefile
Prior to this commit, it was impossible to use relative path to include Makefiles from the top level Makefile because the option "--include-dir=$(srctree)" becomes effective when Make enters into sub Makefiles. To use relative path in any places, this commit moves the option above the "sub-make" target. Signed-off-by: Masahiro Yamada <> Signed-off-by: Michal Marek <>
Diffstat (limited to 'arch/x86/')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/ b/arch/x86/
index 95eba554baf9..5b7e898ffd9a 100644
--- a/arch/x86/
+++ b/arch/x86/
@@ -18,7 +18,7 @@ LDS_EXTRA := -Ui386
export LDS_EXTRA
# First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y.
-include $(srctree)/arch/x86/Makefile_32.cpu
+include arch/x86/Makefile_32.cpu
# prevent gcc from keeping the stack 16 byte aligned. Taken from i386.
cflags-y += $(call cc-option,-mpreferred-stack-boundary=2)