From 04e86fc2d528bbcf82ef25235e4a6a12a348f5de Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Wed, 9 Aug 2023 10:56:02 +0800 Subject: [PATCH] graphics/libyuv: refine patching logic Only stable branch need custom patch, main is fixed by upstream Signed-off-by: Peter Bee --- graphics/libyuv/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/libyuv/Makefile b/graphics/libyuv/Makefile index f02f82a3e..2076cdb3e 100644 --- a/graphics/libyuv/Makefile +++ b/graphics/libyuv/Makefile @@ -30,7 +30,9 @@ libyuv.tar.gz: $(Q) curl -L https://chromium.googlesource.com/libyuv/libyuv/+archive/refs/heads/$(CONFIG_LIBYUV_BRANCH).tar.gz -o libyuv.tar.gz $(Q) mkdir -p $(SRCDIR) $(Q) tar zxf libyuv.tar.gz --directory $(SRCDIR) +ifeq ($(CONFIG_LIBYUV_BRANCH),"stable") $(Q) patch -p0 < 0001-include-libyuv-fix-strict-prototype-warning.patch +endif # Download and unpack tarball if no git repo found ifeq ($(wildcard libyuv/.git),)