According to the WSO2 patch application process, after a kernel public patch is created as described in Creating a Carbon Kernel Patch, the respective product team should follow the steps below to add the patches to the product distribution, if a product that is based on Carbon kernel needs to ship the patch by default.
To ship a kernel patch with a product distribution:
Add the patch to the respective product distribution build. Follow the identical process that you use to add a Carbon kernel distribution (
wso2carbon-core-<version>.zip) to a product distribution using the Maven dependency plugin.
<!-- Unzipping WSO2-CARBON-PATCH-4.1.0-0001-->
When the distribution gets built for a product, ensure that the
libraries/jars subdirectory in the patch directory (e.g.,
patch0xxx) are copied to the
<!-- Copying WSO2-CARBON-PATCH-4.1.0-0001 files to the patches directory-->