Files
update/sw-patch/cgcs-patch/cgcs_make_patch/patch_recipe_insvc_sample.xml
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

29 lines
797 B
XML

<!--
Copyright (c) 2022 Wind River Systems, Inc.
SPDX-License-Identifier: Apache-2.0
-->
<PATCH_RECIPE>
<METADATA>
<ID>DEBIAN_INSVC</ID>
<SW_VERSION>00.00</SW_VERSION>
<SUMMARY>Debian patch test</SUMMARY>
<DESCRIPTION>
In service patch
</DESCRIPTION>
<INSTALL_INSTRUCTIONS>
Sample instructions
</INSTALL_INSTRUCTIONS>
<WARNINGS>
Sample warning
</WARNINGS>
<REBOOT_REQUIRED>N</REBOOT_REQUIRED>
<UNREMOVABLE>N</UNREMOVABLE>
<STATUS>DEV</STATUS>
<RESTART_SCRIPT>
/build/repo/cgcs-root/stx/update/patch-scripts/EXAMPLE_0001/scripts/example-restart
</RESTART_SCRIPT>
<REQUIRES>
</REQUIRES>
</METADATA>
</PATCH_RECIPE>