mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-24 06:58:35 +00:00
make/import: copy the exported buildin registers
copy the exported buildin registers to avoid symbols dropping on import build Change-Id: Ibf184d5d67906b41a2c813b96f61f047e60bacea Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
fde8f24f2a
commit
a5bae8b8ee
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ fi
|
|||
|
||||
WD=${PWD}
|
||||
IMPORTDIR=${WD}/import
|
||||
BUILTINDIR=${WD}/builtin
|
||||
DARCHDIR=${IMPORTDIR}/arch
|
||||
DINCDIR=${IMPORTDIR}/include
|
||||
DLIBDIR=${IMPORTDIR}/libs
|
||||
|
|
@ -144,6 +145,7 @@ SLIBDIR=${EXPORTDIR}/libs
|
|||
SSCRIPTSDIR=${EXPORTDIR}/scripts
|
||||
SSTARTDIR=${EXPORTDIR}/startup
|
||||
STOOLSDIR=${EXPORTDIR}/tools
|
||||
REGISTERSDIR=${EXPORTDIR}/registry
|
||||
|
||||
unset SALLDIRS
|
||||
if [ -d ${SARCHDIR} ]; then
|
||||
|
|
@ -170,6 +172,9 @@ fi
|
|||
mv ${SALLDIRS} ${IMPORTDIR}/. || \
|
||||
{ echo "ERROR: Failed to move ${SALLDIRS} to ${IMPORTDIR}"; exit 1; }
|
||||
|
||||
cp -rf ${REGISTERSDIR} ${BUILTINDIR}/. || \
|
||||
{ echo "ERROR: Failed to move ${REGISTERSDIR} to ${BUILTINDIR}"; exit 1; }
|
||||
|
||||
# Move the .config file in place in the import directory
|
||||
|
||||
SFILES=".config"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue