nv-codec-headers: add clean target to Makefile

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@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk
2023-04-01 05:08:43 +02:00
committed by Khem Raj
parent 9937ffa5d2
commit 55489e5d10
2 changed files with 29 additions and 1 deletions
@@ -0,0 +1,25 @@
From 3b74181d626f7dedb47377450ca7c43457a66cda Mon Sep 17 00:00:00 2001
From: Markus Volk <f_L_K@t-online.de>
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'
-.PHONY: all install uninstall
+clean: uninstall
+
+.PHONY: all clean install uninstall
--
2.34.1
@@ -3,7 +3,10 @@ HOMEPAGE = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/include/ffnvcodec/dynlink_cuda.h;beginline=1;endline=26;md5=bb54a418154445b0aa99e15f640eacf4"
SRC_URI = "git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;branch=master;protocol=https"
SRC_URI = " \
git://git.videolan.org/git/ffmpeg/nv-codec-headers.git;branch=master;protocol=https \
file://0001-Makefile-add-clean-target.patch \
"
SRCREV = "c5e4af74850a616c42d39ed45b9b8568b71bf8bf"
S = "${WORKDIR}/git"