2 Commits

Author SHA1 Message Date
Dostoievski Batista
d81f194e69 Add pre-check script to the patch
This commit add the deploy_precheck element to XML, allowing the
patch writer to add script used on the pre-check process of the deploy.

Test Plan:
- Enter the builder container
    $ stx shell
    $ cd $MY_REPO/build-tools/stx/patch
- Build patch
    $ ./patch_builder.py --recipe EXAMPLES/patch-recipe-sample.xml
- Verify if file has been added to .patch

Story: 2010676
Task: 49013

Change-Id: I18ae7fcbf046362d53a67bc290ffc9b1a0b888ad
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
2023-10-27 14:50:31 -03:00
lsampaio
e8c38945e0 Add patch builder utility
This utility will build patches based on .deb packages
instead of ostree delta.

Steps to build a patch (more details in the README file):

- Enter the builder container
$ stx shell
$ cd $MY_REPO/build-tools/stx/patch

- Install py requirements
$ pip install -r requirements.txt

- Update the patch-recipe file and build
$ ./patch_builder.py --recipe patch-recipe.xml

Story: 2010676
Task: 48640

Change-Id: Ida6fc316cdd6e8753ddf2845c27084f3238dd036
Signed-off-by: lsampaio <luis.sampaio@windriver.com>
2023-09-29 13:33:46 -04:00