9
0
Fork 0
barebox/arch/ppc/Makefile

62 lines
1.3 KiB
Makefile
Raw Normal View History

CPPFLAGS += -Wall -ffixed-r14 \
-pipe -meabi -Wstrict-prototypes -D __PPC__ -D CONFIG_PPC \
-fno-strict-aliasing
2007-07-12 07:27:06 +00:00
ifdef CONFIG_RELOCATABLE
CPPFLAGS += -fPIC -mrelocatable
endif
machine-$(CONFIG_ARCH_MPC5200) := mpc5200
board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY) := pcm030
2007-07-05 16:01:35 +00:00
cpu-$(CONFIG_ARCH_MPC5200) := mpc5xxx
TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P
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.
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
else
$(Q)ln -fsn $(INCDIR) include/asm-ppc/arch
endif
@touch $@
archprepare: maketools
PHONY += maketools
maketools: include/asm-ppc/.arch
ifneq ($(board-y),)
BOARD := board/$(board-y)/
else
BOARD :=
endif
ifneq ($(cpu-y),)
2007-07-05 16:02:15 +00:00
CPU := arch/ppc/mach-$(cpu-y)/
else
CPU :=
endif
common-y += $(BOARD) $(CPU)
common-y += arch/ppc/lib/
lds-y += $(BOARD)/u-boot.lds
MRPROPER_FILES += include/asm-ppc/arch