diff options
author | Andrew F. Davis | 2017-06-13 15:04:59 -0500 |
---|---|---|
committer | Tom Rini | 2017-06-16 10:11:42 -0400 |
commit | 88024dc5ac1c72c2f3977712d25315eada0ee4d9 (patch) | |
tree | 49fafb4c92de56cbfa5459894b93a8d05501beb6 /arch | |
parent | 31417f0e5abacd754e1d576095e76d0e82327ba7 (diff) |
arm: mach-omap2: Generate MLO file from SD boot capable targets
Secure boot targets that can be loaded from an SD card FAT partition
need to be called "MLO" on the filesystem, make a copy with this name
to clarify the correct image for SD card booting.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/config_secure.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/config_secure.mk b/arch/arm/mach-omap2/config_secure.mk index 0346cb93abd..c12fbc6ad60 100644 --- a/arch/arm/mach-omap2/config_secure.mk +++ b/arch/arm/mach-omap2/config_secure.mk @@ -67,9 +67,14 @@ u-boot-spl_HS_2ND: $(obj)/u-boot-spl.bin FORCE u-boot-spl_HS_ULO: $(obj)/u-boot-spl.bin FORCE $(call if_changed,mkomapsecimg) -# Standard ISSW target (certain devices, various boot modes) +# Standard ISSW target (certain devices, various boot modes), when copied to +# an SD card FAT partition this file must be called "MLO", we make a copy with +# this name to make this clear u-boot-spl_HS_ISSW: $(obj)/u-boot-spl.bin FORCE $(call if_changed,mkomapsecimg) + @if [ -f $@ ]; then \ + cp -f $@ MLO; \ + fi # For SPI flash on AM335x and AM43xx, these require special byte swap handling # so we use the SPI_X-LOADER target instead of X-LOADER and let the @@ -79,9 +84,13 @@ u-boot-spl_HS_SPI_X-LOADER: $(obj)/u-boot-spl.bin FORCE # For supporting single stage boot on keystone, the image is a full u-boot # file, not an SPL. This will work for all boot devices, other than SPI -# flash +# flash. On Keystone devices when booting from an SD card FAT partition this +# file must be called "MLO" u-boot_HS_MLO: $(obj)/u-boot.bin $(call if_changed,mkomapsecimg) + @if [ -f $@ ]; then \ + cp -f $@ MLO; \ + fi # For supporting single stage XiP QSPI on AM43xx, the image is a full u-boot # file, not an SPL. In this case the mkomapsecimg command looks for a |