diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-09-06 16:42:37 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-09-06 16:42:37 +0200 |
commit | e06640f8f1170ad868db3ecb1af9ff1d2f60c1a2 (patch) | |
tree | 3eb4a960d616f0e071da26f91ab16a7e42385d56 /scripts/run-qemu-ota | |
parent | f4c7b3d831f232c312b50d52ff296c4678eb475b (diff) | |
download | meta-updater-e06640f8f1170ad868db3ecb1af9ff1d2f60c1a2.tar.gz |
Copy the image and U-Boot rom when using overlays.
Since bitbake can remove old images that an overlay was non-obviously
dependent on, the safest thing to do is make a copy of the image and
keep it alongside the overlay. When using the overlay later,
automatically use that image. Also do the same thing with the U-Boot
rom. This should also make moving the overlay file to another machine
much easier.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'scripts/run-qemu-ota')
-rwxr-xr-x | scripts/run-qemu-ota | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run-qemu-ota b/scripts/run-qemu-ota index de63297..e9f44d6 100755 --- a/scripts/run-qemu-ota +++ b/scripts/run-qemu-ota | |||
@@ -53,7 +53,7 @@ def main(): | |||
53 | 53 | ||
54 | cmdline = qemu_command.command_line() | 54 | cmdline = qemu_command.command_line() |
55 | if args.overlay and not exists(args.overlay): | 55 | if args.overlay and not exists(args.overlay): |
56 | print("Image file %s does not yet exist, creating." % args.overlay) | 56 | print("Overlay file %s does not yet exist, creating." % args.overlay) |
57 | img_cmdline = qemu_command.img_command_line() | 57 | img_cmdline = qemu_command.img_command_line() |
58 | if args.dry_run: | 58 | if args.dry_run: |
59 | print(" ".join(img_cmdline)) | 59 | print(" ".join(img_cmdline)) |