Skip to content

Commit b9d649e

Browse files
Gijs Peskensagherzan
authored andcommitted
Fix compilation of RPI-Userland on Whinlatter
Imports patch also used in Buildroot Signed-off-by: Gijs Peskens <[email protected]>
1 parent c769753 commit b9d649e

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From c2337c83c627dd94f9b673361dca6ffafca7f59b Mon Sep 17 00:00:00 2001
2+
From: Jonas Kvinge <[email protected]>
3+
Date: Sun, 6 Jul 2025 20:21:00 +0200
4+
Subject: [PATCH] Fix conflicting types build error
5+
6+
Upstream-Status: Pending
7+
Signed-off-by: Thomas Petazzoni <[email protected]>
8+
---
9+
interface/vchiq_arm/vchiq_lib.c | 2 +-
10+
interface/vmcs_host/vc_vchi_gpuserv.h | 2 +-
11+
2 files changed, 2 insertions(+), 2 deletions(-)
12+
13+
diff --git a/interface/vchiq_arm/vchiq_lib.c b/interface/vchiq_arm/vchiq_lib.c
14+
index 133d5ca..7a2dae5 100755
15+
--- a/interface/vchiq_arm/vchiq_lib.c
16+
+++ b/interface/vchiq_arm/vchiq_lib.c
17+
@@ -537,7 +537,7 @@ vchiq_bulk_receive_handle(VCHIQ_SERVICE_HANDLE_T handle,
18+
int size,
19+
void *userdata,
20+
VCHIQ_BULK_MODE_T mode,
21+
- int (*copy_pagelist)())
22+
+ int (*copy_pagelist)(char *vcptr, const struct pagelist_struct *pagelist))
23+
{
24+
VCHIQ_SERVICE_T *service = find_service_by_handle(handle);
25+
VCHIQ_QUEUE_BULK_TRANSFER_T args;
26+
diff --git a/interface/vmcs_host/vc_vchi_gpuserv.h b/interface/vmcs_host/vc_vchi_gpuserv.h
27+
index fc0bfee..ce6cb58 100755
28+
--- a/interface/vmcs_host/vc_vchi_gpuserv.h
29+
+++ b/interface/vmcs_host/vc_vchi_gpuserv.h
30+
@@ -58,7 +58,7 @@ struct sync_job_s {
31+
32+
struct gpu_callback_s {
33+
// callback to call when complete (can be NULL)
34+
- void (*func)();
35+
+ void (*func)(void*);
36+
void *cookie;
37+
};
38+
39+
--

recipes-graphics/userland/userland_git.bb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ COMPATIBLE_MACHINE = "^rpi$"
1313

1414
SRCBRANCH = "master"
1515
SRCFORK = "raspberrypi"
16-
SRCREV = "cc1ca18fb0689b01cc2ca2aa4b400dcee624a213"
16+
SRCREV = "a54a0dbb2b8dcf9bafdddfc9a9374fb51d97e976"
1717

1818
# Use the date of the above commit as the package version. Update this when
1919
# SRCREV is changed.
20-
PV = "20230419"
20+
PV = "20242312"
2121

2222
SRC_URI = "\
2323
git://github.com/${SRCFORK}/userland.git;protocol=https;branch=${SRCBRANCH} \
@@ -47,6 +47,7 @@ SRC_URI = "\
4747
file://0023-hello_pi-optionally-build-wayland-specific-app.patch \
4848
file://0024-userland-Sync-needed-defines-for-weston-build.patch \
4949
file://0025-CMakeLists.txt-.pc-respect-CMAKE_INSTALL_LIBDIR.patch \
50+
file://0026-fix_callback_types.patch \
5051
"
5152

5253
SRC_URI:remove:toolchain-clang = "file://0021-cmake-Disable-format-overflow-warning-as-error.patch"
@@ -57,8 +58,10 @@ ASNEEDED = ""
5758

5859
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed' \
5960
-DVMCS_INSTALL_PREFIX=${exec_prefix} \
61+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
6062
"
6163

64+
6265
EXTRA_OECMAKE:append:aarch64 = " -DARM64=ON "
6366

6467
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"

0 commit comments

Comments
 (0)