[PATCH 8/9] Update (ppc) Makefile and Kconfig.

Renaud Barbier renaud.barbier at ge.com
Tue Jan 24 07:34:02 EST 2012


* Compile the mpc8xxx/mpc85xx architecture.
* Compile the p1_p2 Freescale platform code if selected.

Signed-off-by: Renaud Barbier <renaud.barbier at ge.com>
---
 arch/ppc/Kconfig  |    1 +
 arch/ppc/Makefile |   10 ++++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig
index ea38af6..e0934f4 100644
--- a/arch/ppc/Kconfig
+++ b/arch/ppc/Kconfig
@@ -25,6 +25,7 @@ endchoice
 endmenu
 
 source arch/ppc/mach-mpc5xxx/Kconfig
+source arch/ppc/mach-mpc8xxx/Kconfig
 source common/Kconfig
 source commands/Kconfig
 source net/Kconfig
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index c7bf863..8d4a3a4 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -8,9 +8,19 @@ CPPFLAGS += -fPIC -mrelocatable
 endif
 
 
+#may need a better ifdef option for spe and e500
+ifdef CONFIG_MPC85xx
+CPPFLAGS += -Wa,-me500 -msoft-float -mno-string -mspe=yes -mno-spe
+endif
+
 machine-$(CONFIG_ARCH_MPC5200)			:= mpc5200
+
 board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY)	:= pcm030
+
+board-$(CONFIG_P1_P2_RDB) := freescale/p1_p2_rdb
+
 cpu-$(CONFIG_ARCH_MPC5200)			:= mpc5xxx
+cpu-$(CONFIG_ARCH_MPC8XXX)			:= mpc8xxx
 
 TEXT_BASE = $(CONFIG_TEXT_BASE)
 
-- 
1.7.1




More information about the barebox mailing list