[meta-multimedia][PATCH] nv-codec-headers: add clean target to Makefile


Markus Volk
 

next try to fix an error on rebuilds:
| NOTE: make clean
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| make: *** No rule to make target 'clean'. Stop.

Signed-off-by: Markus Volk <f_L_K@...>
---
.../0001-Makefile-add-clean-target.patch | 25 +++++++++++++++++++
.../nv-codec-headers_12.0.16.0.bb | 5 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
create mode 100644 meta-multimedia/recipes-multimedia/nv-codec-headers/n=
v-codec-headers/0001-Makefile-add-clean-target.patch

diff --git a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec=
-headers/0001-Makefile-add-clean-target.patch b/meta-multimedia/recipes-m=
ultimedia/nv-codec-headers/nv-codec-headers/0001-Makefile-add-clean-targe=
t.patch
new file mode 100644
index 000000000..7ae749bed
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-header=
s/0001-Makefile-add-clean-target.patch
@@ -0,0 +1,25 @@
+From 3b74181d626f7dedb47377450ca7c43457a66cda Mon Sep 17 00:00:00 2001
+From: Markus Volk <f_L_K@...>
+Date: Sat, 1 Apr 2023 04:42:32 +0200
+Subject: [PATCH] Makefile: add clean target
+
+---
+ Makefile | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index a51c2c9..fbe2aec 100644
+--- a/Makefile
++++ b/Makefile
+@@ -19,5 +19,7 @@ install: all
+ uninstall:
+ rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec' '$(DESTDIR)$(PREFIX)/$(=
LIBDIR)/pkgconfig/ffnvcodec.pc'
+=20
+-.PHONY: all install uninstall
++clean: uninstall
++
++.PHONY: all clean install uninstall
+=20
+--=20
+2.34.1
+
diff --git a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec=
-headers_12.0.16.0.bb b/meta-multimedia/recipes-multimedia/nv-codec-heade=
rs/nv-codec-headers_12.0.16.0.bb
index 411c40616..5ef7ead81 100644
--- a/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-header=
s_12.0.16.0.bb
+++ b/meta-multimedia/recipes-multimedia/nv-codec-headers/nv-codec-header=
s_12.0.16.0.bb
@@ -3,7 +3,10 @@ HOMEPAGE =3D "https://git.videolan.org/git/ffmpeg/nv-cod=
ec-headers.git"
LICENSE =3D "MIT"
LIC_FILES_CHKSUM =3D "file://${S}/include/ffnvcodec/dynlink_cuda.h;begin=
line=3D1;endline=3D26;md5=3Dbb54a418154445b0aa99e15f640eacf4"
=20
-SRC_URI =3D "git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;bran=
ch=3Dmaster;protocol=3Dhttps"
+SRC_URI =3D " \
+ git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;branch=3Dmast=
er;protocol=3Dhttps \
+ file://0001-Makefile-add-clean-target.patch \
+"
SRCREV =3D "c5e4af74850a616c42d39ed45b9b8568b71bf8bf"
S =3D "${WORKDIR}/git"
=20
--=20
2.34.1