X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Fsandbox%2Fcpu%2FMakefile;h=63dededf70f85125bbb67a9dce1c3cb31e6a23e6;hb=1ad6364eeb4f578e423081d1748e8a3fdf1ab01d;hp=58c2537762774f7f019a6e27be4de5e0356bfe93;hpb=f15ea6e1d67782a1626d4a4922b6c20e380085e5;p=platform%2Fkernel%2Fu-boot.git diff --git a/arch/sandbox/cpu/Makefile b/arch/sandbox/cpu/Makefile index 58c2537..63deded 100644 --- a/arch/sandbox/cpu/Makefile +++ b/arch/sandbox/cpu/Makefile @@ -10,7 +10,10 @@ obj-y := cpu.o os.o start.o state.o # os.c is build in the system environment, so needs standard includes -$(obj)os.o: ALL_CFLAGS := $(BASE_CPPFLAGS) \ - $(patsubst %, -idirafter %, $(BASE_INCLUDE_DIRS)) -$(obj).depend.os: CPPFLAGS := $(BASE_CPPFLAGS) \ - $(patsubst %, -idirafter %, $(BASE_INCLUDE_DIRS)) +# CFLAGS_REMOVE_os.o cannot be used to drop header include path +quiet_cmd_cc_os.o = CC $(quiet_modtag) $@ +cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \ + $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< + +$(obj)/os.o: $(src)/os.c FORCE + $(call if_changed_dep,cc_os.o)