nwztools: rework upg scripts

The exec_file allows to embed a script/executable and run it on target. It takes
of unpacking, remounting contents rw and redirect output to exec.txt at the root
of the drive. More generally, rework how the makefile works.

Change-Id: Iec719227be96e80701ad8f5398d2d34389f4da9e
This commit is contained in:
Amaury Pouly 2016-09-27 00:09:06 +01:00
parent 2a2800b528
commit 21fb5aff39
3 changed files with 119 additions and 20 deletions

View file

@ -46,7 +46,7 @@ your device to build this firmware upgrade. Once you known it, run
to list all available targets. For example if your targets is one of the
NWZ-E460 series, the corresponding target is nwz-e46x.
Once you have identified the target. Run
make dump_rootfs NWZ_TARGET=nwz-exyz
make dump_rootfs NWZ_TARGET=nwz-exyz UPG=dump_rootfs.upg
(replace nwz-exyz with your target)
This command will produce a firmware upgrade file called
dump_rootfs.upg