summaryrefslogtreecommitdiff
path: root/nuttx/tools/mkexport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/tools/mkexport.sh')
-rwxr-xr-xnuttx/tools/mkexport.sh20
1 files changed, 11 insertions, 9 deletions
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