update/sw-patch/cgcs-patch/cgcs_make_patch
Luis Sampaio 864f8156d6 make_patch utility for Debian
This allows creation of debian patches (RR and INSVC) based on ostree.

Steps to create a debian patch:
1) Export env variables, e.g:
export PROJECT="stx-debian-desktop"
export STX_BUILD_HOME="/localdisk/designer/${USER}/${PROJECT}"

2) Run prepare to create a clone of the STX_BUILD_HOME ostree_repo
./make_patch.py prepare --clone-repo ostree_test

3) Make changes to the environment
- update a package
- build-pkgs -c -p <package name>
- build-image
This will create a new commit in the build ostree_repo

4) Create your patch.xml (samples provided)
- patch_recipe_rr_sample.xml
- patch_recipe_insvc_sample.xml

5) Run create to build the patch
./make_patch.py create --patch-recipe patch_recipe_rr_sample.xml \
--clone-repo ostree_test

Once the script is done the .patch file can be located at:
$STX_BUILD_HOME/localdisk/lat/std/deploy/

Story: 2009969
Task: 45542
Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com>
Change-Id: I902c42bc22601810fb91e45c630671af14906dcd
2022-06-14 09:48:53 -07:00
..
make_patch.py make_patch utility for Debian 2022-06-14 09:48:53 -07:00
patch_recipe_insvc_sample.xml make_patch utility for Debian 2022-06-14 09:48:53 -07:00
patch_recipe_rr_sample.xml make_patch utility for Debian 2022-06-14 09:48:53 -07:00