2007-07-05 16:01:28 +00:00
|
|
|
|
2008-06-03 10:39:45 +00:00
|
|
|
CPPFLAGS += -Wall -ffixed-r14 \
|
2007-11-29 19:03:37 +00:00
|
|
|
-pipe -meabi -Wstrict-prototypes -D __PPC__ -D CONFIG_PPC \
|
2007-07-05 16:02:16 +00:00
|
|
|
-fno-strict-aliasing
|
2007-07-05 16:01:28 +00:00
|
|
|
|
2007-07-12 07:27:06 +00:00
|
|
|
ifdef CONFIG_RELOCATABLE
|
|
|
|
CPPFLAGS += -fPIC -mrelocatable
|
|
|
|
endif
|
|
|
|
|
2007-07-05 16:01:28 +00:00
|
|
|
|
|
|
|
machine-$(CONFIG_ARCH_MPC5200) := mpc5200
|
2007-11-08 17:23:44 +00:00
|
|
|
board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY) := pcm030
|
2007-07-05 16:01:35 +00:00
|
|
|
cpu-$(CONFIG_ARCH_MPC5200) := mpc5xxx
|
2007-07-05 16:01:28 +00:00
|
|
|
|
|
|
|
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)/
|
2007-07-05 16:01:28 +00:00
|
|
|
else
|
|
|
|
CPU :=
|
|
|
|
endif
|
|
|
|
|
|
|
|
common-y += $(BOARD) $(CPU)
|
|
|
|
common-y += arch/ppc/lib/
|
|
|
|
|
2007-10-17 10:21:53 +00:00
|
|
|
lds-y += $(BOARD)/u-boot.lds
|
|
|
|
|
2007-07-05 16:01:28 +00:00
|
|
|
MRPROPER_FILES += include/asm-ppc/arch
|