mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-27 11:27:19 +00:00
* 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
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From 3cbef2195533f357c8a80c2840108662461273b7 Mon Sep 17 00:00:00 2001
|
|
From: Lionel Orry <lionel.orry@gmail.com>
|
|
Date: Wed, 27 Mar 2013 14:48:19 +0100
|
|
Subject: [PATCH 4/4] Do not run tests.
|
|
|
|
This patch is specific to cross-compiled environments and avoids running
|
|
the tests on the host. It is not meant to be applied upstream.
|
|
|
|
Signed-off-by: Lionel Orry <lionel.orry@gmail.com>
|
|
---
|
|
Makefile | 2 +-
|
|
tools/m2sh/Makefile | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 7dc4089..ca72630 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -16,7 +16,7 @@ TEST_SRC=$(wildcard tests/*_tests.c)
|
|
TESTS=$(patsubst %.c,%,${TEST_SRC})
|
|
MAKEOPTS=OPTFLAGS="${NOEXTCFLAGS} ${OPTFLAGS}" OPTLIBS="${OPTLIBS}" LIBS="${LIBS}" DESTDIR="${DESTDIR}" PREFIX="${PREFIX}"
|
|
|
|
-all: bin/mongrel2 tests m2sh procer
|
|
+all: bin/mongrel2 m2sh procer filters config_modules
|
|
|
|
dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
|
|
dev: all
|
|
diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile
|
|
index b50d8a0..334e4da 100644
|
|
--- a/tools/m2sh/Makefile
|
|
+++ b/tools/m2sh/Makefile
|
|
@@ -9,7 +9,7 @@ TESTS=$(patsubst %.c,%,${TEST_SRC})
|
|
LIB_SRC=$(filter-out src/m2sh.c,${SOURCES})
|
|
LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS})
|
|
|
|
-all: ../lemon/lemon tests build/m2sh
|
|
+all: ../lemon/lemon build/m2sh
|
|
|
|
dev: CFLAGS=-g -Wall -Wextra -Isrc -I../../src $(OPTFLAGS)
|
|
dev: all
|
|
--
|
|
1.8.1.4
|
|
|