diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 09:27:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-12 09:27:06 +0200 |
commit | 3b90ee9a3df6a3a85391fff0882cc748fc58523f (patch) | |
tree | beb5f427905418a4f589f877a83181692691ec48 /arch/ppc | |
parent | 0ba162c9c7db2f066e9b9e0e55775760e48ddc9e (diff) | |
download | barebox-3b90ee9a3df6a3a85391fff0882cc748fc58523f.tar.gz barebox-3b90ee9a3df6a3a85391fff0882cc748fc58523f.tar.xz |
add CONFIG_RELOCATABLE
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/Kconfig | 25 | ||||
-rw-r--r-- | arch/ppc/Makefile | 6 |
2 files changed, 26 insertions, 5 deletions
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig index 482b8fd236..797edb47dd 100644 --- a/arch/ppc/Kconfig +++ b/arch/ppc/Kconfig @@ -1,21 +1,37 @@ config TEXT_BASE - string - default "0x1000000" if MACH_PHYCORE_MPC5200B_TINY + default 0 if RELOCATABLE + default 0x1000000 if MACH_PHYCORE_MPC5200B_TINY +config MPC5XXX_EARLY_CONSOLE + bool + default y + +config ARCH_HAS_RELOC + bool + default y + +config PPC + bool + default y + +# Uh, we should decide which one we want to use config ARCH_MPC5200 bool config MPC5200 bool +config MPC5xxx + bool + config CACHELINE_SIZE int - default 32 if MPC5200 + default 32 if ARCH_MPC5200 config HAS_REGINFO bool - default y if MPC5200 + default y if ARCH_MPC5200 choice prompt "Select your board" @@ -24,6 +40,7 @@ config MACH_PHYCORE_MPC5200B_TINY bool "Phycore mpc5200b tiny" select ARCH_MPC5200 select MPC5200 + select MPC5xxx select HAS_CFI help Say Y here if you are using the Phytec Phycore MPC5200B Tiny diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index 00968ba8d2..d88abe8d0c 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile @@ -1,8 +1,12 @@ -CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall \ +CPPFLAGS += -fno-builtin -ffreestanding -nostdinc -Wall -ffixed-r14 \ -isystem $(gccincdir) -meabi -Wstrict-prototypes -D __PPC__ -D CONFIG_PPC \ -fno-strict-aliasing +ifdef CONFIG_RELOCATABLE +CPPFLAGS += -fPIC -mrelocatable +endif + machine-$(CONFIG_ARCH_MPC5200) := mpc5200 board-$(CONFIG_MACH_PHYCORE_MPC5200B_TINY) := phycore_mpc5200b_tiny |