mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
Don't copy build scripts for kernel build 'make exports'
This commit is contained in:
+12
-10
@@ -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
|
||||
if [ ! -f "${LDPATH}" ]; then
|
||||
echo "MK: File ${LDPATH} does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Copy the linker script
|
||||
|
||||
cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \
|
||||
{ echo "MK: cp ${LDPATH} failed"; exit 1; }
|
||||
fi
|
||||
|
||||
# Copy the linker script
|
||||
|
||||
cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \
|
||||
{ echo "MK: cp ${LDPATH} failed"; exit 1; }
|
||||
fi
|
||||
|
||||
# Save the compilation options
|
||||
|
||||
Reference in New Issue
Block a user