Merged in paulpatience/nuttx-apps/libuavcan (pull request #38)

libuavcan
This commit is contained in:
Gregory Nutt 2016-05-25 08:23:21 -06:00
commit ab3612d203
2 changed files with 7 additions and 2 deletions

View File

@ -182,6 +182,7 @@ $(LIBUAVCAN_PACKNAME):
$(LIBUAVCAN_UNPACKNAME): $(LIBUAVCAN_PACKNAME)
@echo "Unpacking: $< -> $@"
$(call DELDIR, $@)
$(Q) $(UNPACK) $<
$(Q) touch $@
@ -191,6 +192,7 @@ $(DSDL_PACKNAME):
$(DSDL_UNPACKNAME): $(DSDL_PACKNAME)
@echo "Unpacking: $< -> $@"
$(call DELDIR, $@)
$(Q) $(UNPACK) $<
$(Q) touch $@
@ -200,11 +202,13 @@ $(PYUAVCAN_PACKNAME):
$(PYUAVCAN_UNPACKNAME): $(PYUAVCAN_PACKNAME)
@echo "Unpacking: $< -> $@"
$(call DELDIR, $@)
$(Q) $(UNPACK) $<
$(Q) touch $@
libuavcan: $(LIBUAVCAN_UNPACKNAME) $(DSDL_UNPACKNAME) $(PYUAVCAN_UNPACKNAME)
$(Q) cp -R $(LIBUAVCAN_UNPACKNAME) libuavcan
$(call DELDIR, $@)
$(Q) cp -R $(LIBUAVCAN_UNPACKNAME) $@
$(Q) if [ -r $(LIBUAVCAN_PATCHNAME) ]; then \
cat $(LIBUAVCAN_PATCHNAME) | patch -p0 || { echo "ERROR: Patch failed"; exit 1; }; \
fi
@ -249,6 +253,7 @@ clean:
distclean: clean
$(call DELFILE, Make.dep)
$(call DELFILE, .depend)
$(call DELDIR, libuavcan)
$(call DELDIR, $(LIBUAVCAN_UNPACKNAME))
$(call DELFILE, $(LIBUAVCAN_PACKNAME))
$(call DELDIR, $(DSDL_UNPACKNAME))

View File

@ -6,7 +6,7 @@
config EXAMPLES_UAVCAN
bool "UAVCAN example"
default n
depends on CANUTILS_UAVCAN
depends on CANUTILS_LIBUAVCAN
---help---
Enable the UAVCAN example