diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-01-29 11:50:46 +0000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-01-29 11:53:07 +0000 |
commit | 42a725f7ecd1e6779d24f1a66eb13652de467de9 (patch) | |
tree | 1727364077a26e2e77b1ac78a2160508c2c88395 /rbutil/rbutilqt/base | |
parent | d73c20933b5a7428c8f30442a6e0b90b34ece291 (diff) | |
download | rockbox-42a725f7ecd1e6779d24f1a66eb13652de467de9.tar.gz rockbox-42a725f7ecd1e6779d24f1a66eb13652de467de9.zip |
mkimxboot: add a switch to force version
Add a switch to override the product and component version of the
sb file. This can usually for target like the Zen X-Fi2 where the
upader allows to drop any file named firmware.sb and prints the
version: by using a funky version the users can check they got it
right. This should not be used on the fuze+ or zenxfi3 because the
OF prevents downgrade.
Also make rbutil always zero out the option structure passed to
mkimxboot, this has already created bugs in the past.
Change-Id: I175c5def52c40c2132e11300e2f037d60a4f040e
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallimx.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallimx.cpp b/rbutil/rbutilqt/base/bootloaderinstallimx.cpp index c085b30346..e12849e856 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallimx.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallimx.cpp | |||
@@ -47,6 +47,7 @@ void BootloaderThreadImx::run(void) | |||
47 | { | 47 | { |
48 | qDebug() << "[BootloaderThreadImx] Thread started."; | 48 | qDebug() << "[BootloaderThreadImx] Thread started."; |
49 | struct imx_option_t opt; | 49 | struct imx_option_t opt; |
50 | memset(&opt, 0, sizeof(opt)); | ||
50 | opt.debug = false; | 51 | opt.debug = false; |
51 | opt.output = IMX_DUALBOOT; | 52 | opt.output = IMX_DUALBOOT; |
52 | opt.fw_variant = VARIANT_DEFAULT; | 53 | opt.fw_variant = VARIANT_DEFAULT; |