| commit | 99ac18a7cb8b0077d0ecac54f126e01c1ae17543 | [log] [tgz] |
|---|---|---|
| author | Chicago Duan <duanzhijia01@inspur.com> | Thu Dec 12 15:20:51 2019 +0800 |
| committer | Chicago Duan <duanzhijia01@inspur.com> | Fri Dec 20 17:26:47 2019 +0800 |
| tree | d79170aa9d05160b9e39e213a7cff4a875f21383 | |
| parent | 8afeee56a30ec8097c6ce1b53173f78dc775cc36 [diff] |
Tools: add script to create an update tarball
This script is used to generate the tarball using the PSU image and MANIFEST
usage: generate-psu-tar [OPTION] <parameter>...
Options:
-i, --image <file> PSU FW image
-v, --version <version> PSU FW version
-model, --model <model> PSU FW model
-mf, --manufacture <version> PSU FW manufacture
-o, --outfile <filename> Outfile name
For example : -o psufw.tar
The default outfile name is image.tar,and
"image" is what you input.
-s, --sign <path> Sign the image. The optional path argument specifies
the private key file. Defaults to the bash variable
PRIVATE_KEY_PATH if available, or else uses the
open-source private key in this script.
-h, --help Display this help text and exit.
Tested: Use this script to generate the tarball for PSU update.
for example :
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1
-mf LITEON -o test.tar -s /home/chicago/test/private_key
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1
-mf LITEON -o test.tar -s test/private_key
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON -o test.tar -s
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON -o test.tar
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I50ea116bc6e1e49d7fea3e0974453c442784fbe1
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done