summaryrefslogtreecommitdiffstats
path: root/arch/ppc/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-22 14:21:30 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-22 14:21:30 +0200
commite988d5d9909af71c3a04a91e8e9cf302c12aab9b (patch)
tree70b98476b27d5e3bbd0874d12f51c12e4278277d /arch/ppc/Makefile
parentabd9cd49455497a38ac15110b6587f65c84b6940 (diff)
downloadbarebox-e988d5d9909af71c3a04a91e8e9cf302c12aab9b.tar.gz
barebox-e988d5d9909af71c3a04a91e8e9cf302c12aab9b.tar.xz
[PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r--arch/ppc/Makefile22
1 files changed, 4 insertions, 18 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index ab79a6506d..72eb36bad2 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -21,29 +21,17 @@ ifndef CONFIG_MODULE
CPPFLAGS += -fdata-sections -ffunction-sections
endif
-ifeq ($(incdir-y),)
-incdir-y := $(machine-y)
-endif
-INCDIR := arch-$(incdir-y)
-
-# Update machine arch and proc symlinks if something which affects
-# them changed. We use .arch to indicate when they were updated
-# last, otherwise make uses the target directory mtime.
+machdirs := $(patsubst %,arch/ppc/mach-%/,$(cpu-y))
-include/asm-ppc/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf
- @echo ' SYMLINK include/asm-ppc/arch -> include/asm-ppc/$(INCDIR)'
-ifneq ($(KBUILD_SRC),)
- $(Q)mkdir -p include/asm-ppc
- $(Q)ln -fsn $(srctree)/include/asm-ppc/$(INCDIR) include/asm-ppc/arch
+ifeq ($(KBUILD_SRC),)
+CPPFLAGS += $(patsubst %,-I%include,$(machdirs))
else
- $(Q)ln -fsn $(INCDIR) include/asm-ppc/arch
+CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
endif
- @touch $@
archprepare: maketools
PHONY += maketools
-maketools: include/asm-ppc/.arch
ifneq ($(board-y),)
@@ -62,5 +50,3 @@ common-y += $(BOARD) $(CPU)
common-y += arch/ppc/lib/
lds-y += $(BOARD)/u-boot.lds
-
-MRPROPER_FILES += include/asm-ppc/arch