add CONFIG_RELOCATABLE
This commit is contained in:
parent
0ba162c9c7
commit
3b90ee9a3d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,6 +4,24 @@ config GREGORIAN_CALENDER
|
|||
|
||||
menu "General Settings "
|
||||
|
||||
|
||||
config TEXT_BASE
|
||||
prompt "TEXT_BASE"
|
||||
hex
|
||||
help
|
||||
The Address U-Boot gets linked at.
|
||||
|
||||
config RELOCATABLE
|
||||
depends on PPC
|
||||
bool "generate relocatable U-Boot binary"
|
||||
help
|
||||
A non relocatable U-Boot binary will run at it's compiled in
|
||||
link address in RAM. This leads to smaller image sizes but may
|
||||
put U-Boot just in the middle of RAM. With this option enabled
|
||||
instead U-Boot can determine this address at runtime and thus
|
||||
allowing it to relocate to the end of the available RAM. This
|
||||
way you have the whole memory in a single piece.
|
||||
|
||||
config BROKEN
|
||||
bool
|
||||
prompt "Prompt for broken or incomplete code"
|
||||
|
|
Loading…
Reference in New Issue