diff options
author | Michal Simek <michal.simek@xilinx.com> | 2019-01-16 12:14:00 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-01-24 10:03:44 +0100 |
commit | a903dcf7dee787320d7cfee969de322ac7a30ee1 (patch) | |
tree | 2ed2ce1121f721343bccb0c2f8f5b0756601f6af /scripts/Makefile.spl | |
parent | 775ed87ac4015c8b17bc9d828e3bafe4a0f7ed03 (diff) | |
download | u-boot-a903dcf7dee787320d7cfee969de322ac7a30ee1.tar.gz u-boot-a903dcf7dee787320d7cfee969de322ac7a30ee1.tar.bz2 u-boot-a903dcf7dee787320d7cfee969de322ac7a30ee1.zip |
arm64: zynqmp: Align u-boot-spl.bin for boot.bin creation
Bootrom is not capable to work with non align bootloader partition
that's why it is necessary to align it before boot.bin creation.
The patch is creating new spl/u-boot-spl-align.bin which is used only
for boot.bin.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts/Makefile.spl')
-rw-r--r-- | scripts/Makefile.spl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 29626e0025..e5b604e2d2 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -190,7 +190,10 @@ MKIMAGEFLAGS_boot.bin = -T zynqmpimage -R $(srctree)/$(CONFIG_BOOT_INIT_FILE) \ -n "$(shell cd $(srctree); readlink -f $(CONFIG_PMUFW_INIT_FILE))" endif -spl/boot.bin: $(obj)/u-boot-spl.bin FORCE +$(obj)/$(SPL_BIN)-align.bin: $(obj)/$(SPL_BIN).bin + @dd if=$< of=$@ conv=block,sync bs=4 2>/dev/null; + +spl/boot.bin: $(obj)/$(SPL_BIN)-align.bin FORCE $(call if_changed,mkimage) endif |