From 89627d6c300f03551d82a672d634ed0217a241a4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 4 Sep 2014 12:35:47 -0600 Subject: Don't copy build scripts for kernel build 'make exports' --- nuttx/tools/mkexport.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'nuttx/tools') diff --git a/nuttx/tools/mkexport.sh b/nuttx/tools/mkexport.sh index 562121bed..cbdcddc78 100755 --- a/nuttx/tools/mkexport.sh +++ b/nuttx/tools/mkexport.sh @@ -165,19 +165,21 @@ fi # Is there a linker script in this configuration? -if [ ! -z "${LDPATH}" ]; then +if [ "X${USRONLY}" != "Xy" ]; then + if [ ! -z "${LDPATH}" ]; then - # Apparently so. Verify that the script exists + # Apparently so. Verify that the script exists - if [ ! -f "${LDPATH}" ]; then - echo "MK: File ${LDPATH} does not exist" - exit 1 - fi + if [ ! -f "${LDPATH}" ]; then + echo "MK: File ${LDPATH} does not exist" + exit 1 + fi - # Copy the linker script + # Copy the linker script - cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \ - { echo "MK: cp ${LDPATH} failed"; exit 1; } + cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \ + { echo "MK: cp ${LDPATH} failed"; exit 1; } + fi fi # Save the compilation options -- cgit v1.2.3