tools/mkexport.sh: Save the User.map file in the export package if available.

This commit is contained in:
Gregory Nutt 2018-07-09 05:42:42 -06:00
parent 283b73edc5
commit 947c10e099
1 changed files with 5 additions and 1 deletions

View File

@ -235,12 +235,16 @@ else
echo "ARCHCXXFLAGS = ${ARCHCXXFLAGS}" >>"${EXPORTDIR}/build/Make.defs"
fi
# Copy the system map file
# Copy the system map file(s)
if [ -r ${TOPDIR}/System.map ]; then
cp -a "${TOPDIR}/System.map" "${EXPORTDIR}/."
fi
if [ -r ${TOPDIR}/User.map ]; then
cp -a "${TOPDIR}/User.map" "${EXPORTDIR}/."
fi
# Copy the NuttX include directory (retaining attributes and following symbolic links)
cp -LR -p "${TOPDIR}/include" "${EXPORTDIR}/." || \