From b4521685bf00398a4db0d3abe28376bd8f1b31ed Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 22 Oct 2009 14:21:29 +0200 Subject: [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/sandbox/os/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'arch/sandbox/os/Makefile') diff --git a/arch/sandbox/os/Makefile b/arch/sandbox/os/Makefile index 117f05eba0..2980301e15 100644 --- a/arch/sandbox/os/Makefile +++ b/arch/sandbox/os/Makefile @@ -1,4 +1,14 @@ -CPPFLAGS := -Iinclude/asm/arch -P +machine-y := sandbox + +machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y)) + +ifeq ($(KBUILD_SRC),) +CPPFLAGS := $(patsubst %,-I%include,$(machdirs)) +else +CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs)) +endif + +CPPFLAGS += -P CFLAGS := -Wall NOSTDINC_FLAGS := -- cgit v1.2.3