Don't copy build scripts for kernel build 'make exports'

This commit is contained in:
Gregory Nutt
2014-09-04 12:35:47 -06:00
parent 86aa8f3813
commit 7743a2d4e2
3 changed files with 31 additions and 11 deletions
+12 -10
View File
@@ -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