aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2013-09-23 11:55:03 +0200
committerMilo Casagrande <milo@ubuntu.com>2013-09-23 11:55:03 +0200
commit0462caa3789f386f2d795e3aacb16bbba62264aa (patch)
treeb4924d015b4e09ec96345f41f444f9ebd4c12aed /linaro_image_tools/media_create
parentcea45dc537e9212d8a541024d4f3a0941e6681f9 (diff)
downloadlinaro-image-tools-0462caa3789f386f2d795e3aacb16bbba62264aa.tar.gz
Rename file after copy for FastModel.
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/boards.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py
index 834ddcc..57ffab7 100644
--- a/linaro_image_tools/media_create/boards.py
+++ b/linaro_image_tools/media_create/boards.py
@@ -1442,6 +1442,18 @@ class FastModelConfig(BoardConfig):
copy_drop(filename, output_dir)
cmd_runner.run(["cp", "-v", filename, boot_dir],
as_root=True).wait()
+ # Rename the kernel from Image-* to Image
+ if k_img_data is not None:
+ cmd_runner.run(["mv", "-v",
+ os.path.join(output_dir,
+ os.path.basename(k_img_data)),
+ os.path.join(output_dir, "Image")],
+ as_root=True).wait()
+ cmd_runner.run(["mv", "-v",
+ os.path.join(boot_dir,
+ os.path.basename(k_img_data)),
+ os.path.join(boot_dir, "Image")],
+ as_root=True).wait()
class SamsungConfig(BoardConfig):