1
0
Fork 0
forked from nuttx/nuttx-update

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 # Export tool definitions
MKEXPORT= tools/mkexport.sh 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) ifneq ($(CONFIG_BUILD_FLAT),y)
MKEXPORT_ARGS += -u MKEXPORT_ARGS += -u

View file

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