Don't copy build scripts for kernel build 'make exports'

This commit is contained in:
Gregory Nutt
2014-09-04 12:35:47 -06:00
parent 86aa8f3813
commit 7743a2d4e2
3 changed files with 31 additions and 11 deletions
+8 -1
View File
@@ -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
+11
View File
@@ -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
View File
@@ -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