Merged in paulpatience/nuttx-apps/libuavcan (pull request #38)
libuavcan
This commit is contained in:
commit
ab3612d203
@ -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))
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user