From 51a3606b17b62eb5a9ae5616467f8814792969b7 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 2 Dec 2016 14:50:58 -0800 Subject: Fix use of custom location if it is a directory. In that case, CT_GetCustom just creates a symlink to the original. In that case, 'cp -a .' gives an error and 'cp -a ' creates as a symlink (which will then run the build inside the shared directory, .build/src/). Signed-off-by: Alexey Neyman --- scripts/build/libc/avr-libc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build/libc/avr-libc.sh') diff --git a/scripts/build/libc/avr-libc.sh b/scripts/build/libc/avr-libc.sh index ff16cf9a..431e8768 100644 --- a/scripts/build/libc/avr-libc.sh +++ b/scripts/build/libc/avr-libc.sh @@ -41,7 +41,7 @@ do_libc_post_cc() { CT_DoStep INFO "Installing C library" CT_DoLog EXTRA "Copying sources to build directory" - CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/avr-libc-${CT_LIBC_VERSION}" \ + CT_DoExecLog ALL cp -av "${CT_SRC_DIR}/avr-libc-${CT_LIBC_VERSION}/." \ "${CT_BUILD_DIR}/build-libc-post-cc" cd "${CT_BUILD_DIR}/build-libc-post-cc" -- cgit v1.2.3