* 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.6 KiB
Diff
85 lines
2.6 KiB
Diff
From c7d89412884de2dbfa543720d185027377e62f21 Mon Sep 17 00:00:00 2001
|
|
From: Heiko Thiery <heiko.thiery@gmail.com>
|
|
Date: Fri, 5 Jun 2020 23:46:52 +0200
|
|
Subject: [PATCH] xf86drm.c: fix build failure
|
|
|
|
./xf86drm.c: In function 'drmNodeIsDRM':
|
|
../xf86drm.c:2825:7: error: "__FreeBSD__" is not defined [-Werror=undef]
|
|
#elif __FreeBSD__
|
|
^
|
|
../xf86drm.c: In function 'drmGetMinorNameForFD':
|
|
../xf86drm.c:2938:7: error: "__FreeBSD__" is not defined [-Werror=undef]
|
|
#elif __FreeBSD__
|
|
^
|
|
../xf86drm.c: In function 'drmParsePciBusInfo':
|
|
../xf86drm.c:3258:7: error: "__FreeBSD__" is not defined [-Werror=undef]
|
|
#elif __FreeBSD__
|
|
^
|
|
../xf86drm.c: In function 'drmParsePciDeviceInfo':
|
|
../xf86drm.c:3427:7: error: "__FreeBSD__" is not defined [-Werror=undef]
|
|
#elif __FreeBSD__
|
|
^
|
|
../xf86drm.c: In function 'drmGetDeviceNameFromFd2':
|
|
../xf86drm.c:4305:7: error: "__FreeBSD__" is not defined [-Werror=undef]
|
|
#elif __FreeBSD__
|
|
^
|
|
|
|
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
|
|
[A merge-request with this fix is opened at https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/75]
|
|
---
|
|
xf86drm.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/xf86drm.c b/xf86drm.c
|
|
index 07a18c44..50a6f092 100644
|
|
--- a/xf86drm.c
|
|
+++ b/xf86drm.c
|
|
@@ -2822,7 +2822,7 @@ static bool drmNodeIsDRM(int maj, int min)
|
|
snprintf(path, sizeof(path), "/sys/dev/char/%d:%d/device/drm",
|
|
maj, min);
|
|
return stat(path, &sbuf) == 0;
|
|
-#elif __FreeBSD__
|
|
+#elif defined(__FreeBSD__)
|
|
char name[SPECNAMELEN];
|
|
|
|
if (!devname_r(makedev(maj, min), S_IFCHR, name, sizeof(name)))
|
|
@@ -2935,7 +2935,7 @@ static char *drmGetMinorNameForFD(int fd, int type)
|
|
|
|
closedir(sysdir);
|
|
return NULL;
|
|
-#elif __FreeBSD__
|
|
+#elif defined(__FreeBSD__)
|
|
struct stat sbuf;
|
|
char dname[SPECNAMELEN];
|
|
const char *mname;
|
|
@@ -3255,7 +3255,7 @@ static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info)
|
|
info->func = pinfo.func;
|
|
|
|
return 0;
|
|
-#elif __FreeBSD__
|
|
+#elif defined(__FreeBSD__)
|
|
return get_sysctl_pci_bus_info(maj, min, info);
|
|
#else
|
|
#warning "Missing implementation of drmParsePciBusInfo"
|
|
@@ -3424,7 +3424,7 @@ static int drmParsePciDeviceInfo(int maj, int min,
|
|
device->subdevice_id = pinfo.subdevice_id;
|
|
|
|
return 0;
|
|
-#elif __FreeBSD__
|
|
+#elif defined(__FreeBSD__)
|
|
drmPciBusInfo info;
|
|
struct pci_conf_io pc;
|
|
struct pci_match_conf patterns[1];
|
|
@@ -4302,7 +4302,7 @@ drm_public char *drmGetDeviceNameFromFd2(int fd)
|
|
free(value);
|
|
|
|
return strdup(path);
|
|
-#elif __FreeBSD__
|
|
+#elif defined(__FreeBSD__)
|
|
return drmGetDeviceNameFromFd(fd);
|
|
#else
|
|
struct stat sbuf;
|
|
--
|
|
2.20.1
|
|
|