From patchwork Fri Jan 27 14:10:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732875 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KHj3rKNz1yhq for ; Sat, 28 Jan 2023 01:11:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B31CD41D62; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B31CD41D62 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 UMg3jiMTVA4i; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 4019041D59; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4019041D59 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AD2281BF39E for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7F6CD41D59 for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7F6CD41D59 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 xbmQJbbtCX4n for ; Fri, 27 Jan 2023 14:11:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org F0C3741D2D Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by smtp4.osuosl.org (Postfix) with ESMTPS id F0C3741D2D for ; Fri, 27 Jan 2023 14:11:01 +0000 (UTC) Received: by mail-io1-xd2c.google.com with SMTP id 203so1936141iou.13 for ; Fri, 27 Jan 2023 06:11:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GOl1SFancUWBmaUskg9qalpFSV6K1zn9VYSj3ymI/84=; b=Q3DVwV1kZP4dejnqIZlblt118yk/a/256aZSR+X1lTznO3mbJanFLr9auisq4JNdKK N1J1CDuSGgyX7AgolQdJzfYV2Ox7OnLbk69TqtJvWJQPniWJzYDyISPnWTpyJs3HBDDW Xk5TWIlqNtQt08AC2WZkGFP2Hgeqv/H5jgT1jlUBP46wKfjxQJogme2Skir3VbTXj8p8 TYVJjSdYXcJZrbXILKDwNYv2KJgJg8iTEnGtvozxcfzm6W9QN/PLQgB3ENA3YBqdulUq JNEx7OSUNhh8BnPYcSFxJChfOvgSyXMPSP3CXUcQKsRt8wXwB+wjAyPPWrgQedsUBdLU ZbHg== X-Gm-Message-State: AFqh2kop3rqo7cmP9LZhoUWYHgoqoRG5l1ZBTG3gfhcyJxFMp89Br80C bg32m6Xf91iZ1yqQ00yadB/Z7gbc8FQgJA== X-Google-Smtp-Source: AMrXdXuX91hX3kVXYlLkxulLnco7FlisnQpUY5adZcquBGpk+yJQjEVB2EvD13i94EMjQrdO548Enw== X-Received: by 2002:a5e:db06:0:b0:707:5e8d:6e62 with SMTP id q6-20020a5edb06000000b007075e8d6e62mr25042794iop.21.1674828660867; Fri, 27 Jan 2023 06:11:00 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:00 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:46 -0700 Message-Id: <20230127141058.2180747-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GOl1SFancUWBmaUskg9qalpFSV6K1zn9VYSj3ymI/84=; b=InsxK22i0ljJ9U3zY33dID31FFI6GKILcmWShjOx7NsxkE1r1U5I3FwOkFDs8MvuRi T72Bi0wSdVD0r/PUvPtIw+cRjEgEwqjJIm3OPWl4nFmjs1l4KAwyhp+NzySQLTVWP7m9 6xjBdJ9gAhyukdnOAUbynije2qbCLqo2ObMR8Q9IPdR3d4Cp95fqEh8fhJrGA5JzjlTg DQlb6iLTVT8FmumBvJytk9mriD1yylUqNXZUEm77MpacEnE4ejAw5AQeazpUuxSlH61k Rt+HfK6xeQz11zZNrG4KhO5QQZw3PP17Cww6Qqtkg91jBlWi/eYkNgIyXjQYPsDHndjt jqpQ== 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=20210112 header.b=InsxK22i Subject: [Buildroot] [PATCH v4 01/13] package/flatbuffers: build position independent code 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The upcoming tensorflow-lite package requires flatbuffers to be built with position independent code. Fixes: /home/buildroot/buildroot/output/per-package/tensorflow-lite/host/bin/../lib/gcc/aarch64-buildroot-linux-gnu/11.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: /home/buildroot/buildroot/output/per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libflatbuffers.a(util.cpp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN11flatbuffers11CharToUpperEc' which may bind externally can not be used when making a shared object; recompile with -fPIC Signed-off-by: James Hilliard --- package/flatbuffers/flatbuffers.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/flatbuffers/flatbuffers.mk b/package/flatbuffers/flatbuffers.mk index 9d286bf9e1..487d85ee1f 100644 --- a/package/flatbuffers/flatbuffers.mk +++ b/package/flatbuffers/flatbuffers.mk @@ -14,6 +14,7 @@ FLATBUFFERS_DEPENDENCIES = host-flatbuffers FLATBUFFERS_CONF_OPTS += \ -DCMAKE_CXX_FLAGS="-std=c++11" \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DFLATBUFFERS_BUILD_TESTS=OFF \ -DFLATBUFFERS_FLATC_EXECUTABLE=$(HOST_DIR)/bin/flatc From patchwork Fri Jan 27 14:10:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732876 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KHx4qRTz1yhq for ; Sat, 28 Jan 2023 01:11:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0917E417DF; Fri, 27 Jan 2023 14:11:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0917E417DF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QrJoabsXpFEW; Fri, 27 Jan 2023 14:11:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 35C0540A71; Fri, 27 Jan 2023 14:11:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 35C0540A71 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 13ED71BF39E for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E1FFC82FBE for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E1FFC82FBE 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 pxEUSO4Z4YDB for ; Fri, 27 Jan 2023 14:11:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A2E6782F3D Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp1.osuosl.org (Postfix) with ESMTPS id A2E6782F3D for ; Fri, 27 Jan 2023 14:11:02 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id e204so1955036iof.1 for ; Fri, 27 Jan 2023 06:11:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=0SspQugj4Bm7C6sWS8CsB68Q00Y6SdY7IpsJlRivU3w=; b=BU8/9OEy8P/EdyG9Qe1Z0S84wVSUsotncSERRmEv6+iFxbd1cNuYQj1heU1xXeYikB Fh08De7zn0znYeY1jSa5roq9yfPguDRiSUGCL/XgzECXH81fEAgx/dx23cinzFz77/GC bbrOEVLht5xd1d0eFzRAYxvspMNjG+4xgVFoYdiuAqkn5nbmyNGaCRH7yp//aFJE59qc ngV4NmqvoXbLCdqvgi+UAOTTEyYi/kpAjdhAYUB2qiaP41iF8yRRHHoalzp2p4FClkE/ JxuddjIEljTGlHCcyYHqjHmmE/tIOD4Nes0iqpbHq+VbyMxqXIteIDkj2cjksdY06TJz UrnA== X-Gm-Message-State: AFqh2koSyoFckCkWaVS/T4y7YZOTZMdWHVbpuX8yu48+tpwZOoPVjvHC iMtl224BOFuDNvlMBSwb8/UUvaY4HjrKqA== X-Google-Smtp-Source: AMrXdXvY8KaH+70neRkPkPQQBCFb3rWU95u3Hm3idN/HTzyyd4ZDugZTyf1yPwFpbKuV1SeELAUQVw== X-Received: by 2002:a6b:b4d2:0:b0:6df:e3ad:1e1c with SMTP id d201-20020a6bb4d2000000b006dfe3ad1e1cmr28019457iof.12.1674828661584; Fri, 27 Jan 2023 06:11:01 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:01 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:47 -0700 Message-Id: <20230127141058.2180747-2-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=0SspQugj4Bm7C6sWS8CsB68Q00Y6SdY7IpsJlRivU3w=; b=ZyAJ+w2NmNhfBw7AY+Y6kHzf1Ye6DOt787mZBH8g3kpuIZnCpCHnDi6zg9CQ4V0wB2 NtkiKdtc+z3amwgiy7OhxL9Chyrxzt6WzjMVkIHcLrbRx/t+7XppJbbZvXqdtIBwp4uN wKRxqg6eAFvthDZCcC2ILBRhrpXQaiE/lzEz9Tr3tE3D7E3V61pT5qjeYkxdY/R/4+oN B9mJtyO0f5krO1hWN7IXc/vFgbE/L69bFxuwC2ngotdrxCkPrxC3Gcjd6tuEm7L89cwb pdr2XgnpVnBZzJRlvufJyns8I/jrzSYsxV2SpK8n4CsUU5XQjDQZYXBInF1FAkWFqBeA FToQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ZyAJ+w2N Subject: [Buildroot] [PATCH v4 02/13] package/cpuinfo: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v2 -> v3: - move to libraries->hardware handling --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/cpuinfo/Config.in | 9 +++++++++ package/cpuinfo/cpuinfo.hash | 4 ++++ package/cpuinfo/cpuinfo.mk | 17 +++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/cpuinfo/Config.in create mode 100644 package/cpuinfo/cpuinfo.hash create mode 100644 package/cpuinfo/cpuinfo.mk diff --git a/DEVELOPERS b/DEVELOPERS index e8e0dffcd3..3fd5ea32bc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2701,6 +2701,9 @@ F: package/libvpx/ F: package/mesa3d-demos/ F: package/ti-gfx/ +N: Stefan Hager +F: package/cpuinfo/ + N: Stefan Ott F: package/unbound/ diff --git a/package/Config.in b/package/Config.in index 995dae2c57..5537699c86 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1637,6 +1637,7 @@ menu "Hardware handling" source "package/bcm2835/Config.in" source "package/c-periphery/Config.in" source "package/ccid/Config.in" + source "package/cpuinfo/Config.in" source "package/dtc/Config.in" source "package/gnu-efi/Config.in" source "package/hackrf/Config.in" diff --git a/package/cpuinfo/Config.in b/package/cpuinfo/Config.in new file mode 100644 index 0000000000..137f657d69 --- /dev/null +++ b/package/cpuinfo/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_CPUINFO + bool "cpuinfo" + depends on BR2_INSTALL_LIBSTDCPP + help + CPU INFOrmation library, cpuinfo is a library to detect + essential for performance optimization information about + host CPU. + + https://github.com/pytorch/cpuinfo diff --git a/package/cpuinfo/cpuinfo.hash b/package/cpuinfo/cpuinfo.hash new file mode 100644 index 0000000000..c3f70fa90f --- /dev/null +++ b/package/cpuinfo/cpuinfo.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 0936848904943381b2c01321101614776e43d583840ee0f3ceeea1e3fb7405f7 cpuinfo-de2fa78ebb431db98489e78603e4f77c1f6c5c57.tar.gz +# License files, locally calculated +sha256 8e7e60636c3aa0cb03571a1a841ce5697f9551ff92b3c426c2561613d15ade70 LICENSE diff --git a/package/cpuinfo/cpuinfo.mk b/package/cpuinfo/cpuinfo.mk new file mode 100644 index 0000000000..ab6a0269ec --- /dev/null +++ b/package/cpuinfo/cpuinfo.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# cpuinfo +# +################################################################################ + +CPUINFO_VERSION = de2fa78ebb431db98489e78603e4f77c1f6c5c57 +CPUINFO_SITE = $(call github,pytorch,cpuinfo,$(CPUINFO_VERSION)) +CPUINFO_LICENSE = BSD-2-Clause +CPUINFO_LICENSE_FILES = LICENSE +CPUINFO_INSTALL_STAGING = YES +CPUINFO_CONF_OPTS = \ + -DCPUINFO_BUILD_UNIT_TESTS=OFF \ + -DCPUINFO_BUILD_MOCK_TESTS=OFF \ + -DCPUINFO_BUILD_BENCHMARKS=OFF + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732877 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KJC2Z2cz1yhq for ; Sat, 28 Jan 2023 01:11:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 8C9B041814; Fri, 27 Jan 2023 14:11:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 8C9B041814 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id odioJjRvZTTn; Fri, 27 Jan 2023 14:11:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 74ED2408A5; Fri, 27 Jan 2023 14:11:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 74ED2408A5 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B0DD21BF39E for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 98ED6417DF for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 98ED6417DF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XveUoniLgK4H for ; Fri, 27 Jan 2023 14:11:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 56E03408A5 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by smtp2.osuosl.org (Postfix) with ESMTPS id 56E03408A5 for ; Fri, 27 Jan 2023 14:11:03 +0000 (UTC) Received: by mail-io1-xd2f.google.com with SMTP id c66so1938788iof.12 for ; Fri, 27 Jan 2023 06:11:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=d3qb+pxPf/Y+6T98sQQywvS5ACnuKYTUZhHhDXq7ezc=; b=rKHOYbfESB2XzE7naXVzqaDgDIG1U+paro8Oa0g3h2Q1nWFeppicGLDWJlUFFvRapt 6ogFjZK2RjPIT+iRxXwo8gUVQ8BMRT5smgmtU4I3yjIuDRVgdyNhLW2kwIZQInaCg+Nu g8fOyxqixBN0bykqQyI9UaCsutyjCVnxyL9H3SONYYFo2o7fzUUdW4QBpaSerMrRiprg DEXr0TWaXZmJZo/ytN/zq0OZ1RZpgbS4KYfiJGMHR55/T3wDNWBUaqdttQ3M1/cQBcid yN7zi/8hoZym5Brdbd4YS8vJ9whooyFRl1t8QyaoaCWrCAio3RXyZM1zNwcqF6cc0pLq lJDA== X-Gm-Message-State: AFqh2krR8Q71o8RiI3Y0NtLC+YtEC0PIKdADQNkaG9Uv7sn+hybLNfQU yQ7SsFHc+s7uesHXojpXklk7AJ/KKSsRRA== X-Google-Smtp-Source: AMrXdXsbIn41MA3K17l5BMtv3JVP+KoArWxRch9wR9Fv+sOZvwIVnFT8oR87UnWEZHRQgrwZAEIUMQ== X-Received: by 2002:a05:6602:1516:b0:707:67c0:43a6 with SMTP id g22-20020a056602151600b0070767c043a6mr25253266iow.5.1674828662214; Fri, 27 Jan 2023 06:11:02 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:01 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:48 -0700 Message-Id: <20230127141058.2180747-3-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=d3qb+pxPf/Y+6T98sQQywvS5ACnuKYTUZhHhDXq7ezc=; b=mWPAWijyTw1Qekp9XlcS2R6viWyPOZmOwyVadi0xJbF9J9SfkgEG7pfxFJY1asAsF3 AWjvICxumSupdZqfIuzzyE3aZGxA/7nF+BlewcoFJKQ/THXGuIJmACgRCJVXuC9v9ClP mHKsUHuagix11cYnIVBfXU3On3r8plEi7BILQsozoUYELzrvx59teQIhaj65KVQ5kZPQ /6iBatNTuETqePUMUeZke8qCSNBuybGAhizdyvbLjV+1zcsS2ZIMhdsn8CPvGKZIxSc/ vkOrGTbFDdSTqg8gfE2H7tbkK1Xk3Irw8WfPu9HcRnMJayTKB92rpIcE+CCPyIsgooRY vtnw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=mWPAWijy Subject: [Buildroot] [PATCH v4 03/13] package/ruy: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v2 -> v3: - add C++14 dependency --- DEVELOPERS | 1 + package/Config.in | 1 + package/ruy/Config.in | 16 ++++++++++++++++ package/ruy/ruy.hash | 4 ++++ package/ruy/ruy.mk | 18 ++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 package/ruy/Config.in create mode 100644 package/ruy/ruy.hash create mode 100644 package/ruy/ruy.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3fd5ea32bc..ba26d5f999 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2703,6 +2703,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/ruy/ N: Stefan Ott F: package/unbound/ diff --git a/package/Config.in b/package/Config.in index 5537699c86..29d55ef2b3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2110,6 +2110,7 @@ endif source "package/qhull/Config.in" source "package/qlibc/Config.in" source "package/riemann-c-client/Config.in" + source "package/ruy/Config.in" source "package/shapelib/Config.in" source "package/skalibs/Config.in" source "package/sphinxbase/Config.in" diff --git a/package/ruy/Config.in b/package/ruy/Config.in new file mode 100644 index 0000000000..c46f5c6cc9 --- /dev/null +++ b/package/ruy/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_RUY + bool "ruy" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 + select BR2_PACKAGE_CPUINFO + help + Ruy is a matrix multiplication library. Its focus is to cover + the matrix multiplication needs of neural network inference + engines. Its initial user has been TensorFlow Lite, where it + is used by default on the ARM CPU architecture. + + https://github.com/google/ruy + +comment "ruy needs a toolchain w/ C++14" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 diff --git a/package/ruy/ruy.hash b/package/ruy/ruy.hash new file mode 100644 index 0000000000..98266b5881 --- /dev/null +++ b/package/ruy/ruy.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 4da8572946007603378c5d0280f48c5b77f4d38763209f5306b57c7513d9a82e ruy-3168a5c8f4c447fd8cea94078121ee2e2cd87df0.tar.gz +# License files, locally calculated +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/ruy/ruy.mk b/package/ruy/ruy.mk new file mode 100644 index 0000000000..ceeea8cd58 --- /dev/null +++ b/package/ruy/ruy.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# ruy +# +################################################################################ + +RUY_VERSION = 3168a5c8f4c447fd8cea94078121ee2e2cd87df0 +RUY_SITE = $(call github,google,ruy,$(RUY_VERSION)) +RUY_LICENSE = Apache-2.0 +RUY_LICENSE_FILES = LICENSE +RUY_INSTALL_STAGING = YES +RUY_DEPENDENCIES = cpuinfo +RUY_CONF_OPTS = \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DRUY_FIND_CPUINFO=ON \ + -DRUY_MINIMAL_BUILD=ON + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732878 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KJS2g58z1yhq for ; Sat, 28 Jan 2023 01:11:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id AE07D41824; Fri, 27 Jan 2023 14:11:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org AE07D41824 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8XDdd9ZMdLf; Fri, 27 Jan 2023 14:11:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id D552B41826; Fri, 27 Jan 2023 14:11:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org D552B41826 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C7E631BF39E for ; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 4E15F82FBE for ; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4E15F82FBE 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 fJgCu42ItawU for ; Fri, 27 Jan 2023 14:11:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0C3E182F4A Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0C3E182F4A for ; Fri, 27 Jan 2023 14:11:03 +0000 (UTC) Received: by mail-io1-xd2c.google.com with SMTP id s26so1940919ioa.11 for ; Fri, 27 Jan 2023 06:11:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=HxiIk5b5RsOhHX2NxJcDXQsBEfCS6JaLqGGmfdhrJtY=; b=fVk8E6VHaBetI9L9m6MJ3O+DWxL+6pCCSdkoM987UN26kPCrIGoNqQwZlM9eeETcVs tD1meawXVto5AwQieshnT3nLj4rbQzZQ25HmUSlhIN/2NYwRHfFqMhgnbPQLHx5zrvNC zY6mBJOr1tp5UUN6z8Hl9NFjldAoI99yfg+bhZMeW8KfO1QJMsMU+WD99qTs5OaNGIrp G7QU1a6VhyCi0N6mucov9tlQBo1meYi/LzFryvJpXING/fZQHKFf7bkB+v1rZC2ECq40 bP867C5bLV/MyTsFA5mSp8JMhSaFPJqiR/hyV/zM+NbZwcn0/YawvSqc9126V5T68Zgj AXCg== X-Gm-Message-State: AFqh2ko1wNE9kkbpRzDZ5UbdE2XRi0XaskNsvBxUM+hThm4RSis4U7/u LAoTrN0/6UnPquHbZUGfpNc8ICPwSByo1Q== X-Google-Smtp-Source: AMrXdXsiqinZ8xJiZk4JqD/JZWEaHIxOoOTGzDdFYzXwPhRfT7+Dg9hLjngEUk4n3oZ3jT2O8hgKhA== X-Received: by 2002:a6b:3f06:0:b0:704:dbc5:1de4 with SMTP id m6-20020a6b3f06000000b00704dbc51de4mr26736744ioa.21.1674828662915; Fri, 27 Jan 2023 06:11:02 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:02 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:49 -0700 Message-Id: <20230127141058.2180747-4-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=HxiIk5b5RsOhHX2NxJcDXQsBEfCS6JaLqGGmfdhrJtY=; b=d+CKyie0lcePY1mVifXM9oBJB59qPFwPMbE0GT5hEEFCTDnW5kbo9c1tPHQG9JEu8v nrC6Xk5keGa757cHwaRagH5rhmo+T0zXrUNCbE7VMk/rMW/+1xVprMo+S1D6WbtHUYLd 9rz8R5m9xTo2XpvSmfUcIck5GmDHdtjL0IeKXgUPsYfp/6hAVSrvAiNhPHyMbjItM/lQ gwyD2VKNVkg+Ia7G6+b6Q8R+YZJx18BYaY02t9q/NGhHaT6ZnZNYskVJxxxLPD2ko+pw 7j3B7wS2Unw+4NjjjGcaO70rgprkQhZR0Mhw1dFKTVoorhW2YqzaYYzZPUq5n62ECXyp U8hQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=d+CKyie0 Subject: [Buildroot] [PATCH v4 04/13] package/gemmlowp: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v2 -> v3: - add C++11 dependency --- DEVELOPERS | 1 + package/Config.in | 1 + package/gemmlowp/Config.in | 12 ++++++++++++ package/gemmlowp/gemmlowp.hash | 4 ++++ package/gemmlowp/gemmlowp.mk | 15 +++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/gemmlowp/Config.in create mode 100644 package/gemmlowp/gemmlowp.hash create mode 100644 package/gemmlowp/gemmlowp.mk diff --git a/DEVELOPERS b/DEVELOPERS index ba26d5f999..f48ea66660 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2703,6 +2703,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/gemmlowp/ F: package/ruy/ N: Stefan Ott diff --git a/package/Config.in b/package/Config.in index 29d55ef2b3..8f78080963 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2009,6 +2009,7 @@ menu "Other" source "package/flatcc/Config.in" source "package/gconf/Config.in" source "package/gdal/Config.in" + source "package/gemmlowp/Config.in" source "package/gflags/Config.in" source "package/gli/Config.in" source "package/glibmm/Config.in" diff --git a/package/gemmlowp/Config.in b/package/gemmlowp/Config.in new file mode 100644 index 0000000000..379450d1b0 --- /dev/null +++ b/package/gemmlowp/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_GEMMLOWP + bool "gemmlowp" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + Low-precision matrix multiplication. + + https://github.com/google/gemmlowp + +comment "gemmlowp needs a toolchain w/ C++11" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 diff --git a/package/gemmlowp/gemmlowp.hash b/package/gemmlowp/gemmlowp.hash new file mode 100644 index 0000000000..7c56a18bb6 --- /dev/null +++ b/package/gemmlowp/gemmlowp.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 cc8a22b6f071c3781e6b4b72654c89b1cdc198e72ebadebb17638eac205344c1 gemmlowp-08e4bb339e34017a0835269d4a37c4ea04d15a69.tar.gz +# License files, locally calculated +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/gemmlowp/gemmlowp.mk b/package/gemmlowp/gemmlowp.mk new file mode 100644 index 0000000000..1a36fc48f7 --- /dev/null +++ b/package/gemmlowp/gemmlowp.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# gemmlowp +# +################################################################################ + +GEMMLOWP_VERSION = 08e4bb339e34017a0835269d4a37c4ea04d15a69 +GEMMLOWP_SITE = $(call github,google,gemmlowp,$(GEMMLOWP_VERSION)) +GEMMLOWP_LICENSE = Apache-2.0 +GEMMLOWP_LICENSE_FILES = LICENSE +GEMMLOWP_INSTALL_STAGING = YES +GEMMLOWP_INSTALL_TARGET = NO +GEMMLOWP_SUBDIR = contrib + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732879 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KJl3V7jz1yhq for ; Sat, 28 Jan 2023 01:12:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8D9EA61296; Fri, 27 Jan 2023 14:12:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8D9EA61296 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KWvTLKDgHHjr; Fri, 27 Jan 2023 14:12:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id D34C5611F4; Fri, 27 Jan 2023 14:12:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D34C5611F4 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 15FEF1BF39E for ; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E3D346129D for ; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E3D346129D X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oh9ADduiE2Gi for ; Fri, 27 Jan 2023 14:11:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org AB60160E5C Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by smtp3.osuosl.org (Postfix) with ESMTPS id AB60160E5C for ; Fri, 27 Jan 2023 14:11:04 +0000 (UTC) Received: by mail-io1-xd33.google.com with SMTP id y69so1950605iof.3 for ; Fri, 27 Jan 2023 06:11:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=r3u/8RbCXRmpx/Qmh2fzWXIPZParsUCqtk6wX+kbSgM=; b=IXyf/RtdBEemjqeg8kKatWLJl445edh2OutR5+mDSOPxHQj+1PDChlsfRc+xpQfEdL +WJs8C8GjS+RUHuKXUEDDX8e5lt+FOM3ys5SE9gdjhpcUQaACTFvnMsNOj0CVCztJ+tD qDhAozxTFREPJqoLNxeiS2L1pnBkvqVi2vc30J8QZbju4JGghb4tLarVCjqc8yM6MaEe oOAFUwJ5eWGH/4G/BVvY8wvpn7hELi4HGBRZQN1xhBkS6djo8vCTl5VLjZadDpC6bXq+ TKWUVVcQbfMK1hbbiNzGeEXeh0ztb6u4TSv6K0t1uf2ei0XH1ZswDXcPjvGPxHWxATQn zzQg== X-Gm-Message-State: AO0yUKU8OZCWEEWjGZteQfXqTguA5yfg7Q9lJZXz9I6xAIm3oDqEmeYm Tdx7IwmuHfDkLh2KwCACno6ruS4u3HbKJw== X-Google-Smtp-Source: AK7set8VZYLpEzbXxZHqnlKCyDJd3ALIiUyvhEWxwdxTVbI8bFBl9HDlMO4nCX/MOmkGbK3RKLmkMQ== X-Received: by 2002:a05:6602:3417:b0:6e0:7dd:5976 with SMTP id n23-20020a056602341700b006e007dd5976mr4984532ioz.12.1674828663627; Fri, 27 Jan 2023 06:11:03 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:03 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:50 -0700 Message-Id: <20230127141058.2180747-5-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=r3u/8RbCXRmpx/Qmh2fzWXIPZParsUCqtk6wX+kbSgM=; b=igrK1FwB4KNzPUBrBGpvTmtbu5qHU8JGVxVrnWCKCeoJc0ej35g6Yw2qsgSLEgvKoK RfVGy+dKOjUkcjfES4sjHaF6f455NRSWLz6TiOf6TKnPGCZDpLwiOuwZCCthgTbNqFOM Y1LHYoevp4dXMJvCDz/yxJeJIVXcBsQrQV6gUhRq52s0V1EeBhGuV5NEtgjw5lf4kZGv S4LKWI4O/ckVaIjbFZxxwjhqAm4MATD8gBR52P3lc+KXBFBoYU+uJwX7MosFOGhXRTB7 ghNmH3zrCClH+G5C2iBzi5UdhNq4OTHSVHwq/llA2Wvv1NVPqrE06QUKKai4GFDj/ulG AVNA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=igrK1FwB Subject: [Buildroot] [PATCH v4 05/13] package/neon-2-sse: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Tested-by: Stefan Hager Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/neon-2-sse/Config.in | 9 +++++++++ package/neon-2-sse/neon-2-sse.hash | 4 ++++ package/neon-2-sse/neon-2-sse.mk | 14 ++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 package/neon-2-sse/Config.in create mode 100644 package/neon-2-sse/neon-2-sse.hash create mode 100644 package/neon-2-sse/neon-2-sse.mk diff --git a/DEVELOPERS b/DEVELOPERS index f48ea66660..a711f9f1ee 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2704,6 +2704,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ F: package/gemmlowp/ +F: package/neon-2-sse/ F: package/ruy/ N: Stefan Ott diff --git a/package/Config.in b/package/Config.in index 8f78080963..6377ddd2e5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2101,6 +2101,7 @@ endif source "package/msgpack/Config.in" source "package/musl-compat-headers/Config.in" source "package/musl-fts/Config.in" + source "package/neon-2-sse/Config.in" source "package/openblas/Config.in" source "package/orc/Config.in" source "package/p11-kit/Config.in" diff --git a/package/neon-2-sse/Config.in b/package/neon-2-sse/Config.in new file mode 100644 index 0000000000..25613c5ec4 --- /dev/null +++ b/package/neon-2-sse/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_NEON_2_SSE + bool "neon-2-sse" + help + The platform independent header allowing to compile any + C/C++ code containing ARM NEON intrinsic functions for + x86 target systems using SIMD up to SSE4 intrinsic + functions. + + https://github.com/intel/ARM_NEON_2_x86_SSE diff --git a/package/neon-2-sse/neon-2-sse.hash b/package/neon-2-sse/neon-2-sse.hash new file mode 100644 index 0000000000..ded20d58f5 --- /dev/null +++ b/package/neon-2-sse/neon-2-sse.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 019fbc7ec25860070a1d90e12686fc160cfb33e22aa063c80f52b363f1361e9d neon-2-sse-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz +# License files, locally calculated +sha256 7022f51b439a5915e933ecc270c83e24ca0cb2cceeb08b0132dcd4dbb03ed2dc LICENSE diff --git a/package/neon-2-sse/neon-2-sse.mk b/package/neon-2-sse/neon-2-sse.mk new file mode 100644 index 0000000000..0e9d066abd --- /dev/null +++ b/package/neon-2-sse/neon-2-sse.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# neon-2-sse +# +################################################################################ + +NEON_2_SSE_VERSION = a15b489e1222b2087007546b4912e21293ea86ff +NEON_2_SSE_SITE = $(call github,intel,ARM_NEON_2_x86_SSE,$(NEON_2_SSE_VERSION)) +NEON_2_SSE_LICENSE = BSD-2-Clause +NEON_2_SSE_LICENSE_FILES = LICENSE +NEON_2_SSE_INSTALL_STAGING = YES +NEON_2_SSE_INSTALL_TARGET = NO + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732880 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KJy4wPkz1yhq for ; Sat, 28 Jan 2023 01:12:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 82E9582FBE; Fri, 27 Jan 2023 14:12:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 82E9582FBE 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 eBnH9q5mA0H7; Fri, 27 Jan 2023 14:12:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id BCB3982F4A; Fri, 27 Jan 2023 14:12:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org BCB3982F4A X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B732B1BF39E for ; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 92522408A5 for ; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 92522408A5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TD4hUxraA4Rd for ; Fri, 27 Jan 2023 14:11:05 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5D3AA40A71 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5D3AA40A71 for ; Fri, 27 Jan 2023 14:11:05 +0000 (UTC) Received: by mail-io1-xd36.google.com with SMTP id y69so1950617iof.3 for ; Fri, 27 Jan 2023 06:11:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AsvmJIKbPGU+BGaJFjJLe6oUehN5dmNEJLbP3jKT89I=; b=rub4FaXDv/DMHO8GsBZA3VYSg/nkW0ICMdNXog91UGZt8L2eeXdSRPNnGwVnNzoqTw zJmEEbZU/YwaZc4Cnilz3LQonIiSM2z/stgQPRIbr+6jHmttNgth8EvuwQQX8jNNZHeo A9fDTYjlJLewjQmwkfg05pTOuZeZvnyS64GDyYejHO0X2tECNkCLChXyBEVQcTfHQKDt EE4GRGmHf7/l3nUZz/dSUzafQXUL0JRp8GwYUd76qs/7uxDvi2vEDCo/n9+5V53ysOiZ nwgragK9RsiLF2hKw5smqVQro0vONzT47Q4COqG48BRMiZLmyflncD85oF74AtxI0W2D 6I+Q== X-Gm-Message-State: AO0yUKUFhQAQ1RSvHpw6MKyVXopbdFTLUHalpvDMVzEbnl1WejdTXEve xQtukz//d2253T+YZ/dXcvUkK/QH18DLZQ== X-Google-Smtp-Source: AK7set8e5xA+tyUeIQkFUyAZIB/hrzAk625ZemZwy2f+KG4j592nr74NM7wPRk/8JLoh2qAzX+/EGA== X-Received: by 2002:a05:6602:483:b0:707:dcd8:2aea with SMTP id y3-20020a056602048300b00707dcd82aeamr5772369iov.19.1674828664307; Fri, 27 Jan 2023 06:11:04 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:03 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:51 -0700 Message-Id: <20230127141058.2180747-6-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=AsvmJIKbPGU+BGaJFjJLe6oUehN5dmNEJLbP3jKT89I=; b=kqRUywPtElrdBipNqhLOwQRkR4/FzBVSADxK27MG5ohLZGhZCkQr97HYcDu6tE91uA k/nzwQfbKMEoPg+j9H3UeFe3UAhrsXcJnwSlSfLIvfPCjZ16MDukWfKCT8ue6FalGAeE LXrs/XeuC/9AJ7pc6s+PlPA4Vu3wmpMiRejAOKb9pqAPeJA6hjsLrNm5xzZRJ5lvPUYe 8WROB5WNOd2G1YKfZYBFhng8JJ3GTupte8SNdLaQhMHtSMWLoxy+8/2eyeLakzHeOMgo eEIOE5jji3GnF9dNfxNJJ6DYuJFs8O+ZvwrsYQQH2whkMaqIbLC1eAG20vLcoUvdprxl NuJA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kqRUywPt Subject: [Buildroot] [PATCH v4 06/13] package/fxdiv: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/fxdiv/Config.in | 7 +++++++ package/fxdiv/fxdiv.hash | 4 ++++ package/fxdiv/fxdiv.mk | 17 +++++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/fxdiv/Config.in create mode 100644 package/fxdiv/fxdiv.hash create mode 100644 package/fxdiv/fxdiv.mk diff --git a/DEVELOPERS b/DEVELOPERS index a711f9f1ee..b600c2914e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2703,6 +2703,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/fxdiv/ F: package/gemmlowp/ F: package/neon-2-sse/ F: package/ruy/ diff --git a/package/Config.in b/package/Config.in index 6377ddd2e5..e393760b6a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2007,6 +2007,7 @@ menu "Other" source "package/flann/Config.in" source "package/flatbuffers/Config.in" source "package/flatcc/Config.in" + source "package/fxdiv/Config.in" source "package/gconf/Config.in" source "package/gdal/Config.in" source "package/gemmlowp/Config.in" diff --git a/package/fxdiv/Config.in b/package/fxdiv/Config.in new file mode 100644 index 0000000000..5aa714e44a --- /dev/null +++ b/package/fxdiv/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_FXDIV + bool "fxdiv" + help + Header-only library for division via fixed-point + multiplication by inverse. + + https://github.com/Maratyszcza/FXdiv diff --git a/package/fxdiv/fxdiv.hash b/package/fxdiv/fxdiv.hash new file mode 100644 index 0000000000..2142d84e09 --- /dev/null +++ b/package/fxdiv/fxdiv.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 ec74d882a0a47cfd9c0f95bc4fae9901a4ade802a96a3b76e02671bb7340a4c5 fxdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.tar.gz +# License files, locally calculated +sha256 7cac00006125b1486a27e4801ed66357236e984c540bd323945ab7b66b078ec3 LICENSE diff --git a/package/fxdiv/fxdiv.mk b/package/fxdiv/fxdiv.mk new file mode 100644 index 0000000000..56aaf11f88 --- /dev/null +++ b/package/fxdiv/fxdiv.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# fxdiv +# +################################################################################ + +FXDIV_VERSION = 63058eff77e11aa15bf531df5dd34395ec3017c8 +FXDIV_SITE = $(call github,Maratyszcza,FXdiv,$(FXDIV_VERSION)) +FXDIV_LICENSE = MIT +FXDIV_LICENSE_FILES = LICENSE +FXDIV_INSTALL_STAGING = YES +FXDIV_INSTALL_TARGET = NO +FXDIV_CONF_OPTS = \ + -DFXDIV_BUILD_TESTS=OFF \ + -DFXDIV_BUILD_BENCHMARKS=OFF + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732881 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KKC3SbNz1yhq for ; Sat, 28 Jan 2023 01:12:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id AB49341D59; Fri, 27 Jan 2023 14:12:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org AB49341D59 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 PoECU4NkJtrl; Fri, 27 Jan 2023 14:12:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 6620841D62; Fri, 27 Jan 2023 14:12:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6620841D62 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 55E4A1BF39E for ; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3E1AE408A5 for ; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3E1AE408A5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28Pdnc68v6LN for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0A2D8417D2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by smtp2.osuosl.org (Postfix) with ESMTPS id 0A2D8417D2 for ; Fri, 27 Jan 2023 14:11:05 +0000 (UTC) Received: by mail-io1-xd33.google.com with SMTP id d22so1952808iof.5 for ; Fri, 27 Jan 2023 06:11:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=w9eSnNng3QE2QDToqzxHeuEKwSxWMB92Y4jaSx1ImLA=; b=NtWplVya+SKI0BhlOQehvYRKaMbVNQcEXcw6L6y9k345fw9YzEOA+hmyqenjUV3YL+ KrBwaOpEDl9bPNYgidJGUBCadJDGDvNHPjdP4c4jYj7AFzLwCs/fXYMmT605lQa+QKt/ 7oYVJDEuOB5QnY1wQOt8Bf8Bm/hnsnSZWR/kUUtooaTlu7o9fZlQG2gUwSer83x59CCY QODF1qeMpZLWlCv8vKxiZRMVvHQLHn5oxQc2tIQO3zLlFKKvx7/pkC5qwovaScwF8maC s0FA8+dxywYUuLSSCaRYAEpem2o/qvSpCkSriBeHaHELUiTVbGxz6vdjUuh6nRes+GDI Lu1Q== X-Gm-Message-State: AFqh2kqu9TFbQwUZpHcDCzCM0BTqFjlkKijcehBxRAQI0NFOfYk8agGr t9ZXENi5L5dF8SrvzatvqsPueo3XnAiSdg== X-Google-Smtp-Source: AMrXdXv1mzsT1aICImczyZ1de9xsuSCXStRkTHFAy4Lb5Qq1yIml7N25FkCelWBdTgVv5+Gs9tUvnQ== X-Received: by 2002:a5d:96c3:0:b0:6e0:256d:547a with SMTP id r3-20020a5d96c3000000b006e0256d547amr29025719iol.14.1674828664983; Fri, 27 Jan 2023 06:11:04 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:04 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:52 -0700 Message-Id: <20230127141058.2180747-7-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=w9eSnNng3QE2QDToqzxHeuEKwSxWMB92Y4jaSx1ImLA=; b=qm1i0pkWXcnXdD5BGEvXrMZXA/nAtgWKZXj75FrH1m85+LvixyO5nJewai3rZSYoDt fUswYnE/l97WGnVFpa4gxR3SHSOHEJFeFiPeXtn2cEgd5sbA93DvlZ/QWdKqpO08NR7k Hjb+emIX76uL7uqGs9AW0ZyCiDFIJo3TqwEX/jvONU2dAmrGt+w8oVikMH5FaGOKwZ8+ 5uQ4Vp50LOvEGFhRll5EmfV93lf9ImM3rETU7jSGIv26VhfrbMTrj7rkzRTJt3H8f6HQ J+Pu746nR40S7NmpB1OZPcedy4ubPdbPkuU4+FVgfGP1k6K4h1xFSRat7KhC/yxOX3Bc TL2Q== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=qm1i0pkW Subject: [Buildroot] [PATCH v4 07/13] package/pthreadpool: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/pthreadpool/Config.in | 8 +++++++ package/pthreadpool/pthreadpool.hash | 4 ++++ package/pthreadpool/pthreadpool.mk | 33 ++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 package/pthreadpool/Config.in create mode 100644 package/pthreadpool/pthreadpool.hash create mode 100644 package/pthreadpool/pthreadpool.mk diff --git a/DEVELOPERS b/DEVELOPERS index b600c2914e..de15ae1d98 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2706,6 +2706,7 @@ F: package/cpuinfo/ F: package/fxdiv/ F: package/gemmlowp/ F: package/neon-2-sse/ +F: package/pthreadpool/ F: package/ruy/ N: Stefan Ott diff --git a/package/Config.in b/package/Config.in index e393760b6a..426af4e143 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2110,6 +2110,7 @@ endif source "package/protobuf/Config.in" source "package/protobuf-c/Config.in" source "package/protozero/Config.in" + source "package/pthreadpool/Config.in" source "package/qhull/Config.in" source "package/qlibc/Config.in" source "package/riemann-c-client/Config.in" diff --git a/package/pthreadpool/Config.in b/package/pthreadpool/Config.in new file mode 100644 index 0000000000..194ae33f85 --- /dev/null +++ b/package/pthreadpool/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PTHREADPOOL + bool "pthreadpool" + select BR2_PACKAGE_FXDIV + help + Pthreadpool is a portable and efficient thread pool + implementation. + + https://github.com/Maratyszcza/pthreadpool diff --git a/package/pthreadpool/pthreadpool.hash b/package/pthreadpool/pthreadpool.hash new file mode 100644 index 0000000000..164ac55390 --- /dev/null +++ b/package/pthreadpool/pthreadpool.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 ae75adb19807ea28582683b38dd4e79a6b287751452564b42e214bb21216ef14 pthreadpool-43edadc654d6283b4b6e45ba09a853181ae8e850.tar.gz +# License files, locally calculated +sha256 57814a606b4d0fb087d9a534919084b6c11b58a4174cb5a4aef200187780dc3a LICENSE diff --git a/package/pthreadpool/pthreadpool.mk b/package/pthreadpool/pthreadpool.mk new file mode 100644 index 0000000000..4ef7949da2 --- /dev/null +++ b/package/pthreadpool/pthreadpool.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# pthreadpool +# +################################################################################ + +PTHREADPOOL_VERSION = 43edadc654d6283b4b6e45ba09a853181ae8e850 +PTHREADPOOL_SITE = $(call github,Maratyszcza,pthreadpool,$(PTHREADPOOL_VERSION)) +PTHREADPOOL_LICENSE = BSD-2-Clause +PTHREADPOOL_LICENSE_FILES = LICENSE +PTHREADPOOL_INSTALL_STAGING = YES +PTHREADPOOL_DEPENDENCIES = fxdiv + +PTHREADPOOL_CFLAGS = $(TARGET_CFLAGS) +PTHREADPOOL_CXXFLAGS = $(TARGET_CXXFLAGS) + +ifeq ($(BR2_PACKAGE_CPUINFO),y) +PTHREADPOOL_DEPENDENCIES += cpuinfo +PTHREADPOOL_CFLAGS += -DPTHREADPOOL_USE_CPUINFO=1 +PTHREADPOOL_CXXFLAGS += -DPTHREADPOOL_USE_CPUINFO=1 +else +PTHREADPOOL_CFLAGS += -DPTHREADPOOL_USE_CPUINFO=0 +PTHREADPOOL_CXXFLAGS += -DPTHREADPOOL_USE_CPUINFO=0 +endif + +PTHREADPOOL_CONF_OPTS = \ + -DCMAKE_C_FLAGS="$(PTHREADPOOL_CFLAGS)" \ + -DCMAKE_CXX_FLAGS="$(PTHREADPOOL_CXXFLAGS)" \ + -DFXDIV_SOURCE_DIR="$(FXDIV_DIR)" \ + -DPTHREADPOOL_BUILD_TESTS=OFF \ + -DPTHREADPOOL_BUILD_BENCHMARKS=OFF + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732882 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KKT0lBMz1yhq for ; Sat, 28 Jan 2023 01:12:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 59C70612A0; Fri, 27 Jan 2023 14:12:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 59C70612A0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s6icL9enSd8i; Fri, 27 Jan 2023 14:12:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id A29A5611F4; Fri, 27 Jan 2023 14:12:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A29A5611F4 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 15FA91BF39E for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F0D1760E5C for ; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org F0D1760E5C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qzagyup-VqG for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C8F82611F1 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by smtp3.osuosl.org (Postfix) with ESMTPS id C8F82611F1 for ; Fri, 27 Jan 2023 14:11:06 +0000 (UTC) Received: by mail-io1-xd34.google.com with SMTP id n85so1949826iod.7 for ; Fri, 27 Jan 2023 06:11:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=rcL3+dUAru4GFg2hR9B6bFAUTwF/p8KFwkFBOX9XWWI=; b=xUBT5pzQKkgB066AsvG+YZ+UpOdH1ZJ4eirWoo+nFBSQlWygn2KF6sapdNhzD4Fyu0 Py5ttM4c/wa2R7k/gsfghzMvCaq3WnZd6wwpB1TsR7lVIsULWTPpjj7UhlFL8OGaUgj9 qsZSZRTjBlkp7REPiA0TG7/oqJwPSUOaseLjpWAzHYJC548EwT9CKK6wwiOujiuiM1Wh WSKs37e30TIzD13hJZZlnqQjUTZgolQY0r+iOeTx2F1TiV1k7RvXuCrF4SOIDwbCXxZG srt7MKHO7oPWo5mmuRJXDnUIKL8cyPwI2SY22eV7c6YNxHK6cUO3wp++jTyHIGdpJRQr sbuw== X-Gm-Message-State: AO0yUKUxU2ryyS63AQ9hA5ENJDl7Dh+j3WV7VF4QmabxfYDlK43VLGVV yJmBsJlWB0FYaQL4AvyBdGFVpwarvDkRww== X-Google-Smtp-Source: AK7set+3JFBGJYtXucSA8r+jiFrOGsvn/yRt6F6mXE7QU+3MgCHQvzcbOw8XxqIVtiISHxsGCCs+Vg== X-Received: by 2002:a6b:c94c:0:b0:708:8a6:991 with SMTP id z73-20020a6bc94c000000b0070808a60991mr5959344iof.8.1674828665712; Fri, 27 Jan 2023 06:11:05 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:05 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:53 -0700 Message-Id: <20230127141058.2180747-8-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=rcL3+dUAru4GFg2hR9B6bFAUTwF/p8KFwkFBOX9XWWI=; b=bbCMlBXyz7a+RxruEOrpSzgegx/JXMnACDlm1qgf0+hiiymrg7RcDch9KYHXoEK0Ce joOtMIjFj6kBD5KvDz7FcWpbZ0IbMXhaMaRna+vQ+AsPhQby25QoPmqgxCEtV27xJVX6 6nLnyClZuXl3/OqKl3OVUiJ5pBzaId9W89RZv4GisWIr/BWlMFyFf3Sqfk2mQHsQFBqY Cv1ZzXjKgIRVK9jkA7tZSt0o1sMbEbzxPfMHz8drCRyPyOgX6zwVToG8MheYQgu07B/X PpowxLQqBSBwfX3TGfxqkX9GaMjpJ4plAkA6tCslsGYzPisucnJiZVUfq3CiYX617gWg T2Kw== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=bbCMlBXy Subject: [Buildroot] [PATCH v4 08/13] package/psimd: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/psimd/Config.in | 6 ++++++ package/psimd/psimd.hash | 4 ++++ package/psimd/psimd.mk | 14 ++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/psimd/Config.in create mode 100644 package/psimd/psimd.hash create mode 100644 package/psimd/psimd.mk diff --git a/DEVELOPERS b/DEVELOPERS index de15ae1d98..501bbff35e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2706,6 +2706,7 @@ F: package/cpuinfo/ F: package/fxdiv/ F: package/gemmlowp/ F: package/neon-2-sse/ +F: package/psimd/ F: package/pthreadpool/ F: package/ruy/ diff --git a/package/Config.in b/package/Config.in index 426af4e143..a87f360221 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2110,6 +2110,7 @@ endif source "package/protobuf/Config.in" source "package/protobuf-c/Config.in" source "package/protozero/Config.in" + source "package/psimd/Config.in" source "package/pthreadpool/Config.in" source "package/qhull/Config.in" source "package/qlibc/Config.in" diff --git a/package/psimd/Config.in b/package/psimd/Config.in new file mode 100644 index 0000000000..c5c51ca2ef --- /dev/null +++ b/package/psimd/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PSIMD + bool "psimd" + help + Portable 128-bit SIMD intrinsics. + + https://github.com/Maratyszcza/psimd diff --git a/package/psimd/psimd.hash b/package/psimd/psimd.hash new file mode 100644 index 0000000000..5692e79bd6 --- /dev/null +++ b/package/psimd/psimd.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 f6c4dab91ae9a03b3019e7cab0572743afd0e1b6e75b97fcca50259c737c924e psimd-072586a71b55b7f8c584153d223e95687148a900.tar.gz +# License files, locally calculated +sha256 984ce1e0b8ee89d234e28b960381f240e03a07a8031f35012f9c3256f56964e2 LICENSE diff --git a/package/psimd/psimd.mk b/package/psimd/psimd.mk new file mode 100644 index 0000000000..e5785a0327 --- /dev/null +++ b/package/psimd/psimd.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# psimd +# +################################################################################ + +PSIMD_VERSION = 072586a71b55b7f8c584153d223e95687148a900 +PSIMD_SITE = $(call github,Maratyszcza,psimd,$(PSIMD_VERSION)) +PSIMD_LICENSE = MIT +PSIMD_LICENSE_FILES = LICENSE +PSIMD_INSTALL_STAGING = YES +PSIMD_INSTALL_TARGET = NO + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732885 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KLD2tq9z1yhq for ; Sat, 28 Jan 2023 01:13:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BFDC0611F4; Fri, 27 Jan 2023 14:13:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org BFDC0611F4 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Arw_NSkiLgSv; Fri, 27 Jan 2023 14:13:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id EDB3B612AC; Fri, 27 Jan 2023 14:13:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org EDB3B612AC X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3621C1BF39E for ; Fri, 27 Jan 2023 14:11:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BAA0460E5C for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org BAA0460E5C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LAdvPY7idXug for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 98203611F4 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by smtp3.osuosl.org (Postfix) with ESMTPS id 98203611F4 for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) Received: by mail-io1-xd35.google.com with SMTP id k3so383302ioc.10 for ; Fri, 27 Jan 2023 06:11:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=W0+E37xprYMc+R3i6ftgjflThv2FWnhYtgSlLRAIAAE=; b=FgH2pvBgAZE1ugVef8fOE01mt9BdDPp/RSAQlaZwDoA6TVdcxLEtTL8mG62iBFakWi dshZ895ttiV/jcqnIXJW/4DidZbYrXEzweX+TUa01opT8Nb+WnM+LfJK9fFjI+51JDuY yeXJ+Yu0yWB7c0V/nOCYlWp9OCBP/JO1O4XQain2UMtFIp7+S0a2hksw0sWixz5ARB9i 3E1klxdVsTtvOrsLUgyy56IdpHhRFt0NqCHPjSe7xEeRFDlWtngfoqnTqY26PiNFySpF rXZnqkv4sEMClqTDXAUqYBpsM4TBrGiowVYriHqLOTD7ac68oHGEmr2+6vMvO7vUz/JS shCQ== X-Gm-Message-State: AFqh2krX3RpHs4drwUuqPuPZHjrAdfzHbyO+xfSL1My5QJpCJBRh1IBS CIJzhRbEqUpxkQcPCBESVvGS23Brb1uRjQ== X-Google-Smtp-Source: AMrXdXuRRtL3+J1vKYfQDDJ+jCTGSlH5djVRRwyM6vJyIDneVDRAQOyT0Me1voB2Kua9EXpLBE8XQA== X-Received: by 2002:a6b:e61a:0:b0:704:d0d8:632b with SMTP id g26-20020a6be61a000000b00704d0d8632bmr27191701ioh.16.1674828666449; Fri, 27 Jan 2023 06:11:06 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:05 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:54 -0700 Message-Id: <20230127141058.2180747-9-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=W0+E37xprYMc+R3i6ftgjflThv2FWnhYtgSlLRAIAAE=; b=gtszJZi8FAssiaNJ5xMD1Kc3ha3FpcStMxRIR9WUMhQaDEcxsTIlKIyCFI/Itzxrei Xli49NzWLsquefXfWDOeNi8NwHgZCkimitZe8yAcufYI5qZQkxYW94KHMTd/7WGgYgoT XbwasDkbhCDrIs/pFhs35l6sWLbD5AcI2b/U9L3aBJXxmT2aRkGBmRoTy2A96+BXJl0D 25f4AOKcKcFxupYzWHY44Nc31Nkr86Bav2J/72KfOR1yLBAzLP8B8wHH9osdGSTCHx7Z kQYPYh+8v+ZsZkkAXmnXTc1n0fpWXzAaHDdvn9wGuZrBj3wK6Xlv4fi6YQD3iuvfk0kp RPfg== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=gtszJZi8 Subject: [Buildroot] [PATCH v4 09/13] package/fp16: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/fp16/Config.in | 8 ++++++++ package/fp16/fp16.hash | 4 ++++ package/fp16/fp16.mk | 19 +++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/fp16/Config.in create mode 100644 package/fp16/fp16.hash create mode 100644 package/fp16/fp16.mk diff --git a/DEVELOPERS b/DEVELOPERS index 501bbff35e..fc74c089fe 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2703,6 +2703,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/fp16/ F: package/fxdiv/ F: package/gemmlowp/ F: package/neon-2-sse/ diff --git a/package/Config.in b/package/Config.in index a87f360221..d33806a013 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2007,6 +2007,7 @@ menu "Other" source "package/flann/Config.in" source "package/flatbuffers/Config.in" source "package/flatcc/Config.in" + source "package/fp16/Config.in" source "package/fxdiv/Config.in" source "package/gconf/Config.in" source "package/gdal/Config.in" diff --git a/package/fp16/Config.in b/package/fp16/Config.in new file mode 100644 index 0000000000..e07c6ebb8a --- /dev/null +++ b/package/fp16/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_FP16 + bool "fp16" + select BR2_PACKAGE_PSIMD + help + Header-only library for conversion to/from half-precision + floating point formats. + + https://github.com/Maratyszcza/FP16 diff --git a/package/fp16/fp16.hash b/package/fp16/fp16.hash new file mode 100644 index 0000000000..63634eb2cf --- /dev/null +++ b/package/fp16/fp16.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 a91f4770ff9c39f4d72e339c379f566b3bbb359fa66122d85fc0bae3dde7abc7 fp16-0a92994d729ff76a58f692d3028ca1b64b145d91.tar.gz +# License files, locally calculated +sha256 17e4f539024be2749ee729d1e2f01d24cef12ece8c9bf18e91a4349be29c80bf LICENSE diff --git a/package/fp16/fp16.mk b/package/fp16/fp16.mk new file mode 100644 index 0000000000..52f48232fa --- /dev/null +++ b/package/fp16/fp16.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# fp16 +# +################################################################################ + +FP16_VERSION = 0a92994d729ff76a58f692d3028ca1b64b145d91 +FP16_SITE = $(call github,Maratyszcza,FP16,$(FP16_VERSION)) +FP16_LICENSE = MIT +FP16_LICENSE_FILES = LICENSE +FP16_INSTALL_STAGING = YES +FP16_INSTALL_TARGET = NO +FP16_DEPENDENCIES = psimd +FP16_CONF_OPTS = \ + -DFP16_BUILD_TESTS=OFF \ + -DFP16_BUILD_BENCHMARKS=OFF \ + -DPSIMD_SOURCE_DIR="$(PSIMD_DIR)" + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732883 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KKj3pqsz1yhq for ; Sat, 28 Jan 2023 01:12:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DD8AD417DF; Fri, 27 Jan 2023 14:12:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org DD8AD417DF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cptl7b6dlfU4; Fri, 27 Jan 2023 14:12:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 14D6840A71; Fri, 27 Jan 2023 14:12:54 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 14D6840A71 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 28D0C1BF976 for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 01DEF82FBE for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 01DEF82FBE 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 CHe0eA5u-OHL for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AD9A882F3D Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by smtp1.osuosl.org (Postfix) with ESMTPS id AD9A882F3D for ; Fri, 27 Jan 2023 14:11:07 +0000 (UTC) Received: by mail-io1-xd2c.google.com with SMTP id s26so1941008ioa.11 for ; Fri, 27 Jan 2023 06:11:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/AxlrULlPl5y/LjLhyenXxquJzr7GQTjeAH9N9wX1k4=; b=6AEQFZx5miVXXFKgjBmSYX5SofYVHOVkSpZAx/ZiPBgvhI7DVTt1woA4K+w0r78tie scivA4E+a6chrLXdZTz008DGM4vdTyoZdR+Bm6VODSFk9/OWHNI6aCaWuzt/orMukUGt 7O2QVYKXsiOvzp16mTqLaaf/IpgFgtIHX1Z0Vsey+EXxPi0hUUT+meuAyXgzJ8g6vrls kSZ74dtJdMxZV8FhOGbV0Wh8XeXdOKno6t7c8Tr75s74+h1QR13JkbkVSUtWSWX4T7t/ TXTWHbz0HmN0hA7mi+JRCVvRCBIuX7bxbT0AVy0wkhvLXsa4WaZaVuvUPr9pUFggBgzy Qfmw== X-Gm-Message-State: AFqh2koyp4l/bdohDx/b0dGL1zirEkibhWhauVY5/Q+nJcH8LwK2P9vj VmDXfmOKMy88OXFfDw9x+c1nqXSGDdoddw== X-Google-Smtp-Source: AMrXdXuvttiRRJ0lzyArHNoZ19nGBYImz9CEtaAQS4q8bHnq5TYWPd92Qis85QL2/aSDhTTygZCDNA== X-Received: by 2002:a5d:805a:0:b0:6bc:d714:520f with SMTP id b26-20020a5d805a000000b006bcd714520fmr29092013ior.15.1674828667225; Fri, 27 Jan 2023 06:11:07 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:06 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:55 -0700 Message-Id: <20230127141058.2180747-10-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=/AxlrULlPl5y/LjLhyenXxquJzr7GQTjeAH9N9wX1k4=; b=Qo5KaB2i+RZPexN6Zhx6SWoAauRINweo+oA7s9hxJ3i2BVu9dHzG9/pgbnMTX0zcF6 ZYGwMYTxj+50Fgcj1+ZuXPqflwe6Q+obcsgmuXhS02hCPV4nTC1h4Q2fN72d8o/vtmJ4 TZN4vC7bd8roZK+e6sf2wAp7BspatpnXFOXUWX/Vu0iGJupcn89+GPu5EaCL1I3li2eI FmjV96Spx+74txBnijVzF9pkkIUcwNRflwNQxcJX3JiS1XPVp0gxmrGAw2ojvXOOLcXe h9Lo1NDCyGevbrRVHBFWzdg/dJ2Y+VphQaElkNJdhGXGLDfz8o3w3RXtCWiF7e/DdixZ UsJg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Qo5KaB2i Subject: [Buildroot] [PATCH v4 10/13] package/xnnpack: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- DEVELOPERS | 1 + package/Config.in | 1 + package/xnnpack/Config.in | 17 +++++++++++++++++ package/xnnpack/xnnpack.hash | 4 ++++ package/xnnpack/xnnpack.mk | 18 ++++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/xnnpack/Config.in create mode 100644 package/xnnpack/xnnpack.hash create mode 100644 package/xnnpack/xnnpack.mk diff --git a/DEVELOPERS b/DEVELOPERS index fc74c089fe..cfb0a8228d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2710,6 +2710,7 @@ F: package/neon-2-sse/ F: package/psimd/ F: package/pthreadpool/ F: package/ruy/ +F: package/xnnpack/ N: Stefan Ott F: package/unbound/ diff --git a/package/Config.in b/package/Config.in index d33806a013..26e37e2687 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2128,6 +2128,7 @@ endif source "package/uvw/Config.in" source "package/volk/Config.in" source "package/xapian/Config.in" + source "package/xnnpack/Config.in" endmenu menu "Security" diff --git a/package/xnnpack/Config.in b/package/xnnpack/Config.in new file mode 100644 index 0000000000..2016ce9817 --- /dev/null +++ b/package/xnnpack/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_XNNPACK + bool "xnnpack" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 + select BR2_PACKAGE_CPUINFO + select BR2_PACKAGE_FP16 + select BR2_PACKAGE_FXDIV + select BR2_PACKAGE_PTHREADPOOL + help + XNNPACK is a highly optimized solution for neural network + inference on ARM, x86, WebAssembly, and RISC-V platforms. + + https://github.com/google/XNNPACK + +comment "xnnpack needs a toolchain w/ C++14" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 diff --git a/package/xnnpack/xnnpack.hash b/package/xnnpack/xnnpack.hash new file mode 100644 index 0000000000..249f553f2a --- /dev/null +++ b/package/xnnpack/xnnpack.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 5d70dde70c0b1aef9e608f5d193c148aa1e538574a98d912278b51e60f2457f2 xnnpack-1f7f6131f7be587d0a657d03bdd0161d67ba2700.tar.gz +# License files, locally calculated +sha256 63f519e15726f4c4f830bd958f694c84fecb4e0a4cacc527d2696bb71ef95ada LICENSE diff --git a/package/xnnpack/xnnpack.mk b/package/xnnpack/xnnpack.mk new file mode 100644 index 0000000000..d46b4c22de --- /dev/null +++ b/package/xnnpack/xnnpack.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# xnnpack +# +################################################################################ + +XNNPACK_VERSION = 1f7f6131f7be587d0a657d03bdd0161d67ba2700 +XNNPACK_SITE = $(call github,google,XNNPACK,$(XNNPACK_VERSION)) +XNNPACK_LICENSE = BSD-3-Clause +XNNPACK_LICENSE_FILES = LICENSE +XNNPACK_INSTALL_STAGING = YES +XNNPACK_DEPENDENCIES = cpuinfo fp16 fxdiv pthreadpool +XNNPACK_CONF_OPTS = \ + -DXNNPACK_BUILD_TESTS=OFF \ + -DXNNPACK_BUILD_BENCHMARKS=OFF \ + -DXNNPACK_USE_SYSTEM_LIBS=ON + +$(eval $(cmake-package)) From patchwork Fri Jan 27 14:10:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732887 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KLw0jf4z1yhq for ; Sat, 28 Jan 2023 01:14:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 75BC3820DE; Fri, 27 Jan 2023 14:13:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 75BC3820DE 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 9Bqgo6uQMoSl; Fri, 27 Jan 2023 14:13:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 977C88208F; Fri, 27 Jan 2023 14:13:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 977C88208F X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 464C71BF39E for ; Fri, 27 Jan 2023 14:11:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1CA77611F1 for ; Fri, 27 Jan 2023 14:11:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1CA77611F1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lx90jzUon5yW for ; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6FD2161296 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6FD2161296 for ; Fri, 27 Jan 2023 14:11:08 +0000 (UTC) Received: by mail-io1-xd33.google.com with SMTP id y69so1950702iof.3 for ; Fri, 27 Jan 2023 06:11:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5nef2vcq/7CURMbDXHA35whoXkmtlMhsXpgKmZPfq3g=; b=Kxd54k3AbhwiADuOJnFZOthUnPuJc0Logw+zbbvJptTbuOKMXmMw2lf/iv22CKP7je osfBpg49GOlsthnwLRK03NsVZmGICih7Ua4wcjAN/LPBRxxJDZcM6XsBqfyeCA6dhykT F82JkCJYeGNRu5Pqn3+COa0sTh9FG4PhlEs6H0tpM1wWa+OIWhVWs92F8OSdiOQCxYll AehwwJTxidTia9V7vPvzM/x0GuZWxrqFCuy0skCXeZE0katI+dbHfu2ins0udVxpTbHH Tw/kSKUj2MQT5MzQ7uv5wqnNbZ5HDSD+BnV7JN2XzdNrtB3yQgpPzrp4BQuJGSo2ZwjZ a3xg== X-Gm-Message-State: AO0yUKXyzKatfjVrhobpPlkLYzQ2Q5caUMCWwiCbgjBImTzySP6WHHJV 0VZ9O/WIOhqX51cF0er5kw110GOdTvNrOg== X-Google-Smtp-Source: AK7set/jgyEBZoSz605IGiSZyX3Su0QhSWQfzd4hb1d5Sy4lTxm3Lx2PVSsCvTsPXRww90VTiEmVvw== X-Received: by 2002:a05:6602:341a:b0:70b:4f72:9ee0 with SMTP id n26-20020a056602341a00b0070b4f729ee0mr3959495ioz.21.1674828667927; Fri, 27 Jan 2023 06:11:07 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:07 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:56 -0700 Message-Id: <20230127141058.2180747-11-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=5nef2vcq/7CURMbDXHA35whoXkmtlMhsXpgKmZPfq3g=; b=Vg0hZa9IwVV7JSu1DyC7r1NdQkX4ux8cCMpnn2a8aYKCIb2y5OHg8PnTF3sbr/SwCR dKw0Njfnwns1mP6/jKZPhdkkz6yK27eOFldrWIZ4oQN63Nc/DOIz7sIVcxPQcPsDFw9b GWpnKBRaktbhdExCqhsrMdAHR8tO6kn9m41B45ZITQ0ZYqPURryOXNXJ+Y4YQ3xAp+PZ lHHEzmuee6PJdu6k1CLjo3FtfoosNX+PyTMd/c5pI/JDiHyj7visXqXdxU0O032LPoA1 ON4CM6ivLoqWZFqQcTmNziC4pp6rl8WuO6QIINA1c6V4+nTJAptU0emeqiOgckzpl4W1 jWhQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Vg0hZa9I Subject: [Buildroot] [PATCH v4 11/13] package/fft2d: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. This package doesn't provide a conventional install mechanism so we need to install it manually. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v3 -> v4: - fix license --- DEVELOPERS | 1 + package/Config.in | 1 + package/fft2d/Config.in | 7 +++++++ package/fft2d/fft2d.hash | 4 ++++ package/fft2d/fft2d.mk | 22 ++++++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 package/fft2d/Config.in create mode 100644 package/fft2d/fft2d.hash create mode 100644 package/fft2d/fft2d.mk diff --git a/DEVELOPERS b/DEVELOPERS index cfb0a8228d..a9ecf7847f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2704,6 +2704,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ F: package/fp16/ +F: package/fft2d/ F: package/fxdiv/ F: package/gemmlowp/ F: package/neon-2-sse/ diff --git a/package/Config.in b/package/Config.in index 26e37e2687..53f544ef40 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2003,6 +2003,7 @@ menu "Other" source "package/elfutils/Config.in" source "package/ell/Config.in" source "package/falcosecurity-libs/Config.in" + source "package/fft2d/Config.in" source "package/fftw/Config.in" source "package/flann/Config.in" source "package/flatbuffers/Config.in" diff --git a/package/fft2d/Config.in b/package/fft2d/Config.in new file mode 100644 index 0000000000..38394f6170 --- /dev/null +++ b/package/fft2d/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_FFT2D + bool "fft2d" + help + This is a package to calculate Discrete Fourier/Cosine/Sine + Transforms of 2,3-dimensional sequences of length 2^N. + + http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html diff --git a/package/fft2d/fft2d.hash b/package/fft2d/fft2d.hash new file mode 100644 index 0000000000..a1b1a326ae --- /dev/null +++ b/package/fft2d/fft2d.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 ada7e99087c4ed477bfdf11413f2ba8db8a840ba9bbf8ac94f4f3972e2a7cec9 fft2d.tgz +# License files, locally calculated +sha256 0b2a2082537735a2a576dbec2e8f9c1a09812eac6df6a389502a6ba860072906 readme2d.txt diff --git a/package/fft2d/fft2d.mk b/package/fft2d/fft2d.mk new file mode 100644 index 0000000000..eac68325a1 --- /dev/null +++ b/package/fft2d/fft2d.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# fft2d +# +################################################################################ + +FFT2D_VERSION = 2006.12.28 +FFT2D_SITE = https://www.kurims.kyoto-u.ac.jp/~ooura +FFT2D_SOURCE = fft2d.tgz +FFT2D_LICENSE = MIT-like +FFT2D_LICENSE_FILES = readme2d.txt +FFT2D_INSTALL_STAGING = YES +FFT2D_INSTALL_TARGET = NO + +define FFT2D_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/include/fft2d + $(INSTALL) -m 0644 $(@D)/*.c $(STAGING_DIR)/usr/include/fft2d + $(INSTALL) -m 0644 $(@D)/*.f $(STAGING_DIR)/usr/include/fft2d + $(INSTALL) -m 0644 $(@D)/*.h $(STAGING_DIR)/usr/include/fft2d +endef + +$(eval $(generic-package)) From patchwork Fri Jan 27 14:10:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732884 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KKz0KTrz1yhq for ; Sat, 28 Jan 2023 01:13:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3E13C41D6B; Fri, 27 Jan 2023 14:13:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3E13C41D6B 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 bvlypbD3tjXa; Fri, 27 Jan 2023 14:13:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id E195541D59; Fri, 27 Jan 2023 14:13:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E195541D59 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2D8591BF977 for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 04A6B41D59 for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 04A6B41D59 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 K4FsWSFqCkZs for ; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3E1F141D2D Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by smtp4.osuosl.org (Postfix) with ESMTPS id 3E1F141D2D for ; Fri, 27 Jan 2023 14:11:09 +0000 (UTC) Received: by mail-io1-xd2c.google.com with SMTP id 203so1936306iou.13 for ; Fri, 27 Jan 2023 06:11:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=qzmqLvImvYb2mjB6UNIoicAS51hLtjMPrlUkvW2lL6o=; b=37VlHGx5muRiZ4qhJ4/BJPKtx85HIXUlD8rihUoXrNsg6dCxlFhbo/sFBsS9CR1rT7 uH4TBFywe9LKb4nlGkY21cwxmnIHMkOj9vl/lqDN/sqmxMjOazIWJydZjHLexjABAPKE arvGeHSqcB71lf6/Nf2xdV7AAMGW9U+li6uSaLhw+muI3sbktg3Q0j8UCtyh8oRnSvUR 7f4HFRItPAYUHBZNerjBBE/z0233gK8VSDDAB0Mok1MTPjTAIcS+kcYoUYAmecnyVXF6 q/7SuGRlz0CRYGJCv2ROIXrn4DodHNKo73gwLAvfET/NrYFBIiy+bLfzAHn0v64r7mzs g+yw== X-Gm-Message-State: AFqh2kqE0M8mq5E3uw746h9E1E2u14pW5B0HvRS8Keg2/c5XZts38CiB BDv4XowiLmDr2CTTDldtDy7/d9RKinUUhw== X-Google-Smtp-Source: AMrXdXt+IW1Gt/he/g2X9Yg2517zXpUvdEtsHqAeAaKHUL4BzjubWvm9qqVpw6sv/VkOacXNYlv7Ng== X-Received: by 2002:a6b:4410:0:b0:6d4:264f:2427 with SMTP id r16-20020a6b4410000000b006d4264f2427mr26651417ioa.21.1674828668678; Fri, 27 Jan 2023 06:11:08 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:08 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:57 -0700 Message-Id: <20230127141058.2180747-12-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=qzmqLvImvYb2mjB6UNIoicAS51hLtjMPrlUkvW2lL6o=; b=BRWn8h442cwhr7TKF9iq6WlQFuCJnw1NLLOqTXPoxIMkpQ9M7iw4LORdqr83GVzvyU cxosIM685/Y5YZ22tbA24vCXy/cLSitXBglU/p0we3wJW9VcR9oCotFw6CJSpAsfspjI pYiAlLhA7RnApNu32YW1jt5srtR+HJIa3H9ZqHLijuUtv6U4P3FgGV36C6+cEk9P4fGw qsiLgrUS6zYuW5b7pN4nDAbMACcBF7Gler7KH/AlaV47UGBpxsXOtuOINP+IG/a3jfHX u/30DI7JPUr0+ue0mTVC15i1CgqvRwxBWRzAemJ5UTQ2kCpBCucyZ7AV6r6U34c0D8By Nz9w== 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=20210112 header.b=BRWn8h44 Subject: [Buildroot] [PATCH v4 12/13] package/farmhash: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v2 -> v3: - add C++11 dependency --- DEVELOPERS | 1 + package/Config.in | 1 + package/farmhash/Config.in | 12 ++++++++++++ package/farmhash/farmhash.hash | 4 ++++ package/farmhash/farmhash.mk | 14 ++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/farmhash/Config.in create mode 100644 package/farmhash/farmhash.hash create mode 100644 package/farmhash/farmhash.mk diff --git a/DEVELOPERS b/DEVELOPERS index a9ecf7847f..2afe29be47 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2703,6 +2703,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/farmhash/ F: package/fp16/ F: package/fft2d/ F: package/fxdiv/ diff --git a/package/Config.in b/package/Config.in index 53f544ef40..a7c7e87c78 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2003,6 +2003,7 @@ menu "Other" source "package/elfutils/Config.in" source "package/ell/Config.in" source "package/falcosecurity-libs/Config.in" + source "package/farmhash/Config.in" source "package/fft2d/Config.in" source "package/fftw/Config.in" source "package/flann/Config.in" diff --git a/package/farmhash/Config.in b/package/farmhash/Config.in new file mode 100644 index 0000000000..ef22898774 --- /dev/null +++ b/package/farmhash/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_FARMHASH + bool "farmhash" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + FarmHash, a family of hash functions. + + https://github.com/google/farmhash + +comment "farmhash needs a toolchain w/ C++11" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 diff --git a/package/farmhash/farmhash.hash b/package/farmhash/farmhash.hash new file mode 100644 index 0000000000..afdfc0f994 --- /dev/null +++ b/package/farmhash/farmhash.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 18392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115 farmhash-0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz +# License files, locally calculated +sha256 4162dd091caae234f72d3b57e138174f733e736b2430a4c51b098b17d866fcb6 COPYING diff --git a/package/farmhash/farmhash.mk b/package/farmhash/farmhash.mk new file mode 100644 index 0000000000..6ab7d1a88b --- /dev/null +++ b/package/farmhash/farmhash.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# farmhash +# +################################################################################ + +FARMHASH_VERSION = 0d859a811870d10f53a594927d0d0b97573ad06d +FARMHASH_SITE = $(call github,google,farmhash,$(FARMHASH_VERSION)) +FARMHASH_LICENSE = MIT +FARMHASH_LICENSE_FILES = COPYING +FARMHASH_INSTALL_STAGING = YES +FARMHASH_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" + +$(eval $(autotools-package)) From patchwork Fri Jan 27 14:10:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1732886 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P3KLT5dPkz1yhq for ; Sat, 28 Jan 2023 01:13:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0BC7640A71; Fri, 27 Jan 2023 14:13:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0BC7640A71 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dJST6wm10MhT; Fri, 27 Jan 2023 14:13:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id C3279417D2; Fri, 27 Jan 2023 14:13:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C3279417D2 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7BACF1BF39E for ; Fri, 27 Jan 2023 14:11:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 4CC1982F3D for ; Fri, 27 Jan 2023 14:11:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4CC1982F3D 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 1aWs_wlGXKNy for ; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 11A3282F4A Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp1.osuosl.org (Postfix) with ESMTPS id 11A3282F4A for ; Fri, 27 Jan 2023 14:11:10 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id e204so1955208iof.1 for ; Fri, 27 Jan 2023 06:11:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AClevcobZ5V1I98VUtm6qakg/0RprqIQRzZTapGDCoQ=; b=KlDBrCcAsJyQ4IJgowyGl5Z1zRO0TLzUh0DRSMPEubLRQPRL9Vd7yDdtLsp8C7zL2v y0nZXyVimCEgrai0upTQvf6oO3DJrxn/naOMPQB43z8Ti6zFXlYXjoAgzLy+EqrsXE2k ivkMOKnYeu6r96F66EwTLpERPUFvHJBj2V7oLYRFO7TLZ8ZdE9LICmdDG11TfxH/S0B6 jLyBStiuNrMxAP1Sv42r2q51NrD6xpGgbPzOgfy05kxHwVZTBliikewpdfFbxZganYV4 K/OA7/iF3KjrnJRc0ypFifH+IA8D4uY6tg6ly7V95wenbnP0NjJgOH/zXuU/Z1TpmrXO lLIg== X-Gm-Message-State: AFqh2kr2QHZ34SCngiw7TZdV6HrexftUFh7k11kwjsVAPE2GuDgBJC65 rxO578iVI1BbQa6sUX+jlXqhnesGa95pyg== X-Google-Smtp-Source: AMrXdXuBsTyHRhDcEzdm14mSySvI77DI4QbpSIm2BX/g8qDYw9KFZ4v/MetNZOpFsA062is2KvCp9A== X-Received: by 2002:a05:6602:5cd:b0:704:884e:fda3 with SMTP id w13-20020a05660205cd00b00704884efda3mr27258936iox.12.1674828669425; Fri, 27 Jan 2023 06:11:09 -0800 (PST) Received: from james-x399.localdomain (71-218-114-73.hlrn.qwest.net. [71.218.114.73]) by smtp.gmail.com with ESMTPSA id n2-20020a6bed02000000b006d8b7bcaa6esm1290806iog.4.2023.01.27.06.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 06:11:09 -0800 (PST) From: James Hilliard To: buildroot@buildroot.org Date: Fri, 27 Jan 2023 07:10:58 -0700 Message-Id: <20230127141058.2180747-13-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230127141058.2180747-1-james.hilliard1@gmail.com> References: <20230127141058.2180747-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=20210112; 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=AClevcobZ5V1I98VUtm6qakg/0RprqIQRzZTapGDCoQ=; b=ZMh5FxFiPGfImNU4/ZUr+vZbDEgHA0IqCsnlLA8PqC94fBYkv2X6U2GYw6tUgRu4z7 gPlyfr5mR5MoPhEOPlk6XYLjubqQQqSOPAmrQcy9fYtjbEo/gIGkw+BHXTvgfwAAZCx6 DtUTXNZ8hy53Vyz65ST//WdreH1lmUC8IyAaB7A/z1IpBYYGvoCL0xoRpmMTORRI/3wb l3/4kJ8LtD5KQMbxhq77w7zuDQ/8m372XBL8hLDA0M4YlO0BdksVNPCVzrKbtST03GCN GtSj9Z/79qd9Q+k9BGLXWsd9fiiFv9ty8KMcIcHDmtz9Tc2ZQp8FTYe4P4F6I7u8qpMJ lYbg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ZMh5FxFi Subject: [Buildroot] [PATCH v4 13/13] package/tensorflow-lite: 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: Stefan Hager , James Hilliard , Samuel Martin , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package adds the tensorflow lite runtime to buildroot. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v3 -> v4: - fix min gcc version - enable xnnpack Changes v2 -> v3: - drop architecture restrictions which appear inaccurate after adding neon-2-sse - disable android only nnapi Changes v1 -> v2: - fix label_image build - more explicit cmake config --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-lite-Update-CMakeLists.txt.patch | 49 ++++++++++++++++++ .../0002-Fix-FindFlatBuffers-cmake-file.patch | 37 ++++++++++++++ ...ink-tensorflow-lite-against-gemmlowp.patch | 32 ++++++++++++ package/tensorflow-lite/Config.in | 27 ++++++++++ package/tensorflow-lite/tensorflow-lite.hash | 4 ++ package/tensorflow-lite/tensorflow-lite.mk | 51 +++++++++++++++++++ 8 files changed, 202 insertions(+) create mode 100644 package/tensorflow-lite/0001-lite-Update-CMakeLists.txt.patch create mode 100644 package/tensorflow-lite/0002-Fix-FindFlatBuffers-cmake-file.patch create mode 100644 package/tensorflow-lite/0003-Don-t-link-tensorflow-lite-against-gemmlowp.patch create mode 100644 package/tensorflow-lite/Config.in create mode 100644 package/tensorflow-lite/tensorflow-lite.hash create mode 100644 package/tensorflow-lite/tensorflow-lite.mk diff --git a/DEVELOPERS b/DEVELOPERS index 2afe29be47..c682ed1b7f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2712,6 +2712,7 @@ F: package/neon-2-sse/ F: package/psimd/ F: package/pthreadpool/ F: package/ruy/ +F: package/tensorflow-lite/ F: package/xnnpack/ N: Stefan Ott diff --git a/package/Config.in b/package/Config.in index a7c7e87c78..4168ce878d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2124,6 +2124,7 @@ endif source "package/sphinxbase/Config.in" source "package/startup-notification/Config.in" source "package/tbb/Config.in" + source "package/tensorflow-lite/Config.in" source "package/tinycbor/Config.in" source "package/tz/Config.in" source "package/tzdata/Config.in" diff --git a/package/tensorflow-lite/0001-lite-Update-CMakeLists.txt.patch b/package/tensorflow-lite/0001-lite-Update-CMakeLists.txt.patch new file mode 100644 index 0000000000..53b5170681 --- /dev/null +++ b/package/tensorflow-lite/0001-lite-Update-CMakeLists.txt.patch @@ -0,0 +1,49 @@ +From 081c2e4e3cf021efb2853a485a18b563e88f6117 Mon Sep 17 00:00:00 2001 +From: Terry Heo +Date: Tue, 1 Nov 2022 15:55:30 -0700 +Subject: [PATCH] lite: Update CMakeLists.txt + +This changes are needed to build kernel tests. + +PiperOrigin-RevId: 485439972 + +Signed-off-by: James Hilliard +[james.hilliard1@gmail.com: backport from upstream commit +081c2e4e3cf021efb2853a485a18b563e88f6117] +--- + tensorflow/lite/CMakeLists.txt | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tensorflow/lite/CMakeLists.txt b/tensorflow/lite/CMakeLists.txt +index 9dfbb4b72f3..fd8b3faf1e2 100644 +--- a/tensorflow/lite/CMakeLists.txt ++++ b/tensorflow/lite/CMakeLists.txt +@@ -209,6 +209,9 @@ list(FILTER TFLITE_SRCS EXCLUDE REGEX ".*tflite_with_xnnpack\\.cc$") + # Exclude Flex related files. + list(FILTER TFLITE_SRCS EXCLUDE REGEX ".*with_selected_ops\\.cc$") + ++# Exclude tensorflow_profiler_logger files. ++list(FILTER TFLITE_SRCS EXCLUDE REGEX ".*tensorflow_profiler_logger\\.cc$") ++ + if(_TFLITE_ENABLE_MMAP) + list(FILTER TFLITE_SRCS EXCLUDE REGEX ".*mmap_allocation_disabled\\.cc$") + else() +@@ -222,6 +225,7 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "iOS") + endif() + populate_tflite_source_vars("core" TFLITE_CORE_SRCS) + populate_tflite_source_vars("core/api" TFLITE_CORE_API_SRCS) ++populate_tflite_source_vars("core/c" TFLITE_CORE_C_SRCS) + populate_tflite_source_vars("c" TFLITE_C_SRCS) + populate_tflite_source_vars("delegates" TFLITE_DELEGATES_SRCS) + if(TFLITE_ENABLE_GPU) +@@ -483,6 +487,7 @@ endif() + # TFLite library + set(_ALL_TFLITE_SRCS + ${TFLITE_CORE_API_SRCS} ++ ${TFLITE_CORE_C_SRCS} + ${TFLITE_CORE_SRCS} + ${TFLITE_C_SRCS} + ${TFLITE_DELEGATES_FLEX_SRCS} +-- +2.34.1 + diff --git a/package/tensorflow-lite/0002-Fix-FindFlatBuffers-cmake-file.patch b/package/tensorflow-lite/0002-Fix-FindFlatBuffers-cmake-file.patch new file mode 100644 index 0000000000..e97bb3e52f --- /dev/null +++ b/package/tensorflow-lite/0002-Fix-FindFlatBuffers-cmake-file.patch @@ -0,0 +1,37 @@ +From a4ff4b5e952a22906ac0ed01e73f84f42926c325 Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Thu, 24 Nov 2022 14:29:06 -0700 +Subject: [PATCH] Fix FindFlatBuffers cmake file + +Capitalization needs to match for system cmake override to work: +https://github.com/google/flatbuffers/blob/v22.11.23/CMake/FindFlatBuffers.cmake + +Signed-off-by: James Hilliard +[Upstream status: +https://github.com/tensorflow/tensorflow/pull/58677] +--- + tensorflow/lite/CMakeLists.txt | 2 +- + .../modules/{FindFlatbuffers.cmake => FindFlatBuffers.cmake} | 0 + 2 files changed, 1 insertion(+), 1 deletion(-) + rename tensorflow/lite/tools/cmake/modules/{FindFlatbuffers.cmake => FindFlatBuffers.cmake} (100%) + +diff --git a/tensorflow/lite/CMakeLists.txt b/tensorflow/lite/CMakeLists.txt +index f9c30d6a046..c2ee9edfb61 100644 +--- a/tensorflow/lite/CMakeLists.txt ++++ b/tensorflow/lite/CMakeLists.txt +@@ -143,7 +143,7 @@ find_package(absl REQUIRED) + find_package(Eigen3 REQUIRED) + find_package(farmhash REQUIRED) + find_package(fft2d REQUIRED) +-find_package(Flatbuffers REQUIRED) ++find_package(FlatBuffers REQUIRED) + find_package(gemmlowp REQUIRED) + find_package(NEON_2_SSE REQUIRED) + find_package(cpuinfo REQUIRED) #CPUINFO is used by XNNPACK and RUY library +diff --git a/tensorflow/lite/tools/cmake/modules/FindFlatbuffers.cmake b/tensorflow/lite/tools/cmake/modules/FindFlatBuffers.cmake +similarity index 100% +rename from tensorflow/lite/tools/cmake/modules/FindFlatbuffers.cmake +rename to tensorflow/lite/tools/cmake/modules/FindFlatBuffers.cmake +-- +2.34.1 + diff --git a/package/tensorflow-lite/0003-Don-t-link-tensorflow-lite-against-gemmlowp.patch b/package/tensorflow-lite/0003-Don-t-link-tensorflow-lite-against-gemmlowp.patch new file mode 100644 index 0000000000..dbee9942b3 --- /dev/null +++ b/package/tensorflow-lite/0003-Don-t-link-tensorflow-lite-against-gemmlowp.patch @@ -0,0 +1,32 @@ +From fb584589f707853d85a081c99b1b82598c2631c1 Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Thu, 24 Nov 2022 15:10:27 -0700 +Subject: [PATCH] Don't link tensorflow-lite against gemmlowp + +We can't link against gemmlowp as it is a header only library. + +Fixes: +/bin/ld: cannot find -lgemmlowp: No such file or directory + +Signed-off-by: James Hilliard +[Upstream status: +https://github.com/tensorflow/tensorflow/pull/58678] +--- + tensorflow/lite/CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tensorflow/lite/CMakeLists.txt b/tensorflow/lite/CMakeLists.txt +index f9c30d6a046..3fe5ed15605 100644 +--- a/tensorflow/lite/CMakeLists.txt ++++ b/tensorflow/lite/CMakeLists.txt +@@ -560,7 +560,6 @@ target_link_libraries(tensorflow-lite + farmhash + fft2d_fftsg2d + flatbuffers::flatbuffers +- gemmlowp + ruy::ruy + pthreadpool + ${CMAKE_DL_LIBS} +-- +2.34.1 + diff --git a/package/tensorflow-lite/Config.in b/package/tensorflow-lite/Config.in new file mode 100644 index 0000000000..92a364ca36 --- /dev/null +++ b/package/tensorflow-lite/Config.in @@ -0,0 +1,27 @@ +config BR2_PACKAGE_TENSORFLOW_LITE + bool "tensorflow-lite" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_SHARED_LIBS + select BR2_PACKAGE_CPUINFO + select BR2_PACKAGE_EIGEN + select BR2_PACKAGE_FARMHASH + select BR2_PACKAGE_FFT2D + select BR2_PACKAGE_FLATBUFFERS + select BR2_PACKAGE_GEMMLOWP + select BR2_PACKAGE_LIBABSEIL_CPP + select BR2_PACKAGE_NEON_2_SSE + select BR2_PACKAGE_RUY + select BR2_PACKAGE_XNNPACK + help + Tensorflow Lite dynamic library and headers: Inference engine + to run previously trained machine learning models. + +comment "tensorflow-lite needs a toolchain w/ glibc, C++17, threads" + depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || !BR2_TOOLCHAIN_HAS_THREADS + +comment "tensorflow-lite needs a toolchain w/ shared libraries" + depends on !BR2_SHARED_LIBS diff --git a/package/tensorflow-lite/tensorflow-lite.hash b/package/tensorflow-lite/tensorflow-lite.hash new file mode 100644 index 0000000000..7d9035707b --- /dev/null +++ b/package/tensorflow-lite/tensorflow-lite.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 99c732b92b1b37fc243a559e02f9aef5671771e272758aa4aec7f34dc92dac48 tensorflow-lite-2.11.0.tar.gz +# License files, locally calculated +sha256 71c6915d04265772a0339bed47276942c678b45cc01534210ebe6984fd1aec65 LICENSE diff --git a/package/tensorflow-lite/tensorflow-lite.mk b/package/tensorflow-lite/tensorflow-lite.mk new file mode 100644 index 0000000000..4f8e8b9595 --- /dev/null +++ b/package/tensorflow-lite/tensorflow-lite.mk @@ -0,0 +1,51 @@ +################################################################################ +# +# tensorflow-lite +# +################################################################################ + +TENSORFLOW_LITE_VERSION = 2.11.0 +TENSORFLOW_LITE_SITE = $(call github,tensorflow,tensorflow,v$(TENSORFLOW_LITE_VERSION)) +TENSORFLOW_LITE_INSTALL_STAGING = YES +TENSORFLOW_LITE_LICENSE = Apache-2.0 +TENSORFLOW_LITE_LICENSE_FILES = LICENSE +TENSORFLOW_LITE_SUBDIR = tensorflow/lite +TENSORFLOW_LITE_SUPPORTS_IN_SOURCE_BUILD = NO +TENSORFLOW_LITE_DEPENDENCIES += \ + host-pkgconf \ + host-flatbuffers \ + cpuinfo \ + eigen \ + farmhash \ + fft2d \ + flatbuffers \ + gemmlowp \ + libabseil-cpp \ + neon-2-sse \ + ruy \ + xnnpack + +TENSORFLOW_LITE_CONF_OPTS = \ + -Dabsl_DIR=$(STAGING_DIR)/usr/lib/cmake/absl \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -I$(STAGING_DIR)/usr/include/gemmlowp" \ + -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ + -DEigen3_DIR=$(STAGING_DIR)/usr/share/eigen3/cmake \ + -DFARMHASH_SOURCE_DIR=$(FARMHASH_DIR) \ + -Dfarmhash_DIR=$(STAGING_DIR)/usr/lib \ + -DFETCHCONTENT_FULLY_DISCONNECTED=ON \ + -DFETCHCONTENT_QUIET=OFF \ + -DFFT2D_SOURCE_DIR=$(STAGING_DIR)/usr/include/fft2d \ + -DFlatBuffers_DIR=$(STAGING_DIR)/usr/lib/cmake/flatbuffers \ + -DNEON_2_SSE_DIR=$(STAGING_DIR)/usr/lib/cmake/NEON_2_SSE \ + -Dxnnpack_POPULATED=ON \ + -DTFLITE_ENABLE_EXTERNAL_DELEGATE=ON \ + -DTFLITE_ENABLE_GPU=OFF \ + -DTFLITE_ENABLE_INSTALL=ON \ + -DTFLITE_ENABLE_MMAP=ON \ + -DTFLITE_ENABLE_NNAPI=OFF \ + -DTFLITE_ENABLE_RUY=ON \ + -DTFLITE_ENABLE_XNNPACK=ON + +$(eval $(cmake-package))