Skip to main content

z_kmpkg_apply_patches

warning

This is an internal helper function used internally to implement kmpkg. Behavior and arguments will change in breaking ways without notice. Do not use this function.

Apply a set of patches to a source tree.

Usage

z_kmpkg_apply_patches(
SOURCE_PATH <path-to-source>
[QUIET]
PATCHES <patch>...
)

Parameters

SOURCE_PATH

The path to apply patches into.

PATCHES

The list of patches to apply.

Relative paths are interpreted from the root of the port directory.

QUIET

Do not print any messages and do not fatal error on failure to apply patches.

Notes

A common pattern for large patches is to download them with kmpkg_download_distfile() and pass the downloaded path into PATCHES.

Source

scripts/cmake/z_kmpkg_apply_patches.cmake