mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Don't copy build scripts for kernel build 'make exports'
This commit is contained in:
+8
-1
@@ -39,12 +39,19 @@ include $(TOPDIR)/tools/Config.mk
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# Control build verbosity
|
||||
#
|
||||
# V=1,2: Enable echo of commands
|
||||
# V=2: Enable bug/verbose options in tools and scripts
|
||||
|
||||
ifeq ($(V),1)
|
||||
export Q :=
|
||||
else
|
||||
ifeq ($(V),2)
|
||||
export Q :=
|
||||
else
|
||||
export Q := @
|
||||
endif
|
||||
endif
|
||||
|
||||
# Default tools
|
||||
|
||||
@@ -161,7 +168,7 @@ MKEXPORT_ARGS += -u
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(V),1)
|
||||
ifeq ($(V),2)
|
||||
MKEXPORT_ARGS += -d
|
||||
endif
|
||||
|
||||
|
||||
@@ -39,12 +39,19 @@ TOPDIR := ${shell echo %CD%}
|
||||
-include $(TOPDIR)\Make.defs
|
||||
|
||||
# Control build verbosity
|
||||
#
|
||||
# V=1,2: Enable echo of commands
|
||||
# V=2: Enable bug/verbose options in tools and scripts
|
||||
|
||||
ifeq ($(V),1)
|
||||
export Q :=
|
||||
else
|
||||
ifeq ($(V),2)
|
||||
export Q :=
|
||||
else
|
||||
export Q := @
|
||||
endif
|
||||
endif
|
||||
|
||||
# This define is passed as EXTRADEFINES for kernel-mode builds. It is also passed
|
||||
# during PASS1 (but not PASS2) context and depend targets.
|
||||
@@ -154,6 +161,10 @@ MKEXPORT_ARGS = -u
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(V),2)
|
||||
MKEXPORT_ARGS += -d
|
||||
endif
|
||||
|
||||
# This is the name of the final target (relative to the top level directorty)
|
||||
|
||||
BIN = nuttx$(EXEEXT)
|
||||
|
||||
+3
-1
@@ -165,7 +165,8 @@ fi
|
||||
|
||||
# Is there a linker script in this configuration?
|
||||
|
||||
if [ ! -z "${LDPATH}" ]; then
|
||||
if [ "X${USRONLY}" != "Xy" ]; then
|
||||
if [ ! -z "${LDPATH}" ]; then
|
||||
|
||||
# Apparently so. Verify that the script exists
|
||||
|
||||
@@ -178,6 +179,7 @@ if [ ! -z "${LDPATH}" ]; then
|
||||
|
||||
cp -p "${LDPATH}" "${EXPORTDIR}/build/." || \
|
||||
{ echo "MK: cp ${LDPATH} failed"; exit 1; }
|
||||
fi
|
||||
fi
|
||||
|
||||
# Save the compilation options
|
||||
|
||||
Reference in New Issue
Block a user