external/openembedded-layer: drop obsolete patch for v4l-utils

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2024-05-28 06:54:03 -07:00
parent 614c2510a9
commit 2e5eb0a18d
2 changed files with 0 additions and 52 deletions

View File

@@ -1,51 +0,0 @@
From 3c9366b04a0c1767ab40aef4abcf63208d146506 Mon Sep 17 00:00:00 2001
From: Matt Madison <matt@madison.systems>
Date: Sun, 11 Apr 2021 06:48:54 -0700
Subject: [PATCH 2/3] Replace stat/fstat calls with __xstat/__fxstat
The stat-family syscalls were reworked in
glibc 2.33, so make the libv4lconvert plugin
compatible with the older glibc used in L4T
containers.
Upstream-Status: Inappropriate [tegra platform-specific]
Signed-off-by: Matt Madison <matt@madison.systems>
---
lib/libv4lconvert/control/libv4lcontrol.c | 4 ++--
utils/media-ctl/libmediactl.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/libv4lconvert/control/libv4lcontrol.c b/lib/libv4lconvert/control/libv4lcontrol.c
index 67671937..9de715b1 100644
--- a/lib/libv4lconvert/control/libv4lcontrol.c
+++ b/lib/libv4lconvert/control/libv4lcontrol.c
@@ -370,10 +370,10 @@ static int v4lcontrol_get_usb_info(struct v4lcontrol_data *data,
"%s/sys/class/video4linux", sysfs_prefix);
/* Check for sysfs mounted before trying to search */
- if (stat(sysfs_name, &st) != 0)
+ if (__xstat(0, sysfs_name, &st) != 0)
return 0; /* Not found, sysfs not mounted? */
- if (fstat(data->fd, &st) || !S_ISCHR(st.st_mode))
+ if (__fxstat(0, data->fd, &st) || !S_ISCHR(st.st_mode))
return 0; /* Should never happen */
/* <Sigh> find ourselve in sysfs */
diff --git a/utils/media-ctl/libmediactl.c b/utils/media-ctl/libmediactl.c
index 64ac8cf1..c702da98 100644
--- a/utils/media-ctl/libmediactl.c
+++ b/utils/media-ctl/libmediactl.c
@@ -484,7 +484,7 @@ static int media_get_devname_sysfs(struct media_entity *entity)
} else {
sprintf(devname, "/dev/%s", p + 1);
}
- ret = stat(devname, &devstat);
+ ret = __xstat(0, devname, &devstat);
if (ret < 0)
return -errno;
--
2.34.1

View File

@@ -1,7 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append:tegra = " \
file://0001-Make-plugin-directory-relative-to-ORIGIN.patch \
file://0002-Replace-stat-fstat-calls-with-__xstat-__fxstat.patch \
file://0003-Update-conversion-defaults-to-match-NVIDIA-sources.patch \
"