2007-07-05 16:01:28 +00:00
|
|
|
|
2008-06-03 10:51:05 +00:00
|
|
|
CPPFLAGS += -ffixed-r14 \
|
2008-06-03 10:56:35 +00:00
|
|
|
-meabi -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
|
|
|
|
|
2008-08-13 14:24:40 +00:00
|
|
|
# Add cleanup flags
|
|
|
|
ifndef CONFIG_MODULE
|
|
|
|
CPPFLAGS += -fdata-sections -ffunction-sections
|
|
|
|
endif
|
|
|
|
|
2009-10-22 12:21:30 +00:00
|
|
|
machdirs := $(patsubst %,arch/ppc/mach-%/,$(cpu-y))
|
2007-07-05 16:01:28 +00:00
|
|
|
|
2009-10-22 12:21:30 +00:00
|
|
|
ifeq ($(KBUILD_SRC),)
|
|
|
|
CPPFLAGS += $(patsubst %,-I%include,$(machdirs))
|
2007-07-05 16:01:28 +00:00
|
|
|
else
|
2009-10-22 12:21:30 +00:00
|
|
|
CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
|
2007-07-05 16:01:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
archprepare: maketools
|
|
|
|
|
|
|
|
PHONY += maketools
|
|
|
|
|
|
|
|
|
|
|
|
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
|