summaryrefslogtreecommitdiffstats
path: root/arch/ppc/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-12 09:27:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-07-12 09:27:06 +0200
commit3b90ee9a3df6a3a85391fff0882cc748fc58523f (patch)
treebeb5f427905418a4f589f877a83181692691ec48 /arch/ppc/Makefile
parent0ba162c9c7db2f066e9b9e0e55775760e48ddc9e (diff)
downloadbarebox-3b90ee9a3df6a3a85391fff0882cc748fc58523f.tar.gz
barebox-3b90ee9a3df6a3a85391fff0882cc748fc58523f.tar.xz
add CONFIG_RELOCATABLE
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r--arch/ppc/Makefile6
1 files changed, 5 insertions, 1 deletions
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