From 0e1fc1a2800f0c24f54f62b96d232127e8b07eac Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 8 Jul 2018 12:18:05 -0600 Subject: [PATCH] tools/mkexport.sh: Save the System.map file in the export package so that it can be used to extract addresses. --- tools/mkexport.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/mkexport.sh b/tools/mkexport.sh index 348a14cf5c..06c42f24e8 100755 --- a/tools/mkexport.sh +++ b/tools/mkexport.sh @@ -235,6 +235,12 @@ else echo "ARCHCXXFLAGS = ${ARCHCXXFLAGS}" >>"${EXPORTDIR}/build/Make.defs" fi +# Copy the system map file + +if [ -r ${TOPDIR}/System.map ]; then + cp -a "${TOPDIR}/System.map" "${EXPORTDIR}/." +fi + # Copy the NuttX include directory (retaining attributes and following symbolic links) cp -LR -p "${TOPDIR}/include" "${EXPORTDIR}/." || \