summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-11 10:40:14 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-12 07:45:04 +0200
commit6619b70e2935afc4b41dfe4a0c4ca7cfa76cfbdb (patch)
treecba4764aca95adb0d86ce25547aeb36d4566b9dc /arch/sandbox
parent5bf39f5f63492b36e676404e51cc69a4b2058dd7 (diff)
downloadbarebox-6619b70e2935afc4b41dfe4a0c4ca7cfa76cfbdb.tar.gz
barebox-6619b70e2935afc4b41dfe4a0c4ca7cfa76cfbdb.tar.xz
arch: remove KBUILD_SRC checks from arch Makefile
You can always add $(srctree)/ to the mach include path. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/Makefile4
-rw-r--r--arch/sandbox/os/Makefile4
2 files changed, 0 insertions, 8 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile
index c205f47ff4..3d2eb5bc11 100644
--- a/arch/sandbox/Makefile
+++ b/arch/sandbox/Makefile
@@ -29,11 +29,7 @@ KBUILD_CFLAGS += -Dmalloc=barebox_malloc -Dcalloc=barebox_calloc \
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
-ifeq ($(KBUILD_SRC),)
-KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs))
-else
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
-endif
archprepare: maketools
diff --git a/arch/sandbox/os/Makefile b/arch/sandbox/os/Makefile
index 40306b5ffe..c012c9cf01 100644
--- a/arch/sandbox/os/Makefile
+++ b/arch/sandbox/os/Makefile
@@ -2,11 +2,7 @@ machine-y := sandbox
machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))
-ifeq ($(KBUILD_SRC),)
-KBUILD_CPPFLAGS := $(patsubst %,-I%include,$(machdirs))
-else
KBUILD_CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
-endif
KBUILD_CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE)