This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 679829412 Fix #2181 : LELYCANOPEN_UNPACKNAME comes from extracted
tarball directory
679829412 is described below
commit 6798294129fe0a03948421cf33ad818b3dfc32ec
Author: Ritvik <[email protected]>
AuthorDate: Wed Nov 8 17:53:08 2023 -0500
Fix #2181 : LELYCANOPEN_UNPACKNAME comes from extracted tarball directory
---
canutils/lely-canopen/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/canutils/lely-canopen/Makefile b/canutils/lely-canopen/Makefile
index 8bb3f04e4..c85733013 100644
--- a/canutils/lely-canopen/Makefile
+++ b/canutils/lely-canopen/Makefile
@@ -176,6 +176,8 @@ $(LELYCANOPEN_TARBALL):
$(LELYCANOPEN_SRCNAME): $(LELYCANOPEN_TARBALL)
@echo "Unpacking: $(LELYCANOPEN_TARBALL) -> $(LELYCANOPEN_UNPACKNAME)"
$(Q) $(UNPACK) $(LELYCANOPEN_TARBALL)
+ # Get the name of the directory created by the tar command
+ $(eval LELYCANOPEN_UNPACKNAME := $(shell ls -d lely-core-master*))
$(Q) mv $(LELYCANOPEN_UNPACKNAME) $(LELYCANOPEN_SRCNAME)
$(Q) cat 0001-NuttX-port.patch | patch -s -N -d $(LELYCANOPEN_SRCNAME)
-p1
$(Q) echo "Patching $(LELYCANOPEN_SRCNAME)"