[Arale / feature requirement] repack factory images from OTA channels.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Capomastro |
Fix Released
|
Medium
|
Caio Begotti |
Bug Description
Per-talked with Caio on mail, Arale need a new feature that can repack factory images (flashable images) from the tarball downloaded from system-image.u.c.
[Description]
Currently we have a script "mkflashable.sh" can do that, and this is the usage of that script (it can be run without root privilege currently):
http://
For example, generate factory images from the latest tarballs on channel "ubuntu-
$ ./mkflashable.sh --autobuild --channel ubuntu-
The scenario will be like this:
1. Some one need to get a flashable image which map to latest release on system-image.u.c for flash-tool using (ex. make a factory image release).
2. That one can execute my script to download ubuntu, device, customer, version tarballs from latest release on the channel he want from system-image.u.c. Then unpack those tarballs and create images to include the content of unpacked tarballs.
And we also need a input box when execute this script on capomastro for parameters of mkflashable.sh.
ex. "--autobuild --channel ubuntu-
This is an example console output when executing "mkflashable.sh":
http://
Finally user should can get the generated images in out/target/
or get its tarball "arale-
This is the generated images and its tarball list for reference:
http://
BTW, we also need capamastro to do this on the code tree which based on branch "m75_ubuntu-daily" for manifest.
https:/
This feature also can be used on other project in the future, just need some change in script.
[Conclusion]
So, the expect scenario with capomastro will like:
1. user input parameter in input box on capomastro. ex. "--autobuild --channel ubuntu-
2. capomastro checkout code based "m75_ubuntu-daily" on manifest.
ex. $ repo init -u ssh://git.
3. capomastro execute "mkflashable.sh" with user imputed parameters:
ex. $ ./mkflashable.sh --autobuild --channel ubuntu-
4. capomastro let user can download generated tarball like "arale-
description: | updated |
Changed in capomastro: | |
assignee: | nobody → Caio Begotti (caio1982) |
Changed in capomastro: | |
status: | New → Triaged |
Changed in capomastro: | |
status: | Triaged → In Progress |
importance: | Undecided → High |
importance: | High → Medium |
Changed in capomastro: | |
status: | In Progress → Fix Committed |
Changed in capomastro: | |
status: | Fix Committed → Fix Released |
Alex, the revision fix is done and I'll let you test it soon but just so I get this bug here right:
1) you just want to use the --autobuild feature of your script now, correct? I mean, to repack existing images on system-image servers instead of using local ones from the build
2) both Tangxi and Barajas will use the very same script? Or will they differ in some aspect?
I'm asking that because it would be better to have this decoupled from the phone builds. So in Capomastro you could build the images for testing or development and also have a separate way to generate the flashable images at any time.
That's my idea at least, so we don't have to re-clone and checkout everything in the repos just to get your shell script.
Would the following be okay for you in this case?
git clone -n ssh://<email address hidden> :29418/ m75/ubuntu/ tools --depth 1
cd tools/
git checkout HEAD mkflashable.sh
./mkflashable.sh --autobuild <all its parameters here>
If you also need to run mkflashable.sh without --autobuild then my plan will not work as you will need the local files and we'll need to clone, checkout and compile everything using the current scripts we have.