* [Buildroot] [PATCH 1/1] package/rpi-userland: add support for aarch64
@ 2022-11-01 9:30 Tim Gover
2022-11-22 22:30 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Tim Gover @ 2022-11-01 9:30 UTC (permalink / raw)
To: buildroot; +Cc: Mahyar Koshkouei, Tim Gover
Enable aarch64 support for rpi-userland to provide
vcmailbox and vcgencmd in 64bit builds. The are useful
for programming OTP and system debug.
The ARM64=ON parameter restricts the make targets
to only include those supported on 64-bit i.e. it
excludes the legacy Broadcom EGL drivers.
Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
---
package/rpi-userland/Config.in | 14 +++++++-------
package/rpi-userland/rpi-userland.mk | 6 ++++++
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in
index 342faf26e3..cfb472808b 100644
--- a/package/rpi-userland/Config.in
+++ b/package/rpi-userland/Config.in
@@ -1,13 +1,13 @@
config BR2_PACKAGE_RPI_USERLAND
bool "rpi-userland"
- depends on BR2_arm
+ depends on BR2_arm || BR2_aarch64
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
- select BR2_PACKAGE_HAS_LIBEGL
- select BR2_PACKAGE_HAS_LIBGLES
- select BR2_PACKAGE_HAS_LIBOPENVG
- select BR2_PACKAGE_HAS_LIBOPENMAX
+ select BR2_PACKAGE_HAS_LIBEGL if BR2_arm
+ select BR2_PACKAGE_HAS_LIBGLES if BR2_arm
+ select BR2_PACKAGE_HAS_LIBOPENVG if BR2_arm
+ select BR2_PACKAGE_HAS_LIBOPENMAX if BR2_arm
help
Raspberry Pi Userland contains the necessary library to use
the VideoCore driver.
@@ -18,7 +18,7 @@ config BR2_PACKAGE_RPI_USERLAND
https://github.com/raspberrypi/userland/
-if BR2_PACKAGE_RPI_USERLAND
+if BR2_PACKAGE_RPI_USERLAND && BR2_arm
config BR2_PACKAGE_PROVIDES_LIBEGL
default "rpi-userland"
@@ -40,6 +40,6 @@ config BR2_PACKAGE_RPI_USERLAND_HELLO
endif
comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library"
- depends on BR2_arm
+ depends on BR2_arm || BR2_arch64
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_STATIC_LIBS
diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
index 1204196e19..42c7e8190f 100644
--- a/package/rpi-userland/rpi-userland.mk
+++ b/package/rpi-userland/rpi-userland.mk
@@ -11,12 +11,18 @@ RPI_USERLAND_LICENSE_FILES = LICENCE
RPI_USERLAND_INSTALL_STAGING = YES
RPI_USERLAND_CONF_OPTS = -DVMCS_INSTALL_PREFIX=/usr
+ifeq ($(BR2_arm),y)
RPI_USERLAND_PROVIDES = libegl libgles libopenmax libopenvg
+endif
ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
RPI_USERLAND_DEPENDENCIES += libexecinfo
endif
+ifeq ($(BR2_aarch64),y)
+RPI_USERLAND_CONF_OPTS += -DARM64=ON
+endif
+
ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y)
RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/rpi-userland: add support for aarch64
2022-11-01 9:30 [Buildroot] [PATCH 1/1] package/rpi-userland: add support for aarch64 Tim Gover
@ 2022-11-22 22:30 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-22 22:30 UTC (permalink / raw)
To: Tim Gover; +Cc: Mahyar Koshkouei, buildroot
On Tue, 1 Nov 2022 09:30:07 +0000
Tim Gover <tim.gover@raspberrypi.com> wrote:
> Enable aarch64 support for rpi-userland to provide
> vcmailbox and vcgencmd in 64bit builds. The are useful
> for programming OTP and system debug.
>
> The ARM64=ON parameter restricts the make targets
> to only include those supported on 64-bit i.e. it
> excludes the legacy Broadcom EGL drivers.
>
> Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
> ---
> package/rpi-userland/Config.in | 14 +++++++-------
> package/rpi-userland/rpi-userland.mk | 6 ++++++
> 2 files changed, 13 insertions(+), 7 deletions(-)
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-22 22:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01 9:30 [Buildroot] [PATCH 1/1] package/rpi-userland: add support for aarch64 Tim Gover
2022-11-22 22:30 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.