summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-06-28 02:26:41 -0500
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:36:58 +0800
commit13c8925c078b57d5340c557d2f5c1b8feb477fae (patch)
tree276b2cb6283f3c3d82f7de0f9b66ef5260c24071 /scripts
parent7928d06ee3de241020fa058e9bd8aad53512f02a (diff)
MLK-15297 imx8mq_evk: Change to not static link the DDR PHY FW
To avoid violating GPL license, we can't static link the DDR PHY FW into uboot binary, so change to attach the FW images with u-boot binary. Remove the codes and link scripts for static linking the FW in sections. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.spl8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index b52f9963f7..d8bfec5186 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -201,9 +201,17 @@ $(obj)/$(SPL_BIN)-dtb.bin: $(obj)/$(SPL_BIN)-nodtb.bin \
$(obj)/$(SPL_BIN).bin: $(obj)/$(SPL_BIN)-dtb.bin FORCE
$(call if_changed,copy)
else
+ifdef CONFIG_ARCH_IMX8M
+$(obj)/$(SPL_BIN).bin: $(obj)/$(SPL_BIN)-nodtb.bin FORCE
+ objcopy -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 lpddr4_pmu_train_imem.bin lpddr4_pmu_train_imem_pad.bin
+ cat lpddr4_pmu_train_imem_pad.bin lpddr4_pmu_train_dmem.bin > lpddr4_pmu_train_fw.bin
+ cat $(obj)/$(SPL_BIN)-nodtb.bin lpddr4_pmu_train_fw.bin > $(obj)/$(SPL_BIN).bin
+ rm -f lpddr4_pmu_train_fw.bin lpddr4_pmu_train_imem_pad.bin
+else
$(obj)/$(SPL_BIN).bin: $(obj)/$(SPL_BIN)-nodtb.bin FORCE
$(call if_changed,copy)
endif
+endif
# Create a file that pads from the end of u-boot-spl-nodtb.bin to bss_end
$(obj)/$(SPL_BIN)-pad.bin: $(obj)/$(SPL_BIN)