summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2020-11-27 05:16:37 -0500
committerAndrei Gherzan <andrei@gherzan.ro>2020-11-30 16:16:29 +0000
commit3a1fec22c0e0cf389e8ff70ebb310f1f3c282a29 (patch)
tree9de90a147d71221c1d7f491b1f4d5e949b811a2e /recipes-graphics
parent1da8814f8a1c81ea033ae3d1822ceb557dc1dcd1 (diff)
downloadmeta-raspberrypi-3a1fec22c0e0cf389e8ff70ebb310f1f3c282a29.tar.gz
userland: add knob for ALL_APPS
The userland sources include a bunch of sample applications. Add an "allapps" PACKAGECONFIG to allow the user to build the additional optional applications. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/userland/files/0022-all-host_applications-remove-non-existent-projects.patch30
-rw-r--r--recipes-graphics/userland/files/0023-hello_pi-optionally-build-wayland-specific-app.patch28
-rw-r--r--recipes-graphics/userland/userland_git.bb4
3 files changed, 62 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0022-all-host_applications-remove-non-existent-projects.patch b/recipes-graphics/userland/files/0022-all-host_applications-remove-non-existent-projects.patch
new file mode 100644
index 0000000..595eefb
--- /dev/null
+++ b/recipes-graphics/userland/files/0022-all-host_applications-remove-non-existent-projects.patch
@@ -0,0 +1,30 @@
1From 451e8458e45926e4e1c0433864ac4cf8b05d792b Mon Sep 17 00:00:00 2001
2From: Trevor Woerner <twoerner@gmail.com>
3Date: Fri, 27 Nov 2020 03:12:26 -0500
4Subject: [PATCH] all host_applications: remove non-existent projects
5
6The ALL_APPS symbol will optionally build an additional set of projects,
7however, several of them don't exist anymore. Remove them from the list of
8ALL_APPS.
9
10Upstream-status: submitted [https://github.com/raspberrypi/userland/pull/661]
11Signed-off-by: Trevor Woerner <twoerner@gmail.com>
12---
13 host_applications/linux/CMakeLists.txt | 4 ----
14 1 file changed, 4 deletions(-)
15
16diff --git a/host_applications/linux/CMakeLists.txt b/host_applications/linux/CMakeLists.txt
17index 928b637..554ae46 100644
18--- a/host_applications/linux/CMakeLists.txt
19+++ b/host_applications/linux/CMakeLists.txt
20@@ -14,10 +14,6 @@ add_subdirectory(apps/dtoverlay)
21 add_subdirectory(apps/dtmerge)
22
23 if(ALL_APPS)
24- add_subdirectory(apps/vcdbg)
25- add_subdirectory(libs/elftoolchain)
26- # add_subdirectory(apps/smct)
27- add_subdirectory(apps/edid_parser)
28 add_subdirectory(apps/hello_pi)
29 endif()
30
diff --git a/recipes-graphics/userland/files/0023-hello_pi-optionally-build-wayland-specific-app.patch b/recipes-graphics/userland/files/0023-hello_pi-optionally-build-wayland-specific-app.patch
new file mode 100644
index 0000000..642ee86
--- /dev/null
+++ b/recipes-graphics/userland/files/0023-hello_pi-optionally-build-wayland-specific-app.patch
@@ -0,0 +1,28 @@
1From 5f4324a0008c2e8e1f511432f98bf85c9fffd35c Mon Sep 17 00:00:00 2001
2From: Trevor Woerner <twoerner@gmail.com>
3Date: Fri, 27 Nov 2020 03:18:50 -0500
4Subject: [PATCH] hello_pi: optionally build wayland-specific app
5
6Only build the wayland-specific hello_pi app when building for wayland.
7
8Upstream-status: inappropriate [the wayland example is not part of upstream]
9Signed-off-by: Trevor Woerner <twoerner@gmail.com>
10---
11 host_applications/linux/apps/hello_pi/CMakeLists.txt | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/host_applications/linux/apps/hello_pi/CMakeLists.txt b/host_applications/linux/apps/hello_pi/CMakeLists.txt
15index 2849fad..7de3265 100644
16--- a/host_applications/linux/apps/hello_pi/CMakeLists.txt
17+++ b/host_applications/linux/apps/hello_pi/CMakeLists.txt
18@@ -25,7 +25,9 @@ add_subdirectory(hello_encode)
19 add_subdirectory(hello_jpeg)
20 add_subdirectory(hello_videocube)
21 add_subdirectory(hello_teapot)
22-add_subdirectory(hello_wayland)
23+if (BUILD_WAYLAND)
24+ add_subdirectory(hello_wayland)
25+endif()
26
27 if(BUILD_FONT)
28 set(VGFONT_SRCS libs/vgfont/font.c libs/vgfont/vgft.c libs/vgfont/graphics.c)
diff --git a/recipes-graphics/userland/userland_git.bb b/recipes-graphics/userland/userland_git.bb
index 1d9dc1e..32aa4a5 100644
--- a/recipes-graphics/userland/userland_git.bb
+++ b/recipes-graphics/userland/userland_git.bb
@@ -42,6 +42,8 @@ SRC_URI = "\
42 file://0019-libfdt-Undefine-__wordsize-if-already-defined.patch \ 42 file://0019-libfdt-Undefine-__wordsize-if-already-defined.patch \
43 file://0020-openmaxil-add-pkg-config-file.patch \ 43 file://0020-openmaxil-add-pkg-config-file.patch \
44 file://0021-cmake-Disable-format-overflow-warning-as-error.patch \ 44 file://0021-cmake-Disable-format-overflow-warning-as-error.patch \
45 file://0022-all-host_applications-remove-non-existent-projects.patch \
46 file://0023-hello_pi-optionally-build-wayland-specific-app.patch \
45" 47"
46 48
47SRC_URI_remove_toolchain-clang = "file://0021-cmake-Disable-format-overflow-warning-as-error.patch" 49SRC_URI_remove_toolchain-clang = "file://0021-cmake-Disable-format-overflow-warning-as-error.patch"
@@ -52,8 +54,10 @@ inherit cmake pkgconfig
52 54
53ASNEEDED = "" 55ASNEEDED = ""
54 56
57ALLAPPS = "${@bb.utils.contains('PACKAGECONFIG', 'allapps', '-DALL_APPS=true', '', d)}"
55EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed' \ 58EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed' \
56 -DVMCS_INSTALL_PREFIX=${exec_prefix} \ 59 -DVMCS_INSTALL_PREFIX=${exec_prefix} \
60 ${ALLAPPS} \
57" 61"
58 62
59EXTRA_OECMAKE_append_aarch64 = " -DARM64=ON " 63EXTRA_OECMAKE_append_aarch64 = " -DARM64=ON "