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:
Stefan Agner
2020-11-13 18:25:44 +01:00
committed by GitHub
parent 25a0dd3082
commit a0871be6c0
4024 changed files with 68095 additions and 47900 deletions

View File

@@ -1,83 +0,0 @@
From aa3698d2eb38788b66b146faaa83ce4994c984e8 Mon Sep 17 00:00:00 2001
From: Grzegorz Blach <grzegorz@blach.pl>
Date: Fri, 20 Sep 2019 21:07:10 +0000
Subject: [PATCH] Fix cross-compilation
Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
Makefile | 24 ------------------------
setup.py | 21 ++++++++-------------
2 files changed, 8 insertions(+), 37 deletions(-)
delete mode 100644 Makefile
diff --git a/Makefile b/Makefile
deleted file mode 100644
index b8da8f5..0000000
--- a/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-.PHONY: clean lib
-
-SRC = lib
-BUILD = lib-built
-OBJECTS = $(BUILD)/ws2811.o $(BUILD)/rpihw.o $(BUILD)/pcm.o $(BUILD)/pwm.o $(BUILD)/dma.o $(BUILD)/mailbox.o
-LIB = libws2811.a
-
-all: $(BUILD) $(BUILD)/version.h $(BUILD)/$(LIB)
-
-$(BUILD):
- mkdir -p $(BUILD)
-
-$(BUILD)/version.h:
- cp version.h $(BUILD)/version.h
-
-$(OBJECTS): $(BUILD)/%.o : $(SRC)/%.c
- gcc $< -o $@ -c -g -O2 -Wall -Werror -fPIC
-
-$(BUILD)/$(LIB): $(OBJECTS)
- ar rc $@ $^
- ranlib $@
-
-clean:
- -rm -f $(OBJECTS) $(BUILD)/$(LIB) $(BUILD)/version.h
diff --git a/library/setup.py b/library/setup.py
index b6785ec..1639574 100755
--- a/setup.py
+++ b/setup.py
@@ -8,14 +8,6 @@ from setuptools import setup, find_packages, Extension
from setuptools.command.build_py import build_py
import subprocess
-class CustomInstallCommand(build_py):
- """Customized install to run library Makefile"""
- def run(self):
- print("Compiling ws281x library...")
- proc =subprocess.Popen(["make"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- print(proc.stderr.read())
- build_py.run(self)
-
setup(name = 'rpi_ws281x',
version = '4.2.2',
author = 'Jeremy Garff <jer@jers.net>, Phil Howard <phil@pimoroni.com>',
@@ -24,10 +16,13 @@ setup(name = 'rpi_ws281x',
long_description = open('README.rst').read() + "\n" + open('CHANGELOG.txt').read(),
license = 'MIT',
url = 'https://github.com/rpi-ws281x/rpi-ws281x-python/',
- cmdclass = {'build_py':CustomInstallCommand},
packages = ['rpi_ws281x'],
ext_modules = [Extension('_rpi_ws281x',
- sources=['rpi_ws281x_wrap.c'],
- include_dirs=['lib/'],
- library_dirs=['lib-built/'],
- libraries=['ws2811'])])
+ include_dirs=['.'],
+ sources=['rpi_ws281x_wrap.c',
+ 'lib/dma.c',
+ 'lib/mailbox.c',
+ 'lib/pcm.c',
+ 'lib/pwm.c',
+ 'lib/rpihw.c',
+ 'lib/ws2811.c'])])
--
2.23.0

View File

@@ -1,6 +1,6 @@
# md5, sha256 from https://pypi.org/pypi/rpi-ws281x/json
md5 17a714941043621e81f592e6a137dd92 rpi_ws281x-4.2.3.tar.gz
sha256 265a395410cc7199f779c4209ca3970b7211896b86dbaa4731bdc3569d2e595f rpi_ws281x-4.2.3.tar.gz
md5 8eb175e05905ee7a00bb5fd2f1b15e40 rpi_ws281x-4.2.4.tar.gz
sha256 7175e708d6085bc02a9d0b8227797d697e34fd00787030ae5f119fe2f4f90889 rpi_ws281x-4.2.4.tar.gz
# Locally computed sha256 checksums
sha256 7bbf6337c1eee7169579e6acd398f31ea274dfa3a1689ab7e654ca3585d5a8a9 LICENSE
sha256 7bbf6337c1eee7169579e6acd398f31ea274dfa3a1689ab7e654ca3585d5a8a9 lib/LICENSE
sha256 7bbf6337c1eee7169579e6acd398f31ea274dfa3a1689ab7e654ca3585d5a8a9 LICENSE
sha256 7bbf6337c1eee7169579e6acd398f31ea274dfa3a1689ab7e654ca3585d5a8a9 lib/LICENSE

View File

@@ -4,9 +4,9 @@
#
################################################################################
PYTHON_RPI_WS281X_VERSION = 4.2.3
PYTHON_RPI_WS281X_VERSION = 4.2.4
PYTHON_RPI_WS281X_SOURCE = rpi_ws281x-$(PYTHON_RPI_WS281X_VERSION).tar.gz
PYTHON_RPI_WS281X_SITE = https://files.pythonhosted.org/packages/03/6c/46fad1bace9d5917190fd76e1550ec6727010cff6d3e5818b8c3a5405ba3
PYTHON_RPI_WS281X_SITE = https://files.pythonhosted.org/packages/3b/99/0f74f2d303e03432d10b11dab240cb15afad1bc6ab9a1449c9bc08af2ee4
PYTHON_RPI_WS281X_SETUP_TYPE = setuptools
PYTHON_RPI_WS281X_LICENSE = MIT
PYTHON_RPI_WS281X_LICENSE_FILES = LICENSE lib/LICENSE