config: add the local,bundled patch order

This ordering first applies the local patches, then the bundeld ones.
This commit is contained in:
Yann E. MORIN" 2009-08-31 12:51:53 +02:00
parent dc836b5e4d
commit b09e70bda5
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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