mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 18:28:25 +00:00
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:
parent
00039b7c2e
commit
316aafc04d
1 changed files with 7 additions and 0 deletions
|
|
@ -196,6 +196,13 @@ if [ "X${USRONLY}" != "Xy" ]; then
|
|||
|
||||
cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \
|
||||
{ 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue