Closed hertrste closed 7 months ago
I like this idea, but I have one concern and I don't know if there's a good way to improve it. Most things you can set in config.mak or on the make command line can be per-build, with multiple targets under the same top-level mcm tree, and don't have stateful side effects outside that. However, as written, the EXTRA_PATCHES
apply when the (shared) patched source trees are setup under the top-level mcm dir, and thereby affect later builds in the same dir even if it's no longer used, or fail to affect anything if the sources were already extracted.
There are 2 possible ways I can think of we might go about improving this:
BUILD_DIR
config.mak
file, with the intent that you not poke at it after generation.Any thoughts on this?
This commit allows the user to specify an extra patch directory by either placing EXTRA_PATCHES in the config.mak or as an environment variable when invoking make.
The patch directory is expected to have the same structure as the patches/ directory, thus having subdirectories with the respective components (gcc, musl, ...) and their version.
Providing EXTRA_PATCHES is optional.
Having extra patches allows to specify custom MUSL patches without dirtying the musl-cross-make repository directory.