2007-07-05 16:01:28 +00:00
|
|
|
|
2012-05-01 09:26:00 +00:00
|
|
|
CPPFLAGS += -ffixed-r14 -m32 \
|
2008-06-03 10:56:35 +00:00
|
|
|
-meabi -D __PPC__ -D CONFIG_PPC \
|
2012-05-01 09:26:00 +00:00
|
|
|
-fno-strict-aliasing -mno-spe -mspe=no
|
2007-07-05 16:01:28 +00:00
|
|
|
|
2007-07-12 07:27:06 +00:00
|
|
|
ifdef CONFIG_RELOCATABLE
|
|
|
|
CPPFLAGS += -fPIC -mrelocatable
|
|
|
|
endif
|
|
|
|
|
2012-05-17 16:49:50 +00:00
|
|
|
ifdef CONFIG_MPC85xx
|
|
|
|
CPPFLAGS += -Wa,-me500x2 -msoft-float -mno-string
|
|
|
|
endif
|
2007-07-05 16:01:28 +00:00
|
|
|
|
2007-11-08 17:23:44 +00:00
|
|
|
board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY) := pcm030
|
2012-05-17 16:49:51 +00:00
|
|
|
board-$(CONFIG_P2020RDB) := freescale-p2020rdb
|
2012-05-17 16:49:50 +00:00
|
|
|
|
2012-05-01 09:26:00 +00:00
|
|
|
machine-$(CONFIG_ARCH_MPC5200) := mpc5xxx
|
2012-05-17 16:49:50 +00:00
|
|
|
machine-$(CONFIG_ARCH_MPC85XX) := mpc85xx
|
|
|
|
|
|
|
|
cpu-$(CONFIG_ARCH_MPC85XX) := 85xx
|
2007-07-05 16:01:28 +00:00
|
|
|
|
|
|
|
TEXT_BASE = $(CONFIG_TEXT_BASE)
|
|
|
|
|
2011-10-13 22:06:37 +00:00
|
|
|
CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
|
2007-07-05 16:01:28 +00:00
|
|
|
|
2008-08-13 14:24:40 +00:00
|
|
|
# Add cleanup flags
|
2009-12-21 12:07:04 +00:00
|
|
|
ifndef CONFIG_MODULES
|
2008-08-13 14:24:40 +00:00
|
|
|
CPPFLAGS += -fdata-sections -ffunction-sections
|
|
|
|
endif
|
|
|
|
|
2012-05-01 09:26:00 +00:00
|
|
|
machdirs := $(patsubst %,arch/ppc/mach-%/,$(machine-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),)
|
2010-07-22 03:00:13 +00:00
|
|
|
BOARD := arch/ppc/boards/$(board-y)/
|
2007-07-05 16:01:28 +00:00
|
|
|
else
|
|
|
|
BOARD :=
|
|
|
|
endif
|
|
|
|
|
2012-05-01 09:26:00 +00:00
|
|
|
ifneq ($(machine-y),)
|
|
|
|
MACH := arch/ppc/mach-$(machine-y)/
|
|
|
|
else
|
|
|
|
MACH :=
|
|
|
|
endif
|
|
|
|
|
2007-07-05 16:01:28 +00:00
|
|
|
ifneq ($(cpu-y),)
|
2012-05-01 09:26:00 +00:00
|
|
|
CPU := arch/ppc/cpu-$(cpu-y)/
|
2007-07-05 16:01:28 +00:00
|
|
|
else
|
|
|
|
CPU :=
|
|
|
|
endif
|
|
|
|
|
2012-05-01 09:26:00 +00:00
|
|
|
common-y += $(BOARD) $(CPU) $(MACH)
|
2007-07-05 16:01:28 +00:00
|
|
|
common-y += arch/ppc/lib/
|
|
|
|
|
2009-12-15 08:11:09 +00:00
|
|
|
lds-y += $(BOARD)/barebox.lds
|