https://github.com/open-power/op-image-tools
image build tools for open-power
https://github.com/open-power/op-image-tools
Last synced: about 1 month ago
JSON representation
image build tools for open-power
- Host: GitHub
- URL: https://github.com/open-power/op-image-tools
- Owner: open-power
- Created: 2024-06-26T15:19:08.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T11:12:14.000Z (7 months ago)
- Last Synced: 2024-10-29T13:12:27.782Z (7 months ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 15
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# op-image-tool
image build tools for open-powerimageBuild.py merges and digitally signes multiple images into an output image based on rules from a config file.
The image build tool will first try to find any input image files in the override
directory, if one is specified by the --ovrd parameter. Then it will look in the paths provided
by the input parameters and/or config file, or image files generated by the input parameters or config file.
Finally it will look in 'binaries' directory that is created based on parameters in the config file,
unless --no_downloads is specified, in which case all cloning/downloading is blocked.Currently the binaries are extracted from https://github.com/open-power/hostboot-binaries
Examples (from imagBuild dir):
See ./imageBuild.py --helpThe case where both ekb and sbe repos exist and they are already built
```
./imageBuild.py configs/odyssey/dd1/ody_pnor_dd1_image_config --ekb --sbe --output output --name pnor.bin
```
The case where there are only pre-built images available and they are all available in the paths provided.
./imageBuild.py --ekb_image --sbe --no_downloads --output output --name pnor.bin
```
The case where sbe is already built and at least the desired ekb archive(s) are in the overrides directory or the 'binaries' directory
```
./imageBuild.py configs/odyssey/dd1/ody_pnor_dd1_image_config --sbe --ovrd --output output --name pnor.bin
```
The case where the ekb and sbe need to be built. If the provided location does not exist, they will be cloned from gerrit before being built. In this example, the location where
the ekb and sbe repositories should be cloned to, and which commit to use, are specified in the config file
```
./imageBuild.py configs/odyssey/dd1/ody_pnor_dd1_image_config --output output --name pnor.bin --build
```