initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
config BR2_PACKAGE_RAUC
bool "rauc"
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
depends on BR2_USE_MMU # glib2
depends on BR2_USE_WCHAR # glib2
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_SQUASHFS # run-time dependency
select BR2_PACKAGE_UBOOT_TOOLS if BR2_TARGET_UBOOT # run-time dependency
select BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV if BR2_TARGET_UBOOT
help
RAUC is the Robust Auto-Update Controller developed by
Pengutronix. It supports updating embedded Linux
systems over the network or from disks and provides a
d-bus interface.
http://rauc.io/
if BR2_PACKAGE_RAUC
config BR2_PACKAGE_RAUC_NETWORK
bool "network support"
select BR2_PACKAGE_LIBCURL
help
This option enables support for updating firmware over
the network using libcurl.
config BR2_PACKAGE_RAUC_JSON
bool "JSON output support"
select BR2_PACKAGE_JSON_GLIB
help
This option enables support for providing output in
JSON format.
endif
comment "rauc needs a toolchain w/ wchar, threads"
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU
+10
View File
@@ -0,0 +1,10 @@
config BR2_PACKAGE_HOST_RAUC
bool "host rauc"
select BR2_PACKAGE_HOST_SQUASHFS # run-time dependency
help
RAUC is the Robust Auto-Update Controller developed by
Pengutronix. Enable this option to build the rauc
host tool which may be used to generate firmware
bundles that are handled by the target rauc service.
http://rauc.io/
+4
View File
@@ -0,0 +1,4 @@
# Locally calculated, after verifying against
# https://github.com/rauc/rauc/releases/download/v1.5.1/rauc-1.5.1.tar.xz.asc
sha256 d4ea009ce702bcb083d942398ccfedec959c6bbb7adc0fd77ae9314ce11d9d91 rauc-1.5.1.tar.xz
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
+54
View File
@@ -0,0 +1,54 @@
################################################################################
#
# rauc
#
################################################################################
RAUC_VERSION = 1.5.1
RAUC_SITE = https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)
RAUC_SOURCE = rauc-$(RAUC_VERSION).tar.xz
RAUC_LICENSE = LGPL-2.1
RAUC_LICENSE_FILES = COPYING
RAUC_CPE_ID_VENDOR = pengutronix
RAUC_DEPENDENCIES = host-pkgconf openssl libglib2 dbus
ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y)
RAUC_CONF_OPTS += --enable-network
RAUC_DEPENDENCIES += libcurl
else
RAUC_CONF_OPTS += --disable-network
endif
ifeq ($(BR2_PACKAGE_RAUC_JSON),y)
RAUC_CONF_OPTS += --enable-json
RAUC_DEPENDENCIES += json-glib
else
RAUC_CONF_OPTS += --disable-json
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
# configure uses pkg-config --variable=systemdsystemunitdir systemd
RAUC_DEPENDENCIES += systemd
endif
define RAUC_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
printf '[Install]\nWantedBy=multi-user.target\n' \
>$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf
endef
HOST_RAUC_DEPENDENCIES = \
host-pkgconf \
host-openssl \
host-libglib2 \
host-squashfs \
$(if $(BR2_PACKAGE_HOST_LIBP11),host-libp11)
HOST_RAUC_CONF_OPTS += \
--disable-network \
--disable-json \
--disable-service \
--without-dbuspolicydir \
--with-systemdunitdir=no
$(eval $(autotools-package))
$(eval $(host-autotools-package))