Initial Commit
- initial default booting image
This commit is contained in:
68
package/rauc/Config.in
Normal file
68
package/rauc/Config.in
Normal file
@@ -0,0 +1,68 @@
|
||||
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_OPENSSL_FORCE_LIBOPENSSL # uses X509_PURPOSE_get_by_id
|
||||
# uses ENGINE_* API
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENGINES
|
||||
select BR2_PACKAGE_SQUASHFS # run-time dependency
|
||||
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.
|
||||
|
||||
Notice: The U-Boot bootloader support requires fw_getenv /
|
||||
fw_setenv from uboot-tools.
|
||||
|
||||
http://rauc.io/
|
||||
|
||||
if BR2_PACKAGE_RAUC
|
||||
|
||||
config BR2_PACKAGE_RAUC_DBUS
|
||||
bool "dbus support"
|
||||
select BR2_PACKAGE_DBUS
|
||||
help
|
||||
This option enables support for controlling rauc through
|
||||
D-Bus.
|
||||
|
||||
config BR2_PACKAGE_RAUC_GPT
|
||||
bool "GPT support"
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBS
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
|
||||
help
|
||||
This option enables support for GPT partition tables.
|
||||
|
||||
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.
|
||||
|
||||
if BR2_PACKAGE_RAUC_NETWORK
|
||||
|
||||
config BR2_PACKAGE_RAUC_STREAMING
|
||||
bool "streaming update support"
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
This option enables support for streaming update mode.
|
||||
|
||||
endif
|
||||
|
||||
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
package/rauc/Config.in.host
Normal file
10
package/rauc/Config.in.host
Normal 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/
|
||||
3
package/rauc/rauc.hash
Normal file
3
package/rauc/rauc.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 127a24cde208c65b837ae978c695a00730f1094ee8b6c7d48cf58ef846eae340 rauc-1.15.2.tar.xz
|
||||
sha256 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 COPYING
|
||||
79
package/rauc/rauc.mk
Normal file
79
package/rauc/rauc.mk
Normal file
@@ -0,0 +1,79 @@
|
||||
################################################################################
|
||||
#
|
||||
# rauc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RAUC_VERSION = 1.15.2
|
||||
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
|
||||
RAUC_CONF_OPTS += -Dtests=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RAUC_DBUS),y)
|
||||
RAUC_CONF_OPTS += -Dservice=true
|
||||
RAUC_DEPENDENCIES += dbus
|
||||
|
||||
# systemd service uses dbus interface
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
# configure uses pkg-config --variable=systemdsystemunitdir systemd
|
||||
RAUC_DEPENDENCIES += systemd
|
||||
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
|
||||
endif
|
||||
|
||||
else
|
||||
RAUC_CONF_OPTS += -Dservice=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RAUC_GPT),y)
|
||||
RAUC_CONF_OPTS += -Dgpt=enabled
|
||||
RAUC_DEPENDENCIES += util-linux-libs
|
||||
else
|
||||
RAUC_CONF_OPTS += -Dgpt=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RAUC_NETWORK),y)
|
||||
RAUC_CONF_OPTS += -Dnetwork=true
|
||||
RAUC_DEPENDENCIES += libcurl
|
||||
else
|
||||
RAUC_CONF_OPTS += -Dnetwork=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RAUC_JSON),y)
|
||||
RAUC_CONF_OPTS += -Djson=enabled
|
||||
RAUC_DEPENDENCIES += json-glib
|
||||
else
|
||||
RAUC_CONF_OPTS += -Djson=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RAUC_STREAMING),y)
|
||||
RAUC_CONF_OPTS += -Dstreaming=true
|
||||
RAUC_DEPENDENCIES += libnl
|
||||
else
|
||||
RAUC_CONF_OPTS += -Dstreaming=false
|
||||
endif
|
||||
|
||||
HOST_RAUC_DEPENDENCIES = \
|
||||
host-json-glib \
|
||||
host-pkgconf \
|
||||
host-openssl \
|
||||
host-libglib2 \
|
||||
host-squashfs \
|
||||
$(if $(BR2_PACKAGE_HOST_LIBP11),host-libp11)
|
||||
|
||||
HOST_RAUC_CONF_OPTS += \
|
||||
-Djson=enabled \
|
||||
-Dnetwork=false \
|
||||
-Dstreaming=false \
|
||||
-Dservice=false \
|
||||
-Dtests=false
|
||||
|
||||
$(eval $(meson-package))
|
||||
$(eval $(host-meson-package))
|
||||
Reference in New Issue
Block a user