From a5bae8b8eeae513f882076beeb26e8f48fb90538 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 1 Jul 2020 14:00:15 +0800 Subject: [PATCH] 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 --- tools/mkimport.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/mkimport.sh b/tools/mkimport.sh index be1972fb4..1c7a7a631 100755 --- a/tools/mkimport.sh +++ b/tools/mkimport.sh @@ -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"