xanmod-kernel-WSL2
xanmod-kernel-WSL2 copied to clipboard
RFC: OMG! They ACTUALLY Made config.sh USEFUL?! (Recursive Patching UNLOCKED!)
This pull request introduces two improvements to the patching script (config.sh):
Unified Script & LTS Build Handling:
- Unifies config.sh across LTS and non-LTS builds. Previously, a separate script (config-lts.sh) existed for LTS builds that omitted a specific patch.
- Patches can be skipped for LTS builds by appending "_skip_lts" to the patch filename
Improved Patch Management:
- Moves all patches to a dedicated subdirectory within the project structure.
- Updates config.sh to recursively apply patches from this subdirectory.
- Removes the redundant config-lts.sh script and all references to it.
Benefits
- Simplifies script maintenance by having a single config.sh script.
- Provides a more robust and flexible way to manage patches.