mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
Merge pull request #1560 from stephanosio/upstream_local_common_patch_dir
Support common local patch directory
This commit is contained in:
commit
26ce3b335e
@ -2240,6 +2240,7 @@ CT_DoExtractPatch()
|
|||||||
local bundled_patch_dir
|
local bundled_patch_dir
|
||||||
local bundled_common_patch_dir
|
local bundled_common_patch_dir
|
||||||
local local_patch_dir
|
local local_patch_dir
|
||||||
|
local local_common_patch_dir
|
||||||
local overlay
|
local overlay
|
||||||
|
|
||||||
# Inherit global value if requested
|
# Inherit global value if requested
|
||||||
@ -2315,12 +2316,13 @@ CT_DoExtractPatch()
|
|||||||
bundled_patch_dir="${CT_LIB_DIR}/packages/${pkg_dir}"
|
bundled_patch_dir="${CT_LIB_DIR}/packages/${pkg_dir}"
|
||||||
bundled_common_patch_dir="${CT_LIB_DIR}/packages/${pkg_name}"
|
bundled_common_patch_dir="${CT_LIB_DIR}/packages/${pkg_name}"
|
||||||
local_patch_dir="${CT_LOCAL_PATCH_DIR}/${pkg_dir}"
|
local_patch_dir="${CT_LOCAL_PATCH_DIR}/${pkg_dir}"
|
||||||
|
local_common_patch_dir="${CT_LOCAL_PATCH_DIR}/${pkg_name}"
|
||||||
|
|
||||||
case "${patch_order}" in
|
case "${patch_order}" in
|
||||||
bundled) patch_dirs=("${bundled_patch_dir}" "${bundled_common_patch_dir}");;
|
bundled) patch_dirs=("${bundled_patch_dir}" "${bundled_common_patch_dir}");;
|
||||||
local) patch_dirs=("${local_patch_dir}");;
|
local) patch_dirs=("${local_patch_dir}" "${local_common_patch_dir}");;
|
||||||
bundled,local) patch_dirs=("${bundled_patch_dir}" "${bundled_common_patch_dir}" "${local_patch_dir}");;
|
bundled,local) patch_dirs=("${bundled_patch_dir}" "${bundled_common_patch_dir}" "${local_patch_dir}" "${local_common_patch_dir}");;
|
||||||
local,bundled) patch_dirs=("${local_patch_dir}" "${bundled_patch_dir}" "${bundled_common_patch_dir}");;
|
local,bundled) patch_dirs=("${local_patch_dir}" "${local_common_patch_dir}" "${bundled_patch_dir}" "${bundled_common_patch_dir}");;
|
||||||
none) patch_dirs=;;
|
none) patch_dirs=;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user