From 6798294129fe0a03948421cf33ad818b3dfc32ec Mon Sep 17 00:00:00 2001 From: Ritvik Date: Wed, 8 Nov 2023 17:53:08 -0500 Subject: [PATCH] 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)"