mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 12:57:53 +00:00
config: add the local,bundled patch order
This ordering first applies the local patches, then the bundeld ones.
This commit is contained in:
parent
dc836b5e4d
commit
b09e70bda5
@ -86,6 +86,14 @@ config PATCH_BUNDLED_LOCAL
|
||||
Apply the patches bundled with crosstool-NG,
|
||||
then apply your local patches.
|
||||
|
||||
config PATCH_LOCAL_BUNDLED
|
||||
bool
|
||||
prompt "Local, then bundled"
|
||||
select PATCH_USE_LOCAL
|
||||
help
|
||||
Apply your local patches, then apply the patches
|
||||
bundled with crosstool-NG.
|
||||
|
||||
endchoice
|
||||
|
||||
config PATCH_ORDER
|
||||
@ -93,6 +101,7 @@ config PATCH_ORDER
|
||||
default "bundled" if PATCH_BUNDLED
|
||||
default "local" if PATCH_LOCAL
|
||||
default "bundled,local" if PATCH_BUNDLED_LOCAL
|
||||
default "local,bundled" if PATCH_LOCAL_BUNDLED
|
||||
|
||||
config PATCH_USE_LOCAL
|
||||
bool
|
||||
|
@ -618,6 +618,7 @@ CT_Patch() {
|
||||
bundled) patch_dirs=("${bundled_patch_dir}");;
|
||||
local) patch_dirs=("${local_patch_dir}");;
|
||||
bundled,local) patch_dirs=("${bundled_patch_dir}" "${local_patch_dir}");;
|
||||
local,bundled) patch_dirs=("${local_patch_dir}" "${bundled_patch_dir}");;
|
||||
esac
|
||||
|
||||
for d in "${patch_dirs[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user