summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.win
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-04 12:19:47 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-04 12:19:47 -0600
commit26f5a3472584cc27fa4ac10aa1b892f4dd62b7ae (patch)
tree870bde4dc626a74204631dff6bcadd95dea4003f /nuttx/Makefile.win
parent7e67a97231e9bd66c14b37e1510f5d29c441aa7e (diff)
downloadpx4-nuttx-26f5a3472584cc27fa4ac10aa1b892f4dd62b7ae.tar.gz
px4-nuttx-26f5a3472584cc27fa4ac10aa1b892f4dd62b7ae.tar.bz2
px4-nuttx-26f5a3472584cc27fa4ac10aa1b892f4dd62b7ae.zip
In 'make export', do not copy internal header files if this is a kernel build
Diffstat (limited to 'nuttx/Makefile.win')
-rw-r--r--nuttx/Makefile.win15
1 files changed, 14 insertions, 1 deletions
diff --git a/nuttx/Makefile.win b/nuttx/Makefile.win
index 0efec094f..bb90d77e4 100644
--- a/nuttx/Makefile.win
+++ b/nuttx/Makefile.win
@@ -141,6 +141,19 @@ endif
LINKLIBS = $(patsubst lib\\%,%,$(NUTTXLIBS))
+# Export tool definitions
+
+MKEXPORT = tools\mkexport.bat
+MKEXPORT_ARGS = -w$(WINTOOL) -t "$(TOPDIR)"
+
+ifeq ($(CONFIG_BUILD_PROTECTED),y)
+MKEXPORT_ARGS = -u
+else
+ifeq ($(CONFIG_BUILD_KERNEL),y)
+MKEXPORT_ARGS = -u
+endif
+endif
+
# This is the name of the final target (relative to the top level directorty)
BIN = nuttx$(EXEEXT)
@@ -622,7 +635,7 @@ menuconfig: configenv
# that the archiver is 'ar'
export: pass2deps
- $(Q) tools\mkexport.sh -w$(WINTOOL) -t "$(TOPDIR)" -l "$(EXPORTLIBS)"
+ $(Q) $(MKEXPORT) $(MKEXPORT_ARGS) -w$(WINTOOL) -t "$(TOPDIR)" -l "$(EXPORTLIBS)"
# General housekeeping targets: dependencies, cleaning, etc.
#