diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-12-15 14:29:36 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-12-15 14:29:36 +0200 |
commit | ed00e38329d92688996dc40685858fd93c0d4453 (patch) | |
tree | a7420ff0f4196f33800203f29b92c1afc62699b9 /build_images.py | |
parent | 66a6e9d8e3869ab570ea5a3caf50ed24a1174f88 (diff) |
Update linaro-image-tools repository
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'build_images.py')
-rwxr-xr-x | build_images.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/build_images.py b/build_images.py index 3a3a6d1..fb13da1 100755 --- a/build_images.py +++ b/build_images.py @@ -187,7 +187,7 @@ def create_image_info(infofile, gzfile, binary_file, hwpack_url, \ with open(infofile, 'w') as f: f.write(buff) -def build_image(lmc, imgfile, hwpack, hwpack_file, binary, +def build_image(lmc_cmd, imgfile, hwpack, hwpack_file, binary, binary_file, fastmodel=False): print "INFO: building image: %s" % imgfile hwpi = HWPACKS[hwpack] @@ -196,7 +196,7 @@ def build_image(lmc, imgfile, hwpack, hwpack_file, binary, except: size = '3G' - args = [lmc, + args = [lmc_cmd, '--image-size', size, '--hwpack-force-yes', '--hwpack', hwpack_file, @@ -334,7 +334,15 @@ def main(): hwpackf = site.get_hwpacks() binaryf = site.get_binaries() - lmc = '%s/linaro-image-tools/linaro-media-create' % args.out_dir + lmc_cmd = 'linaro-media-create' + lit = os.getenv('LIT') + arguments = ['rm', '-rf', 'lit'] + cmd_runner.run(arguments).wait() + arguments = ['git', 'clone', lit, 'lit'] + cmd_runner.run(arguments).wait() + lit_dir = os.path.join(top_dir, 'lit') + lmc_cmd = os.path.join(lit_dir, lmc_cmd) + odir = '%s/pre-built' % args.out_dir for hwpack in hwpacks: @@ -363,7 +371,7 @@ def main(): imgfile = site.get_image_name(odir, hwpack, url, binary) infofile = '%s.html' % os.path.splitext(imgfile)[0] rfsf = download(dm, binaryf[binary]) - build_image(lmc, imgfile, hwpack, hwpf, binary, rfsf, + build_image(lmc_cmd, imgfile, hwpack, hwpf, binary, rfsf, args.fastmodel) gzfile = compress_image(imgfile) zsync_image(args.platform, gzfile) |