From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B766C27C79 for ; Tue, 11 Jun 2024 15:22:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3B6F440647; Tue, 11 Jun 2024 15:22:23 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id urSPRSlftUYy; Tue, 11 Jun 2024 15:22:22 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A4BA7406A1 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id A4BA7406A1; Tue, 11 Jun 2024 15:22:21 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DB89A1BF391 for ; Tue, 11 Jun 2024 15:22:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id C0F124060E for ; Tue, 11 Jun 2024 15:22:13 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id rgVN_hIatXaP for ; Tue, 11 Jun 2024 15:22:12 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::d2f; helo=mail-io1-xd2f.google.com; envelope-from=james.hilliard1@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 1F3F840600 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1F3F840600 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by smtp4.osuosl.org (Postfix) with ESMTPS id 1F3F840600 for ; Tue, 11 Jun 2024 15:22:11 +0000 (UTC) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7e238fa7b10so50499539f.0 for ; Tue, 11 Jun 2024 08:22:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718119331; x=1718724131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lWxnywAIrIyIaA/oSlnKAUNCF93YzGpX2zPu+djuCvg=; b=D9/7byu7Q5BTeCMOdgO4eXMv7xBTXK6R43XDqrjPYf2jtbJyFZBieAlHVrkbub7Xb/ 25sDnW93ES1YWL9eaW0tp5f6xI1wgxkJ5EqCu+gpcifs8os5sNtH+n4wtmlJLrBp1kcO R3m3C0v/+NcpgcVFt6p7/HsDqGnmaLZYs21rHsCANDtZNEfvmWBJ+6Nonx9UZKeX6CSC 6hswTSZvYi/I/siBkviwy5MvM/rpUleSBf3McCRi8MPKlWQRfCaG7TqMyME+tpfIdu/l OSdm9gFSTZapGX4rifHk/lLdx/IjtXxuhqGYSsjxgkAwJmZG1k5VhBYeEBIhvFAVpA97 ViOA== X-Gm-Message-State: AOJu0YxXSvJae0okxf8LKMfmuOlNOfPM7ReYkI+VyXt7nhWX1Q254fYt QtXWRKmWTo3YxkCWIPQjlA/npj+iJu/I7dZ0Qfd2iP7NAaxB0NRrtcjhlx5S X-Google-Smtp-Source: AGHT+IHGUPWS93hiYh9fI8c3uzi5qNd98YCNUJLXBsSAv9wz5V85qXhLDyuyEF7ixAsb7GeAZv6l5Q== X-Received: by 2002:a05:6602:15ce:b0:7eb:c8a4:7f4e with SMTP id ca18e2360f4ac-7ebc8a482cdmr82645739f.5.1718119330661; Tue, 11 Jun 2024 08:22:10 -0700 (PDT) Received: from james-x399.localdomain (97-118-179-167.hlrn.qwest.net. [97.118.179.167]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-7eb81f14c0dsm128268939f.28.2024.06.11.08.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:22:10 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Tue, 11 Jun 2024 09:22:02 -0600 Message-Id: <20240611152202.951202-4-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240611152202.951202-1-james.hilliard1@gmail.com> References: <20240611152202.951202-1-james.hilliard1@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718119331; x=1718724131; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lWxnywAIrIyIaA/oSlnKAUNCF93YzGpX2zPu+djuCvg=; b=Xt6tiglD2J26/zptMooo+QT3HTIthZ+37LYQpyVQd8VtwMRRtgLA8CkGlXSngPzEHD yqiVYiAY4xD/qRarxgT7fAbpAojrCJILBT8C024iswLHOXntzgbOofmb7R1ETFpDYnW7 i7MN05ob/bCw+RZTAnYNxS5CC7raV9fkRFji+yUbALU3h9UJp5aPyDa5sMpKxoRUJRqs 0Oq2FWhkASIHZKWMgWmVaFlzklLu/okEZH0QsrKA5SEWUz92RNMteHLjl0NQlT1vgNUs lacK1uQNuIPAoGc/wUygU/oItv0u9hlZYk/wBsVbinYsHvKrYN/dXF9MJ9D+Exx2LI+X GYMw== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Xt6tiglD Subject: [Buildroot] [PATCH v2 4/4] package/fwupd: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , James Hilliard , Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: James Hilliard --- package/Config.in | 1 + package/fwupd/Config.in | 19 ++++ package/fwupd/fwupd.hash | 3 + package/fwupd/fwupd.mk | 208 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 231 insertions(+) create mode 100644 package/fwupd/Config.in create mode 100644 package/fwupd/fwupd.hash create mode 100644 package/fwupd/fwupd.mk diff --git a/package/Config.in b/package/Config.in index 2be39f98c7..02ca6472d2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -519,6 +519,7 @@ endmenu source "package/fmtools/Config.in" source "package/freeipmi/Config.in" source "package/freescale-imx/Config.in" + source "package/fwupd/Config.in" source "package/fwupd-efi/Config.in" source "package/fxload/Config.in" source "package/gcnano-binaries/Config.in" diff --git a/package/fwupd/Config.in b/package/fwupd/Config.in new file mode 100644 index 0000000000..6a96358e5b --- /dev/null +++ b/package/fwupd/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_FWUPD + bool "fwupd" + depends on !BR2_STATIC_LIBS # libxmlb + depends on BR2_USE_WCHAR # libglib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 + depends on BR2_USE_MMU # libglib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBJCAT + select BR2_PACKAGE_LIBXMLB + select BR2_PACKAGE_ZLIB + help + Fwupd is a simple daemon to allow session software + to update device firmware on your local machine. + + https://fwupd.org/ + +comment "fwupd needs a toolchain w/ wchar, threads, dynamic library" + depends on BR2_USE_MMU + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS diff --git a/package/fwupd/fwupd.hash b/package/fwupd/fwupd.hash new file mode 100644 index 0000000000..8da9dc3c66 --- /dev/null +++ b/package/fwupd/fwupd.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 b86a2d7fe1b6cc0ac4f75f3351a78cb3c225880c9e20b932fa078ef472e9fcb2 fwupd-1.9.20.tar.xz +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING diff --git a/package/fwupd/fwupd.mk b/package/fwupd/fwupd.mk new file mode 100644 index 0000000000..b7497707f5 --- /dev/null +++ b/package/fwupd/fwupd.mk @@ -0,0 +1,208 @@ +################################################################################ +# +# fwupd +# +################################################################################ + +FWUPD_VERSION = 1.9.20 +FWUPD_SITE = https://github.com/fwupd/fwupd/releases/download/$(FWUPD_VERSION) +FWUPD_SOURCE = fwupd-$(FWUPD_VERSION).tar.xz +FWUPD_LICENSE = LGPL-2.1+ +FWUPD_LICENSE_FILES = COPYING +FWUPD_DEPENDENCIES = \ + host-pkgconf \ + libglib2 \ + libjcat \ + libxmlb \ + zlib + +FWUPD_CONF_OPTS = \ + -Dstatic_analysis=false \ + -Dconsolekit=disabled \ + -Dfirmware-packager=true \ + -Ddocs=disabled \ + -Dlvfs=true \ + -Dman=false \ + -Dgusb=disabled \ + -Dpassim=disabled \ + -Dp2p_policy=none \ + -Dcbor=disabled \ + -Dplugin_acpi_phat=enabled \ + -Dplugin_cfu=disabled \ + -Dplugin_ep963x=enabled \ + -Dplugin_fastboot=disabled \ + -Dplugin_logitech_bulkcontroller=disabled \ + -Dplugin_logitech_scribe=disabled \ + -Dplugin_logitech_tap=disabled \ + -Dplugin_pixart_rf=enabled \ + -Dplugin_tpm=disabled \ + -Dplugin_uefi_capsule=enabled \ + -Dplugin_uefi_capsule_splash=false \ + -Dplugin_nitrokey=enabled \ + -Dplugin_mtd=enabled \ + -Dplugin_intel_me=enabled \ + -Dplugin_upower=enabled \ + -Dplugin_powerd=enabled \ + -Dqubes=false \ + -Dsupported_build=enabled \ + -Dlaunchd=disabled \ + -Dtests=false \ + -Dmetainfo=true \ + -Dfish_completion=false \ + -Doffline=enabled \ + -Dcompat_cli=false \ + -Dthinklmi_compat=false \ + -Dpython="$(HOST_DIR)/bin/python3" + +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +FWUPD_DEPENDENCIES += gobject-introspection +FWUPD_CONF_OPTS += -Dintrospection=enabled +else +FWUPD_CONF_OPTS += -Dintrospection=disabled +endif + +ifeq ($(BR2_PACKAGE_LIBARCHIVE),y) +FWUPD_DEPENDENCIES += libarchive +FWUPD_CONF_OPTS += -Dlibarchive=enabled +else +FWUPD_CONF_OPTS += -Dlibarchive=disabled +endif + +ifeq ($(BR2_PACKAGE_LIBGUDEV),y) +FWUPD_DEPENDENCIES += libgudev +FWUPD_CONF_OPTS += \ + -Dgudev=enabled \ + -Dplugin_android_boot=enabled \ + -Dplugin_bcm57xx=enabled \ + -Dplugin_emmc=enabled \ + -Dplugin_gpio=enabled \ + -Dplugin_igsc=enabled \ + -Dplugin_kinetic_dp=enabled \ + -Dplugin_parade_lspcon=enabled \ + -Dplugin_realtek_mst=enabled \ + -Dplugin_synaptics_mst=enabled \ + -Dplugin_mediatek_scaler=enabled \ + -Dplugin_scsi=enabled \ + -Dplugin_nvme=enabled \ + -Dplugin_uf2=enabled +else +FWUPD_CONF_OPTS += \ + -Dgudev=disabled \ + -Dplugin_android_boot=disabled \ + -Dplugin_bcm57xx=disabled \ + -Dplugin_emmc=disabled \ + -Dplugin_gpio=disabled \ + -Dplugin_igsc=disabled \ + -Dplugin_kinetic_dp=disabled \ + -Dplugin_parade_lspcon=disabled \ + -Dplugin_realtek_mst=disabled \ + -Dplugin_synaptics_mst=disabled \ + -Dplugin_mediatek_scaler=disabled \ + -Dplugin_scsi=disabled \ + -Dplugin_nvme=disabled \ + -Dplugin_uf2=disabled +endif + +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y) +FWUPD_DEPENDENCIES += bluez5_utils +FWUPD_CONF_OPTS += -Dbluez=enabled +else +FWUPD_CONF_OPTS += -Dbluez=disabled +endif + +ifeq ($(BR2_PACKAGE_POLKIT),y) +FWUPD_DEPENDENCIES += polkit +FWUPD_CONF_OPTS += -Dpolkit=enabled +else +FWUPD_CONF_OPTS += -Dpolkit=disabled +endif + +ifeq ($(BR2_PACKAGE_GNUTLS),y) +FWUPD_DEPENDENCIES += gnutls +FWUPD_CONF_OPTS += -Dgnutls=enabled -Dplugin_uefi_pk=enabled +else +FWUPD_CONF_OPTS += -Dgnutls=disabled -Dplugin_uefi_pk=disabled +endif + +ifeq ($(BR2_PACKAGE_SQLITE),y) +FWUPD_DEPENDENCIES += sqlite +FWUPD_CONF_OPTS += -Dsqlite=enabled +else +FWUPD_CONF_OPTS += -Dsqlite=disabled +endif + +ifeq ($(BR2_PACKAGE_XZ),y) +FWUPD_DEPENDENCIES += xz +FWUPD_CONF_OPTS += -Dlzma=enabled +ifeq ($(BR2_i386)$(BR2_x86_64),y) +FWUPD_CONF_OPTS += -Dplugin_intel_spi=true +else +FWUPD_CONF_OPTS += -Dplugin_intel_spi=false +endif +else +FWUPD_CONF_OPTS += -Dlzma=disabled -Dplugin_intel_spi=false +endif + +ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU)$(BR2_PACKAGE_LIBGUDEV),yy) +FWUPD_DEPENDENCIES += libdrm libgudev +FWUPD_CONF_OPTS += -Dplugin_amdgpu=enabled +else +FWUPD_CONF_OPTS += -Dplugin_amdgpu=disabled +endif + +ifeq ($(BR2_i386)$(BR2_x86_64),y) +FWUPD_CONF_OPTS += -Dplugin_cpu=enabled -Dplugin_msr=enabled -Dhsi=enabled +else +FWUPD_CONF_OPTS += -Dplugin_cpu=disabled -Dplugin_msr=disabled -Dhsi=disabled +endif + +ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGUDEV),yy) +FWUPD_DEPENDENCIES += gnutls libgudev +FWUPD_CONF_OPTS += -Dplugin_synaptics_rmi=enabled +else +FWUPD_CONF_OPTS += -Dplugin_synaptics_rmi=disabled +endif + +ifeq ($(BR2_PACKAGE_LIBCURL),y) +FWUPD_DEPENDENCIES += libcurl +FWUPD_CONF_OPTS += -Dplugin_redfish=enabled -Dcurl=enabled +else +FWUPD_CONF_OPTS += -Dplugin_redfish=disabled -Dcurl=disabled +endif + +ifeq ($(BR2_PACKAGE_LIBGUDEV)$(BR2_PACKAGE_LIBMBIM)$(BR2_PACKAGE_LIBQMI)$(BR2_PACKAGE_MODEM_MANAGER),yyyy) +FWUPD_DEPENDENCIES += libgudev libmbim libqmi modem-manager +FWUPD_CONF_OPTS += -Dplugin_modem_manager=enabled +else +FWUPD_CONF_OPTS += -Dplugin_modem_manager=disabled +endif + +ifeq ($(BR2_PACKAGE_FLASHROM),y) +FWUPD_DEPENDENCIES += flashrom +FWUPD_CONF_OPTS += -Dplugin_flashrom=enabled +else +FWUPD_CONF_OPTS += -Dplugin_flashrom=disabled +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +FWUPD_DEPENDENCIES += systemd +FWUPD_CONF_OPTS += -Dsystemd=enabled -Delogind=enabled +else +FWUPD_CONF_OPTS += -Dsystemd=disabled -Delogind=disabled +endif + +ifeq ($(BR2_PACKAGE_FWUPD_EFI),y) +FWUPD_DEPENDENCIES += fwupd-efi +FWUPD_CONF_OPTS += -Defi_binary=true +else +FWUPD_CONF_OPTS += -Defi_binary=false +endif + +ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y) +FWUPD_DEPENDENCIES += bash-completion +FWUPD_CONF_OPTS += -Dbash_completion=true +else +FWUPD_CONF_OPTS += -Dbash_completion=false +endif + +$(eval $(meson-package)) -- 2.34.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot