aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-08-02 23:11:04 -0700
committerpx4dev <px4@purgatory.org>2013-08-02 23:11:04 -0700
commitecc7bc5bca40e9d5e0a7271105dea9b3441af0a8 (patch)
tree2dbe20984da5cc24405e00ab43a88664e8fdc757 /Makefile
parent9d6ec6b3655fcd902be7a7fe4f2a24033c714afb (diff)
downloadpx4-firmware-ecc7bc5bca40e9d5e0a7271105dea9b3441af0a8.tar.gz
px4-firmware-ecc7bc5bca40e9d5e0a7271105dea9b3441af0a8.tar.bz2
px4-firmware-ecc7bc5bca40e9d5e0a7271105dea9b3441af0a8.zip
Clean out unused trash from the NuttX configs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f58858f0..d1a192fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -148,12 +148,13 @@ $(NUTTX_ARCHIVES): $(ARCHIVE_DIR)%.export: $(NUTTX_SRC)
@$(ECHO) %% Configuring NuttX for $(board)
$(Q) (cd $(NUTTX_SRC) && $(RMDIR) nuttx-export)
$(Q) make -r -j1 -C $(NUTTX_SRC) -r $(MQUIET) distclean
- $(Q) (cd $(NUTTX_SRC)/configs && $(COPYDIR) $(PX4_BASE)/nuttx-configs/* .)
+ $(Q) (cd $(NUTTX_SRC)/configs && $(COPYDIR) $(PX4_BASE)/nuttx-configs/$(board) .)
$(Q) (cd $(NUTTX_SRC)tools && ./configure.sh $(board)/$(configuration))
@$(ECHO) %% Exporting NuttX for $(board)
$(Q) make -r -j1 -C $(NUTTX_SRC) -r $(MQUIET) export
$(Q) mkdir -p $(dir $@)
$(Q) $(COPY) $(NUTTX_SRC)nuttx-export.zip $@
+ $(Q) (cd $(NUTTX_SRC)/configs && $(RMDIR) $(board))
$(NUTTX_SRC):
@$(ECHO) ""