Message ID | 20110819140916.4597.69336.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'linaro_image_tools/media_create/boards.py' --- linaro_image_tools/media_create/boards.py 2011-08-10 22:42:02 +0000 +++ linaro_image_tools/media_create/boards.py 2011-08-19 13:59:34 +0000 @@ -473,7 +473,11 @@ with cls.hardwarepack_handler: default = os.path.join( chroot_dir, 'usr', 'lib', 'u-boot', cls.uboot_flavor, - 'u-boot.bin') + 'u-boot.img') + if not os.path.exists(default): + default = os.path.join( + chroot_dir, 'usr', 'lib', 'u-boot', cls.uboot_flavor, + 'u-boot.bin') uboot_bin = cls.get_file('u_boot', default=default) proc = cmd_runner.run( ['cp', '-v', uboot_bin, boot_disk], as_root=True)