summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-02-25 11:22:53 -0700
committerStephen Warren <swarren@nvidia.com>2014-02-25 11:22:53 -0700
commit570547f49328f61d577b27b1b440afacdf7f6cb1 (patch)
tree72d6d0e8ed292bf12fd7aeaab0acd3531a5c77df
parentc3e69636b5b77c33b66c3191fecc35d240b88ae9 (diff)
downloadtegra-uboot-flasher-scripts-570547f49328f61d577b27b1b440afacdf7f6cb1.tar.gz
Support U-Boot's temporary output DTB path
Historically, U-Boot has generated $(obj)/u-boot.dtb. During the Kbuild conversion, this file was moved to $(obj)/dts/dt.dtb. While this change will be imminentely reverted in the U-Boot makefiles, it's quite easy to support in the flasher build scripts, so we may as well. This prevents user confusion and/or "git bisect" issues. Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rwxr-xr-xbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/build b/build
index f1df6ce..7bfc2d9 100755
--- a/build
+++ b/build
@@ -136,6 +136,8 @@ def import_uboot_one_board(boardname, build_uboot_dir):
cp(src, dst)
src = os.path.join(build_uboot_dir, 'u-boot.dtb')
+ if not os.path.exists(src):
+ src = os.path.join(build_uboot_dir, 'dts/dt.dtb')
dst = os.path.join(out_board_dir, 'u-boot.dtb')
cp(src, dst)