mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-08 03:40:15 +00:00
Merge pull request #1085 from antmak/directory_overlay
Regular directory for overlaying
This commit is contained in:
commit
c00822f468
@ -2146,11 +2146,15 @@ CT_DoExtractPatch()
|
|||||||
if [ "${CT_TARGET_USE_OVERLAY}" = "y" -a ! -d "${CT_BUILD_DIR}/overlay" ]; then
|
if [ "${CT_TARGET_USE_OVERLAY}" = "y" -a ! -d "${CT_BUILD_DIR}/overlay" ]; then
|
||||||
CT_DoExecLog ALL mkdir -p "${CT_BUILD_DIR}/overlay"
|
CT_DoExecLog ALL mkdir -p "${CT_BUILD_DIR}/overlay"
|
||||||
overlay="${CT_OVERLAY_LOCATION}/${CT_ARCH}_${CT_OVERLAY_NAME:-overlay}"
|
overlay="${CT_OVERLAY_LOCATION}/${CT_ARCH}_${CT_OVERLAY_NAME:-overlay}"
|
||||||
ext=`CT_GetFileExtension "${overlay}"`
|
if [ -d "${overlay}" ]; then
|
||||||
if [ ! -r "${overlay}${ext}" ]; then
|
CT_DoExecLog ALL cp -av "${overlay}/." "${CT_BUILD_DIR}/overlay"
|
||||||
CT_Abort "Overlay ${overlay} not found"
|
else
|
||||||
|
ext=`CT_GetFileExtension "${overlay}"`
|
||||||
|
if [ ! -r "${overlay}${ext}" ]; then
|
||||||
|
CT_Abort "Overlay ${overlay} not found"
|
||||||
|
fi
|
||||||
|
CT_Extract "${overlay}${ext}" "${CT_BUILD_DIR}/overlay"
|
||||||
fi
|
fi
|
||||||
CT_Extract "${overlay}${ext}" "${CT_BUILD_DIR}/overlay"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Can use common location only if using non-custom source, only bundled patches
|
# Can use common location only if using non-custom source, only bundled patches
|
||||||
|
Loading…
x
Reference in New Issue
Block a user