tools/mkexport.sh: The export of gnu-elf.ld at least is required to build ELF loadable binaries. Option to link system into different memory locations (boot, application after boot-loader, RAM) without need to rebuild/reexport NuttX is useful as well.

This commit is contained in:
Pavel Pisa 2019-08-28 07:49:57 -06:00 committed by Gregory Nutt
parent 00039b7c2e
commit 316aafc04d

View File

@ -196,6 +196,13 @@ if [ "X${USRONLY}" != "Xy" ]; then
cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \ cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \
{ echo "MK: cp ${LDPATH} failed"; exit 1; } { echo "MK: cp ${LDPATH} failed"; exit 1; }
# Copy addtional ld scripts
LDDIR="$(dirname "${LDPATH}")"
for f in "${LDDIR}"/*.ld ; do
[ -f "${f}" ] && cp -f "${f}" "${EXPORTDIR}/build/."
done
fi fi
fi fi