Commit 74752baa738ee9dafe69d726910e26da56f6f722
Committed by
Kim Phillips
1 parent
ebbf0d20aa
Exists in
master
and in
53 other branches
spl: Change PAD_TO to CONFIG_SPL_PAD_TO
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>
Showing 3 changed files with 10 additions and 2 deletions Side-by-side Diff
Makefile
... | ... | @@ -485,8 +485,12 @@ |
485 | 485 | $(obj)u-boot.dis: $(obj)u-boot |
486 | 486 | $(OBJDUMP) -d $< > $@ |
487 | 487 | |
488 | + | |
489 | + | |
488 | 490 | $(obj)u-boot-with-spl.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin |
489 | - $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(PAD_TO) -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin | |
491 | + $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(or $(CONFIG_SPL_PAD_TO),0) \ | |
492 | + -O binary $(obj)spl/u-boot-spl \ | |
493 | + $(obj)spl/u-boot-spl-pad.bin | |
490 | 494 | cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin > $@ |
491 | 495 | rm $(obj)spl/u-boot-spl-pad.bin |
492 | 496 |
README
... | ... | @@ -2836,6 +2836,10 @@ |
2836 | 2836 | CONFIG_SPL_LIBGENERIC_SUPPORT |
2837 | 2837 | Support for lib/libgeneric.o in SPL binary |
2838 | 2838 | |
2839 | + CONFIG_SPL_PAD_TO | |
2840 | + Linker address to which the SPL should be padded before | |
2841 | + appending the SPL payload. | |
2842 | + | |
2839 | 2843 | CONFIG_SPL_TARGET |
2840 | 2844 | Final target image containing SPL and payload. Some SPLs |
2841 | 2845 | use an arch-specific makefile fragment instead, for |
board/ait/cam_enc_4xx/config.mk