package/balena-engine: bump to version 20.10.12

Also:
- drop unused dependencies
- drop invalid tags
- drop the autogen step
- simplify kconfigs just to run hello-world

https://github.com/balena-os/balena-engine/blob/v20.10.12/CHANGELOG.md

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Reviewed-by: Christian Stewart <christian@paral.in>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
TIAN Yuanhao 2022-02-26 02:24:18 -08:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent ff6d4778c2
commit 046739df7e
3 changed files with 9 additions and 36 deletions

View File

@ -6,7 +6,6 @@ config BR2_PACKAGE_BALENA_ENGINE
depends on BR2_USE_MMU # util-linux
select BR2_PACKAGE_CGROUPFS_MOUNT if !BR2_PACKAGE_SYSTEMD # runtime
select BR2_PACKAGE_IPTABLES # runtime
select BR2_PACKAGE_SQLITE # runtime
select BR2_PACKAGE_UTIL_LINUX # runtime
select BR2_PACKAGE_UTIL_LINUX_BINARIES # runtime
select BR2_PACKAGE_UTIL_LINUX_MOUNT # runtime

View File

@ -1,3 +1,3 @@
# Locally computed
sha256 389282706562118608b6ac580e7beacd6a43f0bb3481c69fb1856bed9ac49b85 balena-engine-19.03.14.tar.gz
sha256 43f4c985b855a4f731a5cdac214f1adf6c4cc2021cbad3f93856009df246d61c balena-engine-20.10.12.tar.gz
sha256 7c87873291f289713ac5df48b1f2010eb6963752bbd6b530416ab99fc37914a8 LICENSE

View File

@ -4,34 +4,33 @@
#
################################################################################
BALENA_ENGINE_VERSION = 19.03.14
BALENA_ENGINE_VERSION = 20.10.12
BALENA_ENGINE_SITE = $(call github,balena-os,balena-engine,v$(BALENA_ENGINE_VERSION))
BALENA_ENGINE_LICENSE = Apache-2.0
BALENA_ENGINE_LICENSE_FILES = LICENSE
BALENA_ENGINE_DEPENDENCIES = host-pkgconf
BALENA_ENGINE_GOMOD = github.com/docker/docker
BALENA_ENGINE_LDFLAGS = \
-X github.com/docker/cli/cli/version.Version=N/A \
-X github.com/docker/cli/cli/version.GitCommit= \
-X github.com/docker/cli/cli/version.BuildTime= \
-X $(BALENA_ENGINE_GOMOD)/dockerversion.GitCommit= \
-X $(BALENA_ENGINE_GOMOD)/dockerversion.Version=$(BALENA_ENGINE_VERSION) \
-X github.com/containerd/containerd/version.Version=N/A \
-X github.com/docker/cli/cli/version.BuildTime= \
-X github.com/docker/cli/cli/version.GitCommit= \
-X github.com/docker/cli/cli/version.Version=N/A \
-X github.com/opencontainers/runc.version=N/A
BALENA_ENGINE_TAGS = \
cgo \
exclude_graphdriver_zfs \
autogen \
no_buildkit \
no_btrfs \
no_cri \
no_devmapper \
no_zfs \
exclude_disk_quota \
exclude_graphdriver_btrfs \
exclude_graphdriver_devicemapper
exclude_graphdriver_devicemapper \
exclude_graphdriver_zfs
BALENA_ENGINE_BUILD_TARGETS = cmd/balena-engine
@ -40,16 +39,6 @@ BALENA_ENGINE_DEPENDENCIES += systemd
BALENA_ENGINE_TAGS += journald
endif
define BALENA_ENGINE_RUN_AUTOGEN
cd $(@D) && \
VERSION=$(BALENA_ENGINE_VERSION) \
PKG_CONFIG=$(PKG_CONFIG_HOST_BINARY) \
$(TARGET_MAKE_ENV) \
$(SHELL) hack/make/.go-autogen
endef
BALENA_ENGINE_POST_CONFIGURE_HOOKS += BALENA_ENGINE_RUN_AUTOGEN
define BALENA_ENGINE_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/contrib/init/systemd/balena-engine.service \
$(TARGET_DIR)/usr/lib/systemd/system/balena-engine.service
@ -64,35 +53,20 @@ endef
define BALENA_ENGINE_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_POSIX_MQUEUE)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS)
$(call KCONFIG_ENABLE_OPT,CONFIG_MEMCG)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_SCHED)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_FREEZER)
$(call KCONFIG_ENABLE_OPT,CONFIG_CPUSETS)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_DEVICE)
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUP_CPUACCT)
$(call KCONFIG_ENABLE_OPT,CONFIG_NAMESPACES)
$(call KCONFIG_ENABLE_OPT,CONFIG_UTS_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_IPC_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_PID_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_NS)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED)
$(call KCONFIG_ENABLE_OPT,CONFIG_BRIDGE_NETFILTER)
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_CONNTRACK)
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XT_MATCH_IPVS)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_IPTABLES)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_FILTER)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_NAT)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_TARGET_MASQUERADE)
$(call KCONFIG_ENABLE_OPT,CONFIG_BRIDGE)
$(call KCONFIG_ENABLE_OPT,CONFIG_DUMMY)
$(call KCONFIG_ENABLE_OPT,CONFIG_MACVLAN)
$(call KCONFIG_ENABLE_OPT,CONFIG_VXLAN)
$(call KCONFIG_ENABLE_OPT,CONFIG_VETH)
$(call KCONFIG_ENABLE_OPT,CONFIG_OVERLAY_FS)
$(call KCONFIG_ENABLE_OPT,CONFIG_KEYS)
endef
define BALENA_ENGINE_INSTALL_SYMLINK