# Patch Builder Utility This utility will build patches based on .deb packages. ### Pre reqs - Setup a build environment and build all packages/image - Make code changes to your packages and build them ### Patch recipe schema The patch builder requires the following tags in the input xml (or patch recipe) ```xml 1.0.0 starlingx sample patch test Sample description Sample instructions Sample warning Y N DEV scripts/pre-install.sh scripts/post-install.sh sysvinv linux linux-rt curl ``` ### How to build a patch - Enter the builder container ```bash $ stx shell $ cd $MY_REPO/build-tools/stx/patch ``` - Install py requirements ```bash $ pip install -r requirements.txt ``` - Update the patch-recipe file. For examples please refer to the `EXAMPLES` folder. - Update any pre/post script. For examples check refer to the `scripts` folder. - Build your patch: ```bash $ ./patch-builder --recipe EXAMPLES\patch-recipe-sample.xml ```