aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-08-12 23:54:35 -0700
committerpx4dev <px4@purgatory.org>2013-08-12 23:54:35 -0700
commitb6676f6cb8306fb99274f8e0a784d8846928d920 (patch)
treea4b8097cd0a83864269e888f07a6b402b74702e6
parent60275e1ae65633dfc03f6353b7796ed540975803 (diff)
downloadpx4-firmware-b6676f6cb8306fb99274f8e0a784d8846928d920.tar.gz
px4-firmware-b6676f6cb8306fb99274f8e0a784d8846928d920.tar.bz2
px4-firmware-b6676f6cb8306fb99274f8e0a784d8846928d920.zip
NuttX is confused when it doesn't know what board it's building for - since we don't tell it in the config anymore, we need to pass it a hint.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dc69b0ae8..778395cee 100644
--- a/Makefile
+++ b/Makefile
@@ -151,7 +151,7 @@ $(NUTTX_ARCHIVES): $(ARCHIVE_DIR)%.export: $(NUTTX_SRC)
$(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) make -r -j1 -C $(NUTTX_SRC) -r $(MQUIET) CONFIG_ARCH_BOARD=$(board) export
$(Q) mkdir -p $(dir $@)
$(Q) $(COPY) $(NUTTX_SRC)nuttx-export.zip $@
$(Q) (cd $(NUTTX_SRC)/configs && $(RMDIR) $(board))