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 59475C38142 for ; Wed, 1 Feb 2023 07:24:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CB312418F1; Wed, 1 Feb 2023 07:24:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org CB312418F1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HgOgscLtzoyy; Wed, 1 Feb 2023 07:24:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id AA8DE418EF; Wed, 1 Feb 2023 07:24:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org AA8DE418EF Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8DBC01BF59F for ; Wed, 1 Feb 2023 07:24:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 67EC381E62 for ; Wed, 1 Feb 2023 07:24:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 67EC381E62 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wl-oeR8b7MFZ for ; Wed, 1 Feb 2023 07:24:06 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id 7B92581E44 for ; Wed, 1 Feb 2023 07:24:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7B92581E44 Received: by busybox.osuosl.org (Postfix, from userid 4053) id 6992D82DF0; Wed, 1 Feb 2023 07:24:06 +0000 (UTC) From: Peter Korsgaard To: buildroot@buildroot.org Date: Wed, 1 Feb 2023 08:22:25 +0100 X-Git-Refname: refs/heads/master X-Git-Oldrev: 6f692c548904c5ae130f6e17e303ff4ad0b482b5 X-Git-Newrev: aff4317797c34c78747f4c6c5ee8d9a1bc0ae270 X-Patchwork-Hint: ignore Message-Id: <20230201072406.6992D82DF0@busybox.osuosl.org> Subject: [Buildroot] [git commit] package/fluent-bit: needs arch support and C++ for wasm 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=aff4317797c34c78747f4c6c5ee8d9a1bc0ae270 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master See: https://github.com/fluent/fluent-bit/tree/master/lib/wasm-micro-runtime-WAMR-1.1.1#supported-architectures-and-platforms MIPS & RISCV32 are mentioned in the supported list, but that seems to be wrong, so excluded those. Fixes: - http://autobuild.buildroot.org/results/dfb/dfb8f71d7e016cdfd3beb4b8196081898bd49ae2/build-end.log - http://autobuild.buildroot.org/results/ecf/ecfe7b67af68cd7f397a50360900cd9a7afc830e/build-end.log Signed-off-by: Thomas Devoogdt [Peter: Move arch dependency to _WASM_ARCH_SUPPORTS blind option, add help text, use normal style for prompt and fix indentation] Signed-off-by: Peter Korsgaard --- package/fluent-bit/Config.in | 21 +++++++++++++++++++++ package/fluent-bit/fluent-bit.mk | 6 ++++++ 2 files changed, 27 insertions(+) diff --git a/package/fluent-bit/Config.in b/package/fluent-bit/Config.in index 11ceb55d4f..6c2299e695 100644 --- a/package/fluent-bit/Config.in +++ b/package/fluent-bit/Config.in @@ -8,5 +8,26 @@ config BR2_PACKAGE_FLUENT_BIT https://github.com/fluent/fluent-bit +if BR2_PACKAGE_FLUENT_BIT + +config BR2_PACKAGE_FLUENT_BIT_WASM_ARCH_SUPPORTS + bool + # see lib/wasm-micro-runtime-WAMR-1.1.1/README.md#supported-architectures-and-platforms + default y if BR2_arc + default y if BR2_arm || BR2_armeb + default y if BR2_aarch64 || BR2_aarch64_be + default y if BR2_i386 || BR2_x86_64 + default y if BR2_RISCV_64 + default y if BR2_xtensa + +config BR2_PACKAGE_FLUENT_BIT_WASM + bool "wasm runtime support" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_FLUENT_BIT_WASM_ARCH_SUPPORTS + help + Support for WASM-based plugins. + +endif + comment "fluent-bit needs a glibc toolchain" depends on !BR2_TOOLCHAIN_USES_GLIBC diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk index c84042a0fa..6e9a33e02e 100644 --- a/package/fluent-bit/fluent-bit.mk +++ b/package/fluent-bit/fluent-bit.mk @@ -17,6 +17,12 @@ FLUENT_BIT_CONF_OPTS += \ -DFLB_CHUNK_TRACE=No \ -DFLB_BACKTRACE=No +ifeq ($(BR2_PACKAGE_FLUENT_BIT_WASM),y) +FLUENT_BIT_CONF_OPTS += -DFLB_WASM=Yes +else +FLUENT_BIT_CONF_OPTS += -DFLB_WASM=No +endif + ifeq ($(BR2_PACKAGE_LUAJIT),y) FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=Yes FLUENT_BIT_DEPENDENCIES += luajit _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot