* 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
85 lines
2.9 KiB
Diff
85 lines
2.9 KiB
Diff
From e3b47c1b84964c62b3e1fa782f1ffa4be0ae62f9 Mon Sep 17 00:00:00 2001
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
Date: Mon, 9 Mar 2020 13:01:14 +0100
|
|
Subject: [PATCH] vc4: add meson option to disable optional neon support
|
|
|
|
Not all toolchains are able to compile the runtime
|
|
optional vc4 neon support, so add an meson option
|
|
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 ++--
|
|
src/gallium/drivers/vc4/vc4_tiling.h | 4 ++--
|
|
3 files changed, 11 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
index a39596a6f19..0f6b6c62b55 100644
|
|
--- a/meson_options.txt
|
|
+++ b/meson_options.txt
|
|
@@ -124,6 +124,13 @@ option(
|
|
choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
|
|
description : 'enable gallium va frontend.',
|
|
)
|
|
+option(
|
|
+ 'gallium-vc4-neon',
|
|
+ type : 'combo',
|
|
+ value : 'auto',
|
|
+ choices : ['auto', 'disabled'],
|
|
+ description : 'enable gallium vc4 optional neon support.',
|
|
+)
|
|
option(
|
|
'va-libs-path',
|
|
type : 'string',
|
|
diff --git a/src/gallium/drivers/vc4/meson.build b/src/gallium/drivers/vc4/meson.build
|
|
index 5ce5af5f6b4..e3f7d8d62ae 100644
|
|
--- a/src/gallium/drivers/vc4/meson.build
|
|
+++ b/src/gallium/drivers/vc4/meson.build
|
|
@@ -84,7 +84,7 @@ files_libvc4 = files(
|
|
vc4_c_args = []
|
|
|
|
libvc4_neon = []
|
|
-if host_machine.cpu_family() == 'arm'
|
|
+if host_machine.cpu_family() == 'arm' and get_option('gallium-vc4-neon') != 'disabled'
|
|
libvc4_neon = static_library(
|
|
'vc4_neon',
|
|
'vc4_tiling_lt_neon.c',
|
|
@@ -93,7 +93,7 @@ if host_machine.cpu_family() == 'arm'
|
|
],
|
|
c_args : '-mfpu=neon',
|
|
)
|
|
- vc4_c_args += '-DUSE_ARM_ASM'
|
|
+ vc4_c_args += '-DVC4_TILING_LT_NEON'
|
|
endif
|
|
|
|
if dep_simpenrose.found()
|
|
diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h
|
|
index 66767e7f1f8..7446f1c3d0c 100644
|
|
--- a/src/gallium/drivers/vc4/vc4_tiling.h
|
|
+++ b/src/gallium/drivers/vc4/vc4_tiling.h
|
|
@@ -89,7 +89,7 @@ vc4_load_lt_image(void *dst, uint32_t dst_stride,
|
|
void *src, uint32_t src_stride,
|
|
int cpp, const struct pipe_box *box)
|
|
{
|
|
-#ifdef USE_ARM_ASM
|
|
+#ifdef VC4_TILING_LT_NEON
|
|
if (util_cpu_caps.has_neon) {
|
|
vc4_load_lt_image_neon(dst, dst_stride, src, src_stride,
|
|
cpp, box);
|
|
@@ -105,7 +105,7 @@ vc4_store_lt_image(void *dst, uint32_t dst_stride,
|
|
void *src, uint32_t src_stride,
|
|
int cpp, const struct pipe_box *box)
|
|
{
|
|
-#ifdef USE_ARM_ASM
|
|
+#ifdef VC4_TILING_LT_NEON
|
|
if (util_cpu_caps.has_neon) {
|
|
vc4_store_lt_image_neon(dst, dst_stride, src, src_stride,
|
|
cpp, box);
|
|
--
|
|
2.25.1
|
|
|