summaryrefslogtreecommitdiff
path: root/build_images.py
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-05-19 10:06:14 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-05-19 10:06:14 +0300
commitc775b8a595b15c0ca2f5729adca81d2bd8e6a823 (patch)
tree939df2ab6f2b8818210d2ec5e53be8f37c3cf859 /build_images.py
parentd2bd08bb92f9c6c0cb5644afed69bfbde7fa8d53 (diff)
Get BOOTLOADER environment variable to specify the bootloader to l-m-c
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'build_images.py')
-rwxr-xr-xbuild_images.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/build_images.py b/build_images.py
index 4c35cc5..9b71278 100755
--- a/build_images.py
+++ b/build_images.py
@@ -208,10 +208,18 @@ def build_image(lmc, imgfile, hwpack, hwpack_file, binary,
if hwpi.pre_inst_script is not None:
sdir = os.path.abspath(os.path.dirname(__file__))
script = "%s/%s" % (sdir, hwpi.pre_inst_script)
- print "using presintall script: %s" % script
+ print "INFO: using preinstall script: %s" % script
args.append('--preinstall-script')
args.append(script)
+ bootloader = os.environ.get("BOOTLOADER")
+ if bootloader is None:
+ print 'INFO: Use default bootloader (u_boot)'
+ else:
+ print 'INFO: Use specified bootlooader (%s)' % bootloader
+ args.append('--bootloader')
+ args.append(bootloader)
+
print "INFO: running l-m-c:", " ".join([str(arg) for arg in args])
hwpi.do_eula(imgfile)