make/export: export post build script

post build processing is also necessary for import compilation

Change-Id: Ie27e25b84e2212e9c86358c30ca1a5b7c2adffc5
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-06-28 20:02:32 +08:00 committed by Abdelatif Guettouche
parent 628a352973
commit 30d2b6c89c
2 changed files with 12 additions and 1 deletions

View File

@ -117,7 +117,7 @@ LINKLIBS = $(patsubst staging/%,%,$(NUTTXLIBS))
# Export tool definitions
MKEXPORT= tools/mkexport.sh
MKEXPORT_ARGS = -w$(CONFIG_CYGWIN_WINTOOL) -t "$(TOPDIR)"
MKEXPORT_ARGS = -w$(CONFIG_CYGWIN_WINTOOL) -t "$(TOPDIR)" -b "$(BOARD_DIR)"
ifneq ($(CONFIG_BUILD_FLAT),y)
MKEXPORT_ARGS += -u

View File

@ -39,6 +39,7 @@ unset TOPDIR
unset LIBLIST
unset TGZ
unset APPDIR
unset BOARDDIR
USRONLY=n
WINTOOL=n
@ -50,6 +51,10 @@ while [ ! -z "$1" ]; do
shift
APPDIR="$1"
;;
-b )
shift
BOARDDIR="$1"
;;
-d )
set -x
;;
@ -201,6 +206,12 @@ cp "${TOPDIR}/tools/incdir.c" "${EXPORTDIR}/tools/."
cp -f "${TOPDIR}/binfmt/libelf/gnu-elf.ld" "${EXPORTDIR}/scripts/."
# Copy the board config script
if [ -f "${BOARDDIR}/scripts/Config.mk" ]; then
cp -f "${BOARDDIR}/scripts/Config.mk" "${EXPORTDIR}/scripts/."
fi
# Is there a linker script in this configuration?
if [ "X${USRONLY}" != "Xy" ]; then