summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.unix
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.unix
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.unix')
-rw-r--r--nuttx/Makefile.unix19
1 files changed, 18 insertions, 1 deletions
diff --git a/nuttx/Makefile.unix b/nuttx/Makefile.unix
index 959cabfd1..2d7bb4fca 100644
--- a/nuttx/Makefile.unix
+++ b/nuttx/Makefile.unix
@@ -148,6 +148,23 @@ endif
LINKLIBS = $(patsubst lib/%,%,$(NUTTXLIBS))
+# Export tool definitions
+
+MKEXPORT= tools/mkexport.sh
+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
+
+ifeq ($(V),1)
+MKEXPORT_ARGS += -d
+endif
+
# This is the name of the final target (relative to the top level directorty)
BIN = nuttx$(EXEEXT)
@@ -625,7 +642,7 @@ gconfig:
# that the archiver is 'ar'
export: pass2deps
- $(Q) tools/mkexport.sh -w$(WINTOOL) -t "$(TOPDIR)" -l "$(EXPORTLIBS)"
+ $(Q) $(MKEXPORT) $(MKEXPORT_ARGS) -l "$(EXPORTLIBS)"
# General housekeeping targets: dependencies, cleaning, etc.
#