=== modified file 'linaro_image_tools/media_create/boards.py'
@@ -800,9 +800,23 @@
def _make_boot_files(cls, boot_env, chroot_dir, boot_dir,
boot_device_or_file, k_img_data, i_img_data,
d_img_data):
- spl_file = os.path.join(
+ old_spl_path = os.path.join(
chroot_dir, 'usr', 'lib', 'u-boot', cls.uboot_flavor,
'v310_mmc_spl.bin')
+ new_spl_path = os.path.join(
+ chroot_dir, 'usr', 'lib', 'u-boot', cls.uboot_flavor,
+ 'u-boot-mmc-spl.bin')
+
+ spl_file = old_spl_path
+ # The new upstream u-boot filename has changed
+ if not os.path.exists(spl_file):
+ spl_file = new_spl_path
+
+ if not os.path.exists(spl_file):
+ # missing SPL loader
+ raise AssertionError("Couldn't find the SPL file, tried %s and %s"
+ % (old_spl_path, new_spl_path))
+
# XXX need to check that the length of spl_file is smaller than
# SAMSUNG_V310_BL1_LEN
_dd(spl_file, boot_device_or_file, seek=SAMSUNG_V310_BL1_START)