package/mender: make xz optional
authorAdam Duskett <aduskett@gmail.com>
Thu, 1 Apr 2021 15:44:52 +0000 (08:44 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 3 Apr 2021 07:30:20 +0000 (09:30 +0200)
According to the README.md file, xz is optional.
  - Remove the dependency on the xz package.
  - If the xz package is not selected, add "nolzma" to MENDER_TAGS

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mender/Config.in
package/mender/mender.mk

index accee4676a5cf7db2d3336c4aeeecea640ada19f..5ac8bb1676b000fc47b990604fa5e9123a28cbcb 100644 (file)
@@ -4,7 +4,6 @@ config BR2_PACKAGE_MENDER
        depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_THREADS
        select BR2_PACKAGE_OPENSSL
-       select BR2_PACKAGE_XZ
        help
          Mender is an open source over-the-air (OTA) software updater
          for embedded Linux devices. Mender comprises a client
index 794dd4be8c32e3da21f17f77c3f86869e603f9a2..1ebd5a2e83366a141501c1a3f69722a8d4c8dd8c 100644 (file)
@@ -38,7 +38,7 @@ MENDER_LICENSE_FILES = \
        vendor/github.com/mattn/go-isatty/LICENSE \
        vendor/github.com/bmatsuo/lmdb-go/LICENSE.mdb.md
 
-MENDER_DEPENDENCIES = host-pkgconf openssl xz
+MENDER_DEPENDENCIES = host-pkgconf openssl
 
 MENDER_LDFLAGS = -X github.com/mendersoftware/mender/conf.Version=$(MENDER_VERSION)
 
@@ -81,6 +81,12 @@ endef
 
 MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_CONFIG_FILES
 
+ifeq ($(BR2_PACKAGE_XZ),y)
+MENDER_DEPENDENCIES += xz
+else
+MENDER_TAGS += nolzma
+endif
+
 ifeq ($(BR2_PACKAGE_DBUS),y)
 define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
        $(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \