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,13 +0,0 @@
|
||||
-- BR cross-compilation
|
||||
local function getenv (name) return os_getenv(name) or '' end
|
||||
variables.LUA_INCDIR = getenv('STAGING_DIR') .. [[/usr/include]]
|
||||
variables.LUA_LIBDIR = getenv('STAGING_DIR') .. [[/usr/lib]]
|
||||
variables.CC = getenv('TARGET_CC')
|
||||
variables.LD = getenv('TARGET_CC')
|
||||
variables.CFLAGS = getenv('TARGET_CFLAGS')
|
||||
variables.LIBFLAG = [[-shared ]] .. getenv('TARGET_LDFLAGS')
|
||||
external_deps_dirs = { getenv('STAGING_DIR') .. [[/usr]] }
|
||||
gcc_rpath = false
|
||||
rocks_trees = { getenv('TARGET_DIR') .. [[/usr]] }
|
||||
wrap_bin_scripts = false
|
||||
deps_mode = [[none]]
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 eb20cd9814df05535d9aae98da532217c590fc07d48d90ca237e2a7cdcf284fe luarocks-3.3.1.tar.gz
|
||||
sha256 542ad0ee9b8ba582437ca7b4d0959c9b9432f25d2067f144d017188a7a84dd2f COPYING
|
||||
sha256 62ce5826f0eeeb760d884ea8330cd1552b5d432138b8bade0fa72f35badd02d0 luarocks-3.4.0.tar.gz
|
||||
sha256 542ad0ee9b8ba582437ca7b4d0959c9b9432f25d2067f144d017188a7a84dd2f COPYING
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LUAROCKS_VERSION = 3.3.1
|
||||
LUAROCKS_VERSION = 3.4.0
|
||||
LUAROCKS_SITE = http://luarocks.org/releases
|
||||
LUAROCKS_LICENSE = MIT
|
||||
LUAROCKS_LICENSE_FILES = COPYING
|
||||
@@ -12,11 +12,9 @@ LUAROCKS_LICENSE_FILES = COPYING
|
||||
HOST_LUAROCKS_DEPENDENCIES = host-luainterpreter
|
||||
|
||||
LUAROCKS_CONFIG_DIR = $(HOST_DIR)/etc
|
||||
LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/config-$(LUAINTERPRETER_ABIVER).lua
|
||||
LUAROCKS_CFLAGS = $(TARGET_CFLAGS) -fPIC
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_3),y)
|
||||
LUAROCKS_CFLAGS += -DLUA_COMPAT_5_2
|
||||
endif
|
||||
LUAROCKS_CONFIG_FILE_DEFAULT = $(LUAROCKS_CONFIG_DIR)/luarocks/config-$(LUAINTERPRETER_ABIVER).lua
|
||||
LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/config.lua
|
||||
HOST_LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/host-config.lua
|
||||
|
||||
define LUAROCKS_ADDON_EXTRACT
|
||||
mkdir $(@D)/src/luarocks/cmd/external
|
||||
@@ -33,28 +31,19 @@ define HOST_LUAROCKS_CONFIGURE_CMDS
|
||||
cd $(@D) && ./configure $(HOST_LUAROCKS_CONF_OPTS)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
||||
define LUAROCKS_CONFIGURE_INTERPRETER_LUAJIT
|
||||
echo "lua_interpreter = [[luajit]]" >> $(LUAROCKS_CONFIG_FILE)
|
||||
endef
|
||||
endif
|
||||
|
||||
define HOST_LUAROCKS_INSTALL_CMDS
|
||||
rm -f $(LUAROCKS_CONFIG_FILE)
|
||||
rm -f $(LUAROCKS_CONFIG_FILE_DEFAULT)
|
||||
$(MAKE1) -C $(@D) install
|
||||
cat $(HOST_LUAROCKS_PKGDIR)/luarocks-br-config.lua >> $(LUAROCKS_CONFIG_FILE)
|
||||
$(LUAROCKS_CONFIGURE_INTERPRETER_LUAJIT)
|
||||
cp $(LUAROCKS_CONFIG_FILE_DEFAULT) $(LUAROCKS_CONFIG_FILE)
|
||||
echo "-- BR cross-compilation" >> $(LUAROCKS_CONFIG_FILE)
|
||||
echo "gcc_rpath = false" >> $(LUAROCKS_CONFIG_FILE)
|
||||
echo "wrap_bin_scripts = false" >> $(LUAROCKS_CONFIG_FILE)
|
||||
cp $(LUAROCKS_CONFIG_FILE_DEFAULT) $(HOST_LUAROCKS_CONFIG_FILE)
|
||||
rm -f $(LUAROCKS_CONFIG_FILE_DEFAULT)
|
||||
endef
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
LUAROCKS_RUN_ENV = \
|
||||
LUA_PATH="$(HOST_DIR)/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua" \
|
||||
TARGET_CC="$(TARGET_CC)" \
|
||||
TARGET_CFLAGS="$(LUAROCKS_CFLAGS)" \
|
||||
TARGET_LDFLAGS="$(TARGET_LDFLAGS)"
|
||||
LUAROCKS_RUN_CMD = $(LUA_RUN) $(HOST_DIR)/bin/luarocks
|
||||
|
||||
define LUAROCKS_FINALIZE_TARGET
|
||||
rm -rf $(TARGET_DIR)/usr/lib/luarocks
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user