mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 04:18:51 +09:00
![Scott Wood](/assets/img/avatar_default.png)
This was already used by some SPL targets, and allows the pad amount to be specified by board config headers rather than only in makefile fragments. Also supply a pad-to of zero if the variable is undefined. It works without this, but this avoids relying on undocumented behavior. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
23 lines
682 B
Makefile
23 lines
682 B
Makefile
#
|
|
# AIT cam_enc_4xx board
|
|
# cam_enc_4xx board has 1 bank of 256 MB DDR RAM
|
|
# Physical Address: 8000'0000 to 9000'0000
|
|
#
|
|
# Linux Kernel is expected to be at 8000'8000, entry 8000'8000
|
|
# (mem base + reserved)
|
|
#
|
|
|
|
#Provide at least 16MB spacing between us and the Linux Kernel image
|
|
CONFIG_SPL_PAD_TO := 12320
|
|
UBL_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/ublimage.cfg
|
|
ifndef CONFIG_SPL_BUILD
|
|
ALL-y += $(obj)u-boot.ubl
|
|
else
|
|
# as SPL_TEXT_BASE is not page-aligned, we need for some
|
|
# linkers the -n flag (Do not page align data), to prevent
|
|
# the following error message:
|
|
# arm-linux-ld: u-boot-spl: Not enough room for program headers, try linking
|
|
# with -N
|
|
LDFLAGS_u-boot-spl += -n
|
|
endif
|