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
26 lines
652 B
XML
26 lines
652 B
XML
<!--
|
|
Copyright (c) 2022 Wind River Systems, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
<PATCH_RECIPE>
|
|
<METADATA>
|
|
<ID>DEBIAN_RR</ID>
|
|
<SW_VERSION>00.00</SW_VERSION>
|
|
<SUMMARY>Debian patch test</SUMMARY>
|
|
<DESCRIPTION>
|
|
Reboot required patch
|
|
</DESCRIPTION>
|
|
<INSTALL_INSTRUCTIONS>
|
|
Sample instructions
|
|
</INSTALL_INSTRUCTIONS>
|
|
<WARNINGS>
|
|
Sample warning
|
|
</WARNINGS>
|
|
<REBOOT_REQUIRED>Y</REBOOT_REQUIRED>
|
|
<UNREMOVABLE>N</UNREMOVABLE>
|
|
<STATUS>DEV</STATUS>
|
|
<REQUIRES>
|
|
</REQUIRES>
|
|
</METADATA>
|
|
</PATCH_RECIPE> |