Bump buildroot to 2020.11-rc1 (#985)
* Update buildroot-patches for 2020.11-rc1 buildroot * Update buildroot to 2020.11-rc1 Signed-off-by: Stefan Agner <stefan@agner.ch> * Don't rely on sfdisk --list-free output The --list-free (-F) argument does not allow machine readable mode. And it seems that the output format changes over time (different spacing, using size postfixes instead of raw blocks). Use sfdisk json output and calculate free partition space ourselfs. This works for 2.35 and 2.36 and is more robust since we rely on output which is meant for scripts to parse. * Migrate defconfigs for Buildroot 2020.11-rc1 In particular, rename BR2_TARGET_UBOOT_BOOT_SCRIPT(_SOURCE) to BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT(_SOURCE). * Rebase/remove systemd patches for systemd 246 * Drop apparmor/libapparmor from buildroot-external * hassos-persists: use /run as directory for lockfiles The U-Boot tools use /var/lock by default which is not created any more by systemd by default (it is under tmpfiles legacy.conf, which we no longer install). * Disable systemd-update-done.service The service is not suited for pure read-only systems. In particular the service needs to be able to write a file in /etc and /var. Remove the service. Note: This is a static service and cannot be removed using systemd-preset. * Disable apparmor.service for now The service loads all default profiles. Some might actually cause problems. E.g. the profile for ping seems not to match our setup for /etc/resolv.conf: [85503.634653] audit: type=1400 audit(1605286002.684:236): apparmor="DENIED" operation="open" profile="ping" name="/run/resolv.conf" pid=27585 comm="ping" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
From 25e20c2e288e1d482f479eca863bc4aaa374b782 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sun, 22 Apr 2018 15:58:38 +0200
|
||||
Subject: [PATCH] Fix musl build
|
||||
|
||||
Fix musl build when svga gallium driver is enabled.
|
||||
|
||||
In file included from vmw_fence.c:34:0:
|
||||
vmw_screen.h:100:4: error: unknown type name ‘dev_t’
|
||||
dev_t device;
|
||||
^~~~~
|
||||
|
||||
Downloaded from
|
||||
http://git.alpinelinux.org/cgit/aports/plain/main/mesa/musl-fixes.patch
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[Romain: rebase on 18.1]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/gallium/winsys/svga/drm/vmw_screen.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
|
||||
index f21cabb51f..20d03f8b53 100644
|
||||
--- a/src/gallium/winsys/svga/drm/vmw_screen.h
|
||||
+++ b/src/gallium/winsys/svga/drm/vmw_screen.h
|
||||
@@ -34,7 +34,7 @@
|
||||
#ifndef VMW_SCREEN_H_
|
||||
#define VMW_SCREEN_H_
|
||||
|
||||
-
|
||||
+#include <sys/stat.h>
|
||||
#include "pipe/p_compiler.h"
|
||||
#include "pipe/p_state.h"
|
||||
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -17,18 +17,20 @@ that they are not removed by Buildroot target-finalize logic.
|
||||
Based on the patch for autotools provided by Valentin Korenblit.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@smile.fr>
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[rebased for 20.02.0]
|
||||
---
|
||||
src/gallium/state_trackers/clover/meson.build | 2 +-
|
||||
src/gallium/frontends/clover/meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gallium/state_trackers/clover/meson.build b/src/gallium/state_trackers/clover/meson.build
|
||||
diff --git a/src/gallium/frontends/clover/meson.build b/src/gallium/frontends/clover/meson.build
|
||||
index 62ac5f5278d..ecdeb39669c 100644
|
||||
--- a/src/gallium/state_trackers/clover/meson.build
|
||||
+++ b/src/gallium/state_trackers/clover/meson.build
|
||||
@@ -49,7 +49,7 @@ libclllvm = static_library(
|
||||
include_directories : clover_incs,
|
||||
cpp_args : [
|
||||
cpp_vis_args,
|
||||
--- a/src/gallium/frontends/clover/meson.build
|
||||
+++ b/src/gallium/frontends/clover/meson.build
|
||||
@@ -63,7 +63,7 @@
|
||||
clover_cpp_args,
|
||||
clover_opencl_cpp_args,
|
||||
clover_spirv_cpp_args,
|
||||
- '-DLIBCLC_INCLUDEDIR="@0@/"'.format(dep_clc.get_pkgconfig_variable('includedir')),
|
||||
+ '-DLIBCLC_INCLUDEDIR="/usr/share"',
|
||||
'-DLIBCLC_LIBEXECDIR="@0@/"'.format(dep_clc.get_pkgconfig_variable('libexecdir')),
|
||||
@@ -1,52 +0,0 @@
|
||||
From 0e107f7bac8d84d8fb2bb5b83bfb4474348a82c1 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@smile.fr>
|
||||
Date: Wed, 17 Apr 2019 22:47:05 +0200
|
||||
Subject: [PATCH] meson: use wayland-scanner provided by wayland-scanner-path
|
||||
|
||||
When cross-compiling the .pc file might point to the wrong
|
||||
wayland-scanner binary (target rather than host) resulting in a
|
||||
non-executable and wrong scanner.
|
||||
First try by using the path provided by wayland-scanner-path,
|
||||
and if that fails fall back into pkg-config.
|
||||
|
||||
Based on the patch for autotools provided by Gustavo Zacarias.
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@smile.fr>
|
||||
---
|
||||
meson.build | 5 ++++-
|
||||
meson_options.txt | 6 ++++++
|
||||
2 files changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 6c4f1508855..ef0532b2cfb 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -1319,7 +1319,10 @@ endif
|
||||
|
||||
if with_platform_wayland
|
||||
dep_wl_scanner = dependency('wayland-scanner', native: true)
|
||||
- prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner'))
|
||||
+ prog_wl_scanner = get_option('wayland-scanner-path')
|
||||
+ if prog_wl_scanner == ''
|
||||
+ prog_wl_scanner = find_program(dep_wl_scanner.get_pkgconfig_variable('wayland_scanner'))
|
||||
+ endif
|
||||
if dep_wl_scanner.version().version_compare('>= 1.15')
|
||||
wl_scanner_arg = 'private-code'
|
||||
else
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
index ccf70659ff7..59ff8df8337 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -324,3 +324,9 @@ option(
|
||||
value : true,
|
||||
description : 'Enable direct rendering in GLX and EGL for DRI',
|
||||
)
|
||||
+option(
|
||||
+ 'wayland-scanner-path',
|
||||
+ type : 'string',
|
||||
+ value : '',
|
||||
+ description : 'Locations to wayland-scanner binary. Default: use path from pkg-config'
|
||||
+)
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -9,6 +9,8 @@ to force disabling it at compile time.
|
||||
|
||||
[Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4114]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
[rebased for 20.2.0]
|
||||
---
|
||||
meson_options.txt | 7 +++++++
|
||||
src/gallium/drivers/vc4/meson.build | 4 ++--
|
||||
@@ -19,9 +21,9 @@ diff --git a/meson_options.txt b/meson_options.txt
|
||||
index a39596a6f19..0f6b6c62b55 100644
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -117,6 +117,13 @@ option(
|
||||
choices : ['auto', 'true', 'false'],
|
||||
description : 'enable gallium va state tracker.',
|
||||
@@ -124,6 +124,13 @@ option(
|
||||
choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
|
||||
description : 'enable gallium va frontend.',
|
||||
)
|
||||
+option(
|
||||
+ 'gallium-vc4-neon',
|
||||
@@ -0,0 +1,40 @@
|
||||
From fdc8b5a205e2116408aeb9fd305e57f656e2e89d Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Sun, 9 Aug 2020 17:06:26 +0200
|
||||
Subject: [PATCH] src/util/rand_xor: Include stddef.h to fix build error
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes
|
||||
|
||||
In file included from ../src/util/rand_xor.c:29:
|
||||
output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35:
|
||||
error: unknown type name ‘size_t’
|
||||
extern int getrandom(void *__buf, size_t count, unsigned int flags)
|
||||
|
||||
seen with gcc version 8.3.0 (Buildroot 2020.02) and uClibc.
|
||||
|
||||
Patch sent upstream:
|
||||
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6248
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
src/util/rand_xor.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
|
||||
index 81b64f1ea71..fcb481487fa 100644
|
||||
--- a/src/util/rand_xor.c
|
||||
+++ b/src/util/rand_xor.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "detect_os.h"
|
||||
|
||||
#if !DETECT_OS_WINDOWS
|
||||
+#include <stddef.h>
|
||||
#if defined(HAVE_GETRANDOM)
|
||||
#include <sys/random.h>
|
||||
#endif
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
From 63ad4535df6a0a938e7391d73adcada05e730c89 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= <marek.olsak@amd.com>
|
||||
Date: Tue, 18 Feb 2020 16:12:23 -0500
|
||||
Subject: [PATCH] util: remove the dependency on kcmp.h
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes: f76cbc7901f7 "util: Add os_same_file_description helper"
|
||||
|
||||
Acked-by: Eric Engestrom <eric@engestrom.ch>
|
||||
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
|
||||
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
|
||||
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3860>
|
||||
|
||||
[ Upstream: https://cgit.freedesktop.org/mesa/mesa/commit/?id=f7bfb10c69dfe48a91e35523cb5ee641bdbf6988 ]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/util/os_file.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/util/os_file.c b/src/util/os_file.c
|
||||
index b502ff4..128fe87 100644
|
||||
--- a/src/util/os_file.c
|
||||
+++ b/src/util/os_file.c
|
||||
@@ -34,11 +34,12 @@ os_file_create_unique(const char *filename, int filemode)
|
||||
#if defined(__linux__)
|
||||
|
||||
#include <fcntl.h>
|
||||
-#include <linux/kcmp.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+/* copied from <linux/kcmp.h> */
|
||||
+#define KCMP_FILE 0
|
||||
|
||||
static ssize_t
|
||||
readN(int fd, char *buf, size_t len)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -106,7 +106,6 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_ETNAVIV
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
|
||||
select BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
help
|
||||
Mesa driver for Vivante GPUs.
|
||||
|
||||
@@ -119,6 +118,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
|
||||
# the toolchain having sync4 primitives, which is always a given
|
||||
# for arm/aarch64.
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_FREEDRENO
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
|
||||
help
|
||||
Mesa driver for Freedreno GPUs.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# From https://lists.freedesktop.org/archives/mesa-announce/2020-February/000570.html
|
||||
sha256 1da467e6ae2799a517e242462331eafd29ae77d9872f3a845df81f7c308e8fe4 mesa-19.3.4.tar.xz
|
||||
sha512 2bbb3dc8f1d839f11fe12cc959393cd69607fa6714b2166b80299e0559d2d3b0ac38ed4e15ac3e5f472264eb24536d1901d350f7409f3a7e00d6f4ccbb2312fb mesa-19.3.4.tar.xz
|
||||
# From https://lists.freedesktop.org/archives/mesa-announce/2020-October/000602.html
|
||||
sha256 d1a46d9a3f291bc0e0374600bdcb59844fa3eafaa50398e472a36fc65fd0244a mesa-20.2.1.tar.xz
|
||||
sha512 5d609359754db3e3679bffd5306c1f1d1cf46a2ea98428a9451fe0d99bbf73da863c5d94e6561712cd2012ad13615666cf3d712e54f379b34c091fead39d4795 mesa-20.2.1.tar.xz
|
||||
|
||||
# License
|
||||
sha256 d8d662974fc86e2e640362015e42de3fcc161d435a9f2111ecd8561412feca73 docs/license.html
|
||||
sha256 1361129baa4519b6ed27a1bf4aeee33a58b060bf7bb9b6ea415ecede04e35e46 docs/license.rst
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
################################################################################
|
||||
|
||||
# When updating the version, please also update mesa3d-headers
|
||||
MESA3D_VERSION = 19.3.4
|
||||
MESA3D_VERSION = 20.2.1
|
||||
MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
|
||||
MESA3D_SITE = https://mesa.freedesktop.org/archive
|
||||
MESA3D_LICENSE = MIT, SGI, Khronos
|
||||
MESA3D_LICENSE_FILES = docs/license.html
|
||||
MESA3D_LICENSE_FILES = docs/license.rst
|
||||
|
||||
MESA3D_INSTALL_STAGING = YES
|
||||
|
||||
@@ -25,8 +25,7 @@ MESA3D_DEPENDENCIES = \
|
||||
|
||||
MESA3D_CONF_OPTS = \
|
||||
-Dgallium-omx=disabled \
|
||||
-Dpower8=false \
|
||||
-Dvalgrind=false
|
||||
-Dpower8=disabled
|
||||
|
||||
# Codesourcery ARM 2014.05 fail to link libmesa_dri_drivers.so with --as-needed linker
|
||||
# flag due to a linker bug between binutils 2.24 and 2.25 (2.24.51.20140217).
|
||||
@@ -37,10 +36,10 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_LLVM),y)
|
||||
MESA3D_DEPENDENCIES += host-llvm llvm
|
||||
MESA3D_MESON_EXTRA_BINARIES += llvm-config='$(STAGING_DIR)/usr/bin/llvm-config'
|
||||
MESA3D_CONF_OPTS += -Dllvm=true
|
||||
MESA3D_CONF_OPTS += -Dllvm=enabled
|
||||
else
|
||||
# Avoid automatic search of llvm-config
|
||||
MESA3D_CONF_OPTS += -Dllvm=false
|
||||
MESA3D_CONF_OPTS += -Dllvm=disabled
|
||||
endif
|
||||
|
||||
# Disable opencl-icd: OpenCL lib will be named libOpenCL instead of
|
||||
@@ -65,9 +64,9 @@ ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
|
||||
# gallium-xlib : Gallium-xlib based GLX requires at least one gallium driver || Gallium-xlib based GLX requires softpipe or llvmpipe || gallium-xlib conflicts with any dri driver.
|
||||
MESA3D_CONF_OPTS += -Dglx=dri
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_XA),y)
|
||||
MESA3D_CONF_OPTS += -Dgallium-xa=true
|
||||
MESA3D_CONF_OPTS += -Dgallium-xa=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-xa=false
|
||||
MESA3D_CONF_OPTS += -Dgallium-xa=disabled
|
||||
endif
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
@@ -116,23 +115,23 @@ MESA3D_CONF_OPTS += \
|
||||
-Dgallium-extra-hud=false
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dshared-glapi=true \
|
||||
-Dshared-glapi=enabled \
|
||||
-Dgallium-drivers=$(subst $(space),$(comma),$(MESA3D_GALLIUM_DRIVERS-y)) \
|
||||
-Dgallium-extra-hud=true
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Ddri-drivers= -Ddri3=false
|
||||
-Ddri-drivers= -Ddri3=disabled
|
||||
else
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXSHMFENCE),y)
|
||||
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
||||
MESA3D_CONF_OPTS += -Ddri3=true
|
||||
MESA3D_CONF_OPTS += -Ddri3=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Ddri3=false
|
||||
MESA3D_CONF_OPTS += -Ddri3=disabled
|
||||
endif
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dshared-glapi=true \
|
||||
-Dshared-glapi=enabled \
|
||||
-Dglx-direct=true \
|
||||
-Ddri-drivers=$(subst $(space),$(comma),$(MESA3D_DRI_DRIVERS-y))
|
||||
endif
|
||||
@@ -143,7 +142,7 @@ MESA3D_CONF_OPTS += \
|
||||
else
|
||||
MESA3D_DEPENDENCIES += xlib_libxshmfence
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Ddri3=true \
|
||||
-Ddri3=enabled \
|
||||
-Dvulkan-drivers=$(subst $(space),$(comma),$(MESA3D_VULKAN_DRIVERS-y))
|
||||
endif
|
||||
|
||||
@@ -161,7 +160,7 @@ MESA3D_CONF_OPTS += -Dopengl=true
|
||||
|
||||
# libva and mesa3d have a circular dependency
|
||||
# we do not need libva support in mesa3d, therefore disable this option
|
||||
MESA3D_CONF_OPTS += -Dgallium-va=false
|
||||
MESA3D_CONF_OPTS += -Dgallium-va=disabled
|
||||
|
||||
# libGL is only provided for a full xorg stack
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_GLX),y)
|
||||
@@ -189,84 +188,75 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
||||
MESA3D_DEPENDENCIES += wayland wayland-protocols
|
||||
MESA3D_PLATFORMS += wayland
|
||||
MESA3D_CONF_OPTS += -Dwayland-scanner-path=$(HOST_DIR)/bin/wayland-scanner
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_V3D),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_IRIS),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI),y)
|
||||
MESA3D_PLATFORMS += drm
|
||||
endif
|
||||
MESA3D_PLATFORMS += surfaceless
|
||||
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dplatforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_GBM),y)
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgbm=true
|
||||
-Dgbm=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Dgbm=false
|
||||
-Dgbm=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
||||
MESA3D_PROVIDES += libegl
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Degl=true
|
||||
-Degl=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += \
|
||||
-Degl=false
|
||||
-Degl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_ES),y)
|
||||
MESA3D_PROVIDES += libgles
|
||||
MESA3D_CONF_OPTS += -Dgles1=true -Dgles2=true
|
||||
MESA3D_CONF_OPTS += -Dgles1=enabled -Dgles2=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgles1=false -Dgles2=false
|
||||
MESA3D_CONF_OPTS += -Dgles1=disabled -Dgles2=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_XVMC),y)
|
||||
MESA3D_DEPENDENCIES += xlib_libXv xlib_libXvMC
|
||||
MESA3D_CONF_OPTS += -Dgallium-xvmc=true
|
||||
MESA3D_CONF_OPTS += -Dgallium-xvmc=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-xvmc=false
|
||||
MESA3D_CONF_OPTS += -Dgallium-xvmc=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
||||
MESA3D_CONF_OPTS += -Dvalgrind=enabled
|
||||
MESA3D_DEPENDENCIES += valgrind
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dvalgrind=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=true
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=enabled
|
||||
MESA3D_DEPENDENCIES += libunwind
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=false
|
||||
MESA3D_CONF_OPTS += -Dlibunwind=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MESA3D_VDPAU),y)
|
||||
MESA3D_DEPENDENCIES += libvdpau
|
||||
MESA3D_CONF_OPTS += -Dgallium-vdpau=true
|
||||
MESA3D_CONF_OPTS += -Dgallium-vdpau=enabled
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dgallium-vdpau=false
|
||||
MESA3D_CONF_OPTS += -Dgallium-vdpau=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=true
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=enabled
|
||||
MESA3D_DEPENDENCIES += lm-sensors
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=false
|
||||
MESA3D_CONF_OPTS += -Dlmsensors=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
MESA3D_CONF_OPTS += -Dzstd=enabled
|
||||
MESA3D_DEPENDENCIES += zstd
|
||||
else
|
||||
MESA3D_CONF_OPTS += -Dzstd=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
|
||||
Reference in New Issue
Block a user