Commit a54535551d7f37054c73c79b6f0417e7e244db89

Authored by Otavio Salvador
Committed by Albert ARIBAUD
1 parent 09bc3d04d9

MX28: config: Allow different target generation in elftosb call

The elftosb call needs to use a target param specific for i.MX28. This
patch allow for later addition of i.MX233.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Marek Vasut <marex@denx.de>

Showing 3 changed files with 18 additions and 15 deletions Side-by-side Diff

... ... @@ -461,8 +461,11 @@
461 461 cat $(obj)spl/u-boot-spl-pad.ais $(obj)u-boot.bin > \
462 462 $(obj)u-boot.ais
463 463  
  464 +# Specify the target for use in elftosb call
  465 +ELFTOSB_TARGET-$(CONFIG_MX28) = imx28
  466 +
464 467 $(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
465   - elftosb -zdf imx28 -c $(TOPDIR)/$(CPUDIR)/$(SOC)/u-boot.bd \
  468 + elftosb -zdf $(ELFTOSB_TARGET-y) -c $(TOPDIR)/$(CPUDIR)/$(SOC)/u-boot-$(ELFTOSB_TARGET-y).bd \
466 469 -o $(obj)u-boot.sb
467 470  
468 471 # On x600 (SPEAr600) U-Boot is appended to U-Boot SPL.
arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd
  1 +sources {
  2 + u_boot_spl="spl/u-boot-spl.bin";
  3 + u_boot="u-boot.bin";
  4 +}
  5 +
  6 +section (0) {
  7 + load u_boot_spl > 0x0000;
  8 + load ivt (entry = 0x0014) > 0x8000;
  9 + hab call 0x8000;
  10 +
  11 + load u_boot > 0x40000100;
  12 + load ivt (entry = 0x40000100) > 0x8000;
  13 + hab call 0x8000;
  14 +}
arch/arm/cpu/arm926ejs/mxs/u-boot.bd
1   -sources {
2   - u_boot_spl="spl/u-boot-spl.bin";
3   - u_boot="u-boot.bin";
4   -}
5   -
6   -section (0) {
7   - load u_boot_spl > 0x0000;
8   - load ivt (entry = 0x0014) > 0x8000;
9   - hab call 0x8000;
10   -
11   - load u_boot > 0x40000100;
12   - load ivt (entry = 0x40000100) > 0x8000;
13   - hab call 0x8000;
14   -}