diff options
author | David Sidrane <david_s5@nscdg.com> | 2014-12-25 06:34:23 -1000 |
---|---|---|
committer | David Sidrane <david_s5@nscdg.com> | 2015-03-05 09:00:06 -1000 |
commit | 814719fd6a784fd9d9e724c721c2123815ee624a (patch) | |
tree | 63b0074ab34bc0d9acee6c2eb8d3c7e667f5dd76 /Makefile | |
parent | 8ae6b0f3d1ec76e8f2eee570f897d7284a4c2744 (diff) | |
download | px4-firmware-814719fd6a784fd9d9e724c721c2123815ee624a.tar.gz px4-firmware-814719fd6a784fd9d9e724c721c2123815ee624a.tar.bz2 px4-firmware-814719fd6a784fd9d9e724c721c2123815ee624a.zip |
Added the ability to apply PX4 specific patches to Nuttx
At the moment this entails adding NuttX/nuttx/arch/arm/include/math.h
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -190,23 +190,23 @@ NUTTX_PATCHED = $(NUTTX_SRC).patchedpx4common .PHONY: nuttxpatches nuttxpatches: - $(Q) -if [ ! -f $(NUTTX_PATCHED) ]; then \ + $(Q) if [ ! -f $(NUTTX_PATCHED) ]; then \ for patch in $(NUTTX_PATCHES); \ do \ - $(PATCH) -p0 -N < $$patch >/dev/null; \ + $(PATCH) -p0 -N < $$patch; \ done \ fi $(Q) $(TOUCH) $(NUTTX_PATCHED) .PHONY: cleannuttxpatches cleannuttxpatches: - $(Q) -if [ -f $(NUTTX_PATCHED) ]; then \ + $(Q) if [ ! -f $(NUTTX_PATCHED) ]; then \ for patch in $(NUTTX_PATCHES); \ do \ - $(PATCH) -p0 -N -R -r - < $$patch >/dev/null; \ + $(PATCH) -p0 -N -R < $$patch; \ done \ fi - $(Q) $(REMOVE) $(NUTTX_PATCHED) + $(Q) $(TOUCH) $(NUTTX_PATCHED) # # The user can run the NuttX 'menuconfig' tool for a single board configuration with @@ -301,11 +301,11 @@ clean: $(Q) $(REMOVE) $(IMAGE_DIR)*.px4 .PHONY: distclean -distclean: cleannuttxpatches clean +distclean: clean cleannuttxpatches @echo > /dev/null - $(Q) $(REMOVE) $(ARCHIVE_DIR)*.export - $(Q) $(MAKE) -C $(NUTTX_SRC) -r $(MQUIET) distclean - $(Q) (cd $(NUTTX_SRC)/configs && $(FIND) . -maxdepth 1 -type l -delete) + $(Q) $(REMOVE) $(ARCHIVE_DIR)*.export > /dev/null + $(Q) $(MAKE) -C $(NUTTX_SRC) -r $(MQUIET) distclean > /dev/null + $(Q) (cd $(NUTTX_SRC)/configs && $(FIND) . -maxdepth 1 -type l -delete) > /dev/null # # Print some help text |