Skip to contentSkip to conversation

widevine + arm64

PATCH Markus Volk 2 participants 2 messages May 19, 2023

lore
Share & tools
lore
#0 lore raw

Finally there's a libwidevinecdm.so achievable for arm64. To make it usable by chromium/kodi it is required to patch glibc:

From 85892fbc0d6f64f564f0d4c9514a7183ad8eb985 Mon Sep 17 00:00:00 2001
From: alex <[email protected]>
Date: Sun, 17 Jul 2022 12:16:20 +0200
Subject: [PATCH] HACK: Don't check GLIBC_ABI_DT_RELR support for ChromeOS libwidevinecdm.so

Required starting with glibc 2.36
---
elf/dl-version.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
elf/dl-version.c +0 -0
index cda0889209..058394f148 100644
@@ -373,7 +373,8 @@ _dl_check_map_versions (struct link_map *map, int verbose, int trace_mode)
	if (d->d_tag == DT_NEEDED)
	  {
	    const char *name = strtab + d->d_un.d_val;
-	    if (strncmp (name, "libc.so.", 8) == 0)
+	    if (strncmp (name, "libc.so.", 8) == 0 &&
+	        strstr (map->l_name, "libwidevinecdm.so") == NULL)
	      {
		_dl_exception_create
		  (&exception, DSO_FILENAME (map->l_name),
Signature · 3 lines
2.37.1

I have tested this to work on raspberrypi4-64. Is this something that should be supported in oe-core or should it be added via bbappend?
#1 lore raw
Quoted 1 line · Markus Volk via lists.openembedded.org

I have tested this to work on raspberrypi4-64. Is this something that should be supported in oe-core or should it be added via bbappend?

That’s pretty ugly. :)

I’m not sure I’d want to carry a patch like that in core, no.

Ross