From patchwork Thu Mar 16 08:34:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757782 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 4PcgYt5883z1yWs for ; Thu, 16 Mar 2023 19:35:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5A65C81321; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5A65C81321 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 kuNb0o_imqLe; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 54AAD81329; Thu, 16 Mar 2023 08:35:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 54AAD81329 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 29A4D1BF3D5 for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 02DE681329 for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 02DE681329 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 8HqWnqxz87oX for ; Thu, 16 Mar 2023 08:35:01 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CB46E81321 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by smtp1.osuosl.org (Postfix) with ESMTPS id CB46E81321 for ; Thu, 16 Mar 2023 08:35:00 +0000 (UTC) Received: by mail-io1-xd2a.google.com with SMTP id b5so469496iow.0 for ; Thu, 16 Mar 2023 01:35:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955699; 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=ejfGx3KL8ico0Of0qmuZnA9+LZavJOlW5yh5+737Nos=; b=WgwJcyqOj5glPF/XPJf2VRanTqfFTarYIxt4XYmvCGdJO3lX+Zgcke/ik8CYj/xLLu vbpnqgGc4xL9Q3PxfQH8XAyyy9G8+xoWY0j0OWQjdPqcdne3XWItsYQKAMkrFH/hqYyS 8lQVLQVD7gVzi827KutmV+RgDIjZH6hnv0xNawkToy4OD7FkvLb9Z6dM4x/cfWihdxgS EweHytxMDDifAmLHwJ242BSGjShkHPHQb9te3Kv1gEt0fglbI6M/M3GRl1og1F17xdG+ uALpFHkaeMtTtFVLBPF/2ASi39ujDclYz+RV9hVVp6QwhEKbagKQoxG/EDbZfYYjPMI6 hOLA== X-Gm-Message-State: AO0yUKU+2kcqD1twlVzezbReqzau/Md8tt5Sn1EgnE0bGAUR078TGoBt Vw4WWVavAXVNuk9e2qJsja+whTR43mGzMg== X-Google-Smtp-Source: AK7set86aBAX1rOhJcN305jOyZPaq2L4DZVFicEeY/cd770vf+aIxYCkLl6FbEp5YQpwYRKfYJ+6kQ== X-Received: by 2002:a5e:cb4d:0:b0:752:2f97:80bb with SMTP id h13-20020a5ecb4d000000b007522f9780bbmr5547153iok.19.1678955699625; Thu, 16 Mar 2023 01:34:59 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:34:59 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:31 -0600 Message-Id: <20230316083440.3466725-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; t=1678955699; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ejfGx3KL8ico0Of0qmuZnA9+LZavJOlW5yh5+737Nos=; b=fPohuLuZ2cWpX6NwjdY8gKEJUSR9mfa8bWhNxR71+Z29+j/Wzyvjqghpng9FD3JS8T LJZxRbDdxdmBEysy6Avrsm3s8qqcx9sHtUaBRuUdrQfxO/dDtWGCkH8TxOiT9toIboZS 3eW5IyhQhx3WzS2/jRG6IWqUm7Bi7rhr/CCXCiy35mUj4GY4G0xGQdqKYqylbKPCCQsT RmsO2bSYSPMhomF9lOxggbqliSnZQJQ8T0/kIVLiwsrk1k3Bn1zMxzaG05IwLfeMkyzi Lj9eRgHL4Al3KQXEOkb/AqE6pMh8MIGuVMnCoI9iIQrhCOPk5LthWkmBzBsCPVZbdt68 6acQ== 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=fPohuLuZ Subject: [Buildroot] [PATCH v6 01/10] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Stefan Hager This package is required by tensorflow-lite. Add a patch removing cpp requirement when not building tests. Tested-by: Stefan Hager Signed-off-by: Stefan Hager Signed-off-by: James Hilliard --- Changes v5 -> v6: - update patch to latest pull request version - add architecture restrictions - update to latest commit Changes v4 -> v5: - don't require cpp Changes v2 -> v3: - move to libraries->hardware handling --- DEVELOPERS | 3 ++ package/Config.in | 1 + ...nly-when-needed-for-tests-benchmarks.patch | 41 +++++++++++++++++++ package/cpuinfo/Config.in | 17 ++++++++ package/cpuinfo/cpuinfo.hash | 4 ++ package/cpuinfo/cpuinfo.mk | 17 ++++++++ 6 files changed, 83 insertions(+) create mode 100644 package/cpuinfo/0001-Enable-CXX-only-when-needed-for-tests-benchmarks.patch 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 b6d288c54f..8ec32087a1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2685,6 +2685,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 0f8dab3e71..60d6a115e0 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1664,6 +1664,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/0001-Enable-CXX-only-when-needed-for-tests-benchmarks.patch b/package/cpuinfo/0001-Enable-CXX-only-when-needed-for-tests-benchmarks.patch new file mode 100644 index 0000000000..7aeef0edc0 --- /dev/null +++ b/package/cpuinfo/0001-Enable-CXX-only-when-needed-for-tests-benchmarks.patch @@ -0,0 +1,41 @@ +From 66dbf4fbe202318860caeab3b1ef9c2fe70e2c4c Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Sun, 29 Jan 2023 16:55:08 -0700 +Subject: [PATCH] Enable CXX only when needed for tests/benchmarks + +Signed-off-by: James Hilliard +[Upstream status: +https://github.com/pytorch/cpuinfo/pull/133] +--- + CMakeLists.txt | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9f4d1d1..9e1c153 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR) + # ---[ Setup project + PROJECT( + cpuinfo +- LANGUAGES C CXX ++ LANGUAGES C + ) + + # ---[ Options. +@@ -103,6 +103,12 @@ ELSEIF(NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|WindowsStore|CYGWIN|MSYS|Darwin| + ENDIF() + ENDIF() + ++IF(CPUINFO_SUPPORTED_PLATFORM) ++ IF(CPUINFO_BUILD_MOCK_TESTS OR CPUINFO_BUILD_UNIT_TESTS OR CPUINFO_BUILD_BENCHMARKS) ++ ENABLE_LANGUAGE(CXX) ++ ENDIF() ++ENDIF() ++ + # ---[ Download deps + SET(CONFU_DEPENDENCIES_SOURCE_DIR ${CMAKE_SOURCE_DIR}/deps + CACHE PATH "Confu-style dependencies source directory") +-- +2.34.1 + diff --git a/package/cpuinfo/Config.in b/package/cpuinfo/Config.in new file mode 100644 index 0000000000..257480f068 --- /dev/null +++ b/package/cpuinfo/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + bool + default y if BR2_aarch64 + default y if BR2_arm + default y if BR2_i386 + default y if BR2_x86_64 + +config BR2_PACKAGE_CPUINFO + bool "cpuinfo" + depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_HAS_THREADS + 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..7dd0d57172 --- /dev/null +++ b/package/cpuinfo/cpuinfo.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 cf243e7ac07cd5e2ac58dcb29f8a9047b7887452212aead2ddf1ceda45cc66dd cpuinfo-eb4a6674bfe9cf91b63b9817412ae5f6862c8432.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..d59513eea3 --- /dev/null +++ b/package/cpuinfo/cpuinfo.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# cpuinfo +# +################################################################################ + +CPUINFO_VERSION = eb4a6674bfe9cf91b63b9817412ae5f6862c8432 +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 Thu Mar 16 08:34:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757783 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 4PcgZ24XNJz1yWs for ; Thu, 16 Mar 2023 19:35:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2962A81334; Thu, 16 Mar 2023 08:35:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2962A81334 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 rBhTXPxF1BEL; Thu, 16 Mar 2023 08:35:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 2896C81F27; Thu, 16 Mar 2023 08:35:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2896C81F27 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 12D3E1BF3D5 for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E0BA2408C2 for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E0BA2408C2 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 t0jQXNfcGNLd for ; Thu, 16 Mar 2023 08:35:01 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 990404088B Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp4.osuosl.org (Postfix) with ESMTPS id 990404088B for ; Thu, 16 Mar 2023 08:35:01 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id m22so450196ioy.4 for ; Thu, 16 Mar 2023 01:35:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955700; 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=fVHa0VpG7UiY+MPspdvIj7S1FvnvESv4LoUOBIVGOXY=; b=liBk6A7nr1aQM/uvieG9gGr3v+Mjfg5vF8hJDQXRimHQ4pBj5m2z7e93fdt1d9iVIx +P2H8884KDrzZieyUM7xr90W6eka/F4yx55tNpvU6bMFY1+GUP/NZ7fhMoJy0S9Wi41y I5FFgMWfkduZZFjNj9tLAmXqxPtGJA0KqT0qyuD0ndnOYjxUsKjnFn/05hvLxCY17QyK XN/5Q672cYxx4PLULAhAjwonkBO3ByJysVPDM357vZTIBIin4y8YuFc2QtemYExGKLNh iC+GCRkAbsLIVWi8DCJiCCknBcjOS5OWUrNW0gELJM+eroeLENavu5wsNXYRXeiLn9Vk 4Wng== X-Gm-Message-State: AO0yUKWO9SvxHKGX/cJsP4tEoDJbRI0cLofkHwuXkO9EC6+VhFoRYFNN EQlmT8Y/SBvXGghiGIK6JZ+NH/O4082Q3Q== X-Google-Smtp-Source: AK7set/duIoPNuuIPXJA2XolOo2CtJA79pKxk1mRCA9c5ecj4peHMQPzzURJoYWUgpOXZdVVp4p4vg== X-Received: by 2002:a5d:9cca:0:b0:753:738e:f90b with SMTP id w10-20020a5d9cca000000b00753738ef90bmr87551iow.3.1678955700431; Thu, 16 Mar 2023 01:35:00 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:34:59 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:32 -0600 Message-Id: <20230316083440.3466725-2-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955700; 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=fVHa0VpG7UiY+MPspdvIj7S1FvnvESv4LoUOBIVGOXY=; b=H+u7ArtIF5Ulh30IkytdhlnrPHHYdCo60f/3Ho9C3d1ckTeDSYqWt7HJw9TzQDOhEv AdP47SDq6pY+DlruYq9Lep5y1/WgEavQsFhnKxw2wbGH/Q9l822HGQsoR/4nOwezDOHG Q+WrP41Bz9Trhp2QiVRvsUIWvxumBA55GcYlhkaB3B2YNxxY/twsDbFa76q1L5tyaCb2 IBEcJ4KbDiyWwhxz81Eyec9rTXFpEGXXcjobhewiaFGFQAJ3Eer5dOKJm7u1A2c0gLJW gwNSvxNC02AzC3R4Yvk/P5Zh/XdNk3KngAx+2yjCusW1YaUgdpRF5D8MNYpUnQp7EJZ/ WYmw== 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=H+u7ArtI Subject: [Buildroot] [PATCH v6 02/10] 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 , 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 v5 -> v6: - add architecture dependency - update to latest version Changes v2 -> v3: - add C++14 dependency --- DEVELOPERS | 1 + package/Config.in | 1 + package/ruy/Config.in | 22 ++++++++++++++++++++++ package/ruy/ruy.hash | 4 ++++ package/ruy/ruy.mk | 18 ++++++++++++++++++ 5 files changed, 46 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 8ec32087a1..c338125a53 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2687,6 +2687,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 60d6a115e0..7ff1bfb088 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2146,6 +2146,7 @@ endif source "package/qlibc/Config.in" source "package/reproc/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..cc137a403c --- /dev/null +++ b/package/ruy/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_RUY_ARCH_SUPPORTS + bool + default y if BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + +config BR2_PACKAGE_RUY + bool "ruy" + depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 + depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo + 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, threads" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/ruy/ruy.hash b/package/ruy/ruy.hash new file mode 100644 index 0000000000..675b457b1c --- /dev/null +++ b/package/ruy/ruy.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 e151a5b55059a6e83ded001787e1a8889ba1e5e4eaa5bc836b9b660e7e1cb519 ruy-21a85fef159f9942f636a43b14c64b481c2a05b2.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..1e8141f91b --- /dev/null +++ b/package/ruy/ruy.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# ruy +# +################################################################################ + +RUY_VERSION = 21a85fef159f9942f636a43b14c64b481c2a05b2 +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 Thu Mar 16 08:34:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757784 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 4PcgZH5JTLz1yWs for ; Thu, 16 Mar 2023 19:35:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1F8A581EE7; Thu, 16 Mar 2023 08:35:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1F8A581EE7 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 wHcHPh_zTkJ7; Thu, 16 Mar 2023 08:35:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 619E681F16; Thu, 16 Mar 2023 08:35:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 619E681F16 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 0A8241BF3D5 for ; Thu, 16 Mar 2023 08:35:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A0ED8408D4 for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A0ED8408D4 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 38Wz8MTw0O7N for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5A899408A5 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5A899408A5 for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) Received: by mail-il1-x134.google.com with SMTP id h11so569823ild.11 for ; Thu, 16 Mar 2023 01:35:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955701; 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=gRx1NzVqlHa2pPRR06wITgCIV8S7jAfw33E1YQYcZh4=; b=3RlTEpSEC3yO2wh4CeFRHbjpGLMMC8gMrUJaMiSb8PzbcF/uiZ+ebtBmv8bvas0sil CwMHKxpob6gsW5uuvklbnHZ3X0rIypHgYxMGDpRDtBt+LdXtXjWKv86UMMqsBxQi1vRG yuBawbTCtnN4l96xoTsD1WbDF23PaJbYQCXZUpO+FIt9hSm+GLpKwh2hTi13PeZg8TuE YpaGGADnrJOnfYxEgn0nyyDXgLcxGV34AvM+nYps8CYF3coSgTaBbjhIXdb+cg4jrdjN TemjYsOpgbScTChynFuf5vVrmlKv7f+5lKQKvbPjf6f17lw30H4xgIGFWwg9W84op+3J xcHg== X-Gm-Message-State: AO0yUKWmOSmzqERlifmhuA0VTHR5eEAl2632E9HlVHoh8/pgjWzcTSnF 9bXr9ERyTYquwcMGlPZfUKlCt8mNIsn7Tw== X-Google-Smtp-Source: AK7set9/ROe5mMOG50WSoyCw9SMNFyyD6i/QOMWD+oaXmeggjEPebpOjHnhTvnHrfaQzQqQekGAsRw== X-Received: by 2002:a92:c54b:0:b0:322:fcb1:878a with SMTP id a11-20020a92c54b000000b00322fcb1878amr9605791ilj.29.1678955701193; Thu, 16 Mar 2023 01:35:01 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:00 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:33 -0600 Message-Id: <20230316083440.3466725-3-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955701; 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=gRx1NzVqlHa2pPRR06wITgCIV8S7jAfw33E1YQYcZh4=; b=UZX4nT1GPDUV1bULC55TqB+z8bIZxee17Od8bOr9XJbXJ3oqQVPyjbMVdC11Kfo4Ps ZpmDYc+HEtBwycw2bpBz9e4QAxJpSfeKLfOCdLIXCKPykRC5rG6GpXGuxdC2T+wuH6Lu SKcV0Pf7A6sBly1DloHbOQZYHKYpT/2tnQ2oUQfe6VjGloMuSHqBNJLIrbyPDIB/GY1p iTpbMHQVvhvZriqvz05FG3vq+ViXG/BDeOQJlVdU2bDtyIiuJmoXVt6lqk+sWv03PZkY 5gseeIB81t0LJU+3rwW9GQ6O2VcC+4ZjrGfOypF3DNEGzBqoL7zFuzEiL834m5X+OfQb ne7A== 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=UZX4nT1G Subject: [Buildroot] [PATCH v6 03/10] 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 , 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 v4 -> v5: - add comment indicating library is header only 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 | 16 ++++++++++++++++ 5 files changed, 34 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 c338125a53..40df433fbc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2687,6 +2687,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 7ff1bfb088..f506d79b0b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2039,6 +2039,7 @@ menu "Other" source "package/fxdiv/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..9489dccbe5 --- /dev/null +++ b/package/gemmlowp/gemmlowp.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# 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 +# Only installs a header +GEMMLOWP_INSTALL_TARGET = NO +GEMMLOWP_SUBDIR = contrib + +$(eval $(cmake-package)) From patchwork Thu Mar 16 08:34:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757785 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 4PcgZW1clsz1yWs for ; Thu, 16 Mar 2023 19:35:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 960F080D4B; Thu, 16 Mar 2023 08:35:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 960F080D4B 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 Ax5D5Kw1U9du; Thu, 16 Mar 2023 08:35:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id BDC4C81F34; Thu, 16 Mar 2023 08:35:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org BDC4C81F34 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 118221BF3D5 for ; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2445C408D4 for ; Thu, 16 Mar 2023 08:35:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2445C408D4 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 OLuLa0ifBqdl for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0AEA84088B 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 0AEA84088B for ; Thu, 16 Mar 2023 08:35:02 +0000 (UTC) Received: by mail-io1-xd2c.google.com with SMTP id v10so441595iol.9 for ; Thu, 16 Mar 2023 01:35:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955702; 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=KwXXl0giUgyKoe5wVt66Qe7L2qfEKr/ue2R/xzeZWxg=; b=VPuZjNJTeebrx0xDEWy4He0f4A7uFd50Ohkmkwho5difkump4GEWTwJs3IRAfuWU7/ OtA3w+XfS+MHoNoK/tfwztTyh/1ciTVrE34HX/qopzNwz1PDyYvGzj++2Jyd4EaYdugp Am+zbTR9jhD6L7z9Uw55oL650Dn3R4pJfna23DPAtgm34bY3/+/B+JfaxGnLuPmCf8gs KQaLvWweQm/mYDs5BHi8x5k5lskIkxCYP5FuMw3K+weeYt1od1fm5ab4/ye4XMaZ35io P8QsXdXcl8+mK2EZPZ9cdAuYI1wOjshJeW67I7PyZHvFHsyqCxy081piibaih0/TqYLF 3xww== X-Gm-Message-State: AO0yUKUDyXrzu6Twa4FMLYUarWsALLJ/0XITnbFCJEI2bZIlzF0TbWOp 5YfhHGQKuzPVx0yz3j3CeCB0VL+d2f8PBQ== X-Google-Smtp-Source: AK7set+yW8hz4TtCy9YWSGk881MOH3i05jymVtJUUvAXnfw/S4hrmI8omq981sFCd4B+SxQLpWkZRg== X-Received: by 2002:a6b:b20b:0:b0:753:26e4:4e43 with SMTP id b11-20020a6bb20b000000b0075326e44e43mr731000iof.2.1678955701911; Thu, 16 Mar 2023 01:35:01 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:01 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:34 -0600 Message-Id: <20230316083440.3466725-4-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955702; 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=KwXXl0giUgyKoe5wVt66Qe7L2qfEKr/ue2R/xzeZWxg=; b=Tfn6h+9eCEMO+2cgKpGcCPOpxY/PJoc2FTc/mn3RrBdioplVqjBWuv0DJs9WNM0WrZ XwQcJycgvhegz5hDpkI8CvzmriRWwC8HV+5DVzTtMlq1CGgWvaX/qA7bc2bIX7UiuZeA AkbnIGc6iH3Iq3OdZ8+Y0NBDRU9oGqYTSeSfnCJCcLL2UIRnqntgt4pS//vWS2RZxLfW BOVRKHZKR8YAfikyoik1S6RqqNc13QtWWc0l+7molfZgFEf6iuFhLEnXaerVgYkz6Anf /73zjHEJomk3/0muhsPwp112VgtRQvGxdggqeGbd6rbCMjKkgEm3pesXsCp4eLfJklvd xzHg== 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=Tfn6h+9e Subject: [Buildroot] [PATCH v6 04/10] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- Changes v5 -> v6: - update to latest version --- 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 40df433fbc..b0cabbc4f4 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2688,6 +2688,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ F: package/gemmlowp/ +F: package/pthreadpool/ F: package/ruy/ N: Stefan Ott diff --git a/package/Config.in b/package/Config.in index f506d79b0b..6dafc7cb5c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2143,6 +2143,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/reproc/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..8f15132595 --- /dev/null +++ b/package/pthreadpool/pthreadpool.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 6b0018ce7c926b718ed3ecbed1e48c8a083df60529b33ef2c7232260d3c32f61 pthreadpool-edeb5d6b967bef092ff195ab40e216fa5ac11f61.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..75327951df --- /dev/null +++ b/package/pthreadpool/pthreadpool.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# pthreadpool +# +################################################################################ + +PTHREADPOOL_VERSION = edeb5d6b967bef092ff195ab40e216fa5ac11f61 +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 Thu Mar 16 08:34:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757786 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 4PcgZl5tSSz1yWs for ; Thu, 16 Mar 2023 19:35:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 159CE813AC; Thu, 16 Mar 2023 08:35:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 159CE813AC 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 gMGeBd8V4VzH; Thu, 16 Mar 2023 08:35:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 3DA7C81EE7; Thu, 16 Mar 2023 08:35:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3DA7C81EE7 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 02B2E1BF3D5 for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 61FDA4088B for ; Thu, 16 Mar 2023 08:35:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 61FDA4088B 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 Ir2dETogiei7 for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1E200408C2 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp4.osuosl.org (Postfix) with ESMTPS id 1E200408C2 for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id m22so450226ioy.4 for ; Thu, 16 Mar 2023 01:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955702; 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=aKZH/8y47uFbVWwCrt4QI2iDNLDvm+qDfeCIvd7o6fI=; b=7GdNvE6yiYbs96nVIz/8x1Buut+76uAvgMNg9MsOYcUY5z24APL3TZ95+Pw04SsG2O Jn6GhYt63OOM06CS2LzM+ijU9mGjh4Jgsp3iW3sLetpl/fKNP5JnOxrKQ1h9BsOyBlIi fIa2iUeGdO0cpBAwxuzXbsGwehCc+21s/cS9vDC7WJC97Dy5NwTKaQRFBNj3aH71aOXn zs9JfGGzdNvHIHZBVT+A0Ln/oAWrTBvaR0XwOV8MZt3muA9CsSuJbv43fyp7aa1KUCdR cKx605fEYryiFfaXSM9hqvKRJ5IIMqLDaM97V//SNCt/xvL2jJohjoUvEjQvaG2cg0zq rzJw== X-Gm-Message-State: AO0yUKXOblRDovtQuDU2+aIOT4q0q0WWBf4zfMRh/Ih76+BOrhTZzc8D Dh8VyG6BIBmyB3N5T3VaD+/pa3r9UjlzTQ== X-Google-Smtp-Source: AK7set9wFFRA2u2gWxR+4KuHjsOTzAumvdi0zxWkdvqJ+LY9Dyg/fkg4w93CbU7/D28OSqnrLmsMVA== X-Received: by 2002:a5d:84d1:0:b0:752:97db:538e with SMTP id z17-20020a5d84d1000000b0075297db538emr4224767ior.21.1678955702579; Thu, 16 Mar 2023 01:35:02 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:02 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:35 -0600 Message-Id: <20230316083440.3466725-5-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955702; 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=aKZH/8y47uFbVWwCrt4QI2iDNLDvm+qDfeCIvd7o6fI=; b=jEIfMFEByq3EOpHU3NrT3rGUmfavsxdEnpAGEvC/aVGlv0xuKIoGUq9tcVioq8pdoX CFuMs1aut9FdoQBEpRp5kpLxTC1/wcKLcB9enng8j1U3X40lBBm0T8dVD+fP+8ZyJ0Ac 4ih/br+y5/GyazvN9k/noNq+LwRS7ETk9feRs52iNeeFhfa6Yfi1R4mM4dEA0FTzAjHH Exh41/G7k02ClqkYzUPW1IamnFVlJXPkGCVVIsI3CZC6Z/fz7WTEUjbu2vj9FxUGu7Qo 9U0DYaKn/wXKDSxZZWxqVgI0hCHrq6UxjgTWDsyyRoizP7rdZG7cyrpzeTGCmG8i1PP/ uFFw== 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=jEIfMFEB Subject: [Buildroot] [PATCH v6 05/10] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- Changes v4 -> v5: - add comment indicating library is header only --- DEVELOPERS | 1 + package/Config.in | 1 + package/psimd/Config.in | 6 ++++++ package/psimd/psimd.hash | 4 ++++ package/psimd/psimd.mk | 15 +++++++++++++++ 5 files changed, 27 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 b0cabbc4f4..24c571544d 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2688,6 +2688,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ F: package/gemmlowp/ +F: package/psimd/ F: package/pthreadpool/ F: package/ruy/ diff --git a/package/Config.in b/package/Config.in index 6dafc7cb5c..ac9241f18b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2143,6 +2143,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..be0090a32f --- /dev/null +++ b/package/psimd/psimd.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# psimd +# +################################################################################ + +PSIMD_VERSION = 072586a71b55b7f8c584153d223e95687148a900 +PSIMD_SITE = $(call github,Maratyszcza,psimd,$(PSIMD_VERSION)) +PSIMD_LICENSE = MIT +PSIMD_LICENSE_FILES = LICENSE +PSIMD_INSTALL_STAGING = YES +# Only installs a header +PSIMD_INSTALL_TARGET = NO + +$(eval $(cmake-package)) From patchwork Thu Mar 16 08:34:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757788 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 4PcgbF4PMPz1yWs for ; Thu, 16 Mar 2023 19:36:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C669581F33; Thu, 16 Mar 2023 08:36:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C669581F33 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 so6Ruba9mjux; Thu, 16 Mar 2023 08:36:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id CD94381F47; Thu, 16 Mar 2023 08:36:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CD94381F47 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 16BE71BF3D5 for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4D910408D4 for ; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4D910408D4 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 IZYWIdMs1NpD for ; Thu, 16 Mar 2023 08:35:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D39D6408A5 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp4.osuosl.org (Postfix) with ESMTPS id D39D6408A5 for ; Thu, 16 Mar 2023 08:35:03 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id m22so450239ioy.4 for ; Thu, 16 Mar 2023 01:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955703; 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=6ToZBQfiHuQuDFKwD93uO4eXCNw/XmN8vvT493SXP+4=; b=5mrebc94bxBdRGc+Cb1GGsGJuEqiN0LwT2kYQUd4vzvfEtqJDmZOTxXUIMR4rdGdVe nsfL8MzpKkq8Rvxjj5q44Enf3secSvJYNCz2ibfp+pufDZCyJnvJXQUVg5sJdj1EDPre D1SVRUekCkLLYB6y+2519Rkohbesq+58qkTN5w5UTddwcAKjGLetUOJcc5/Gsg+WKNyK pDHkCOk1o1TUYabhQJGhMeDfTg/8UvQG2q5A7uQUO9fyAYxp+EGVA/7dVZJpSnjP6ma+ H5hN406zJOzJHXcEUTniIz/Q6o/pxJiCxzIN80c0WjQakQOMIWPph+9MFCKvFcIcMEdp +jvA== X-Gm-Message-State: AO0yUKXrom+HXN3SSjsQphfUqi3qhlnINgZVTq7Frgc1KhtLVTeyMFkF 8IAT5uYGgEctgVuxwnQa+PzcFJ9AcVDHrQ== X-Google-Smtp-Source: AK7set9TyX9Xm4i2HcdWBCyuBTr1RQbhfS1UYTCzyjPiF+2QTWdvFVVuFMB6p4W7sIlJS5BkSeV/Mg== X-Received: by 2002:a6b:d601:0:b0:74f:a1c6:762 with SMTP id w1-20020a6bd601000000b0074fa1c60762mr5806751ioa.11.1678955703289; Thu, 16 Mar 2023 01:35:03 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:02 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:36 -0600 Message-Id: <20230316083440.3466725-6-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955703; 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=6ToZBQfiHuQuDFKwD93uO4eXCNw/XmN8vvT493SXP+4=; b=DgJcK7ZrpQwoG3uRicS5OOQzg9LErbG+6/0cQKzwxP0jn7m0XNIIJackkM1eNBFg2d JnMqdxNKS4D7Sx9/sFFFNQXJ07KXAuZMlJ5AI/hKwUdR4jhSz4820y9EzwrjcH3c1Q/L q8oHx9Bp1h/TKlzCUZEHWIZd2PvP2SBHFUi52DK/kLBq+00RSbTyDi0QEttm6DfXFtNl Ff2e+yIgEPL+qHTrfk1Sif66m0uhZn/6xH19meSUGraDOuB/D2UtO7aV0n21M83A58jn ZpGDjE4zqYZmUCvDA7kYuO3hTJ6a0mBpSiGoRE0mBQ9Pgr+TFP+cLlsFLxu5UJ967E44 Apdg== 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=DgJcK7Zr Subject: [Buildroot] [PATCH v6 06/10] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. We need to add a patch to remove the c++ requirement. Signed-off-by: James Hilliard --- Changes v5 -> v6: - add patch fixing build without c++ Changes v4 -> v5: - add comment indicating library is header only --- DEVELOPERS | 1 + package/Config.in | 1 + ...le-CXX-unless-building-tests-benchma.patch | 48 +++++++++++++++++++ package/fp16/Config.in | 8 ++++ package/fp16/fp16.hash | 4 ++ package/fp16/fp16.mk | 20 ++++++++ 6 files changed, 82 insertions(+) create mode 100644 package/fp16/0001-CMake-don-t-enable-CXX-unless-building-tests-benchma.patch 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 24c571544d..12b33c5fbc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2687,6 +2687,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/fp16/ F: package/gemmlowp/ F: package/psimd/ F: package/pthreadpool/ diff --git a/package/Config.in b/package/Config.in index ac9241f18b..4878e8ba2f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2036,6 +2036,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/0001-CMake-don-t-enable-CXX-unless-building-tests-benchma.patch b/package/fp16/0001-CMake-don-t-enable-CXX-unless-building-tests-benchma.patch new file mode 100644 index 0000000000..b3c5219d59 --- /dev/null +++ b/package/fp16/0001-CMake-don-t-enable-CXX-unless-building-tests-benchma.patch @@ -0,0 +1,48 @@ +From eba14b5277ed8f155eb333f4bbe9f99366e3dece Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Sun, 29 Jan 2023 21:43:50 -0700 +Subject: [PATCH] CMake: don't enable CXX unless building tests/benchmarks + +We only need CXX support when building tests/benchmarks. + +Fixes: +CMake Error at CMakeLists.txt:6 (PROJECT): + No CMAKE_CXX_COMPILER could be found. + + Tell CMake where to find the compiler by setting either the environment + variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path + to the compiler, or to the compiler name if it is in the PATH. + +Signed-off-by: James Hilliard +[Upstream status: +https://github.com/Maratyszcza/FP16/pull/22] +--- + CMakeLists.txt | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5e7d127..8028c07 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,13 +3,17 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) + INCLUDE(GNUInstallDirs) + + # ---[ Project +-PROJECT(FP16 C CXX) ++PROJECT(FP16 C) + + # ---[ Options. + OPTION(FP16_BUILD_TESTS "Build FP16 unit tests" ON) + OPTION(FP16_BUILD_BENCHMARKS "Build FP16 micro-benchmarks" ON) + + # ---[ CMake options ++IF(FP16_BUILD_TESTS OR FP16_BUILD_BENCHMARKS) ++ ENABLE_LANGUAGE(CXX) ++ENDIF() ++ + IF(FP16_BUILD_TESTS) + ENABLE_TESTING() + ENDIF() +-- +2.34.1 + 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..80710523fb --- /dev/null +++ b/package/fp16/fp16.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# fp16 +# +################################################################################ + +FP16_VERSION = 0a92994d729ff76a58f692d3028ca1b64b145d91 +FP16_SITE = $(call github,Maratyszcza,FP16,$(FP16_VERSION)) +FP16_LICENSE = MIT +FP16_LICENSE_FILES = LICENSE +FP16_INSTALL_STAGING = YES +# Only installs a header +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 Thu Mar 16 08:34:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757787 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 4Pcgb05ckVz1yWs for ; Thu, 16 Mar 2023 19:36:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0274581F16; Thu, 16 Mar 2023 08:36:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0274581F16 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 scjG8c-m0kt0; Thu, 16 Mar 2023 08:36:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 1A4B981F2A; Thu, 16 Mar 2023 08:36:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1A4B981F2A 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 60BF71BF3D5 for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3C1D5402C3 for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3C1D5402C3 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 IBMdwzgUEkjB for ; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 32E3140220 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by smtp2.osuosl.org (Postfix) with ESMTPS id 32E3140220 for ; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) Received: by mail-il1-x12a.google.com with SMTP id bp11so589403ilb.3 for ; Thu, 16 Mar 2023 01:35:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955704; 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=7Cc94vvj6E6WXnIdYmgxfrMKZsthMeTNXsD8GKMfEPo=; b=MaqYt7ivZ2IuYHqp1gWfTq2jezqgry44R7zNY2kZXSHWJMlK7Oz+pA8+pB1NT3Jg7a 1EAh9ViZMmZVO8MuBzLUf4i4BHwrboHsgWaBOFchH5IXcXbfneKh+GkXbt3L0uMeSTzD Asqhc9fae34yk/hmUhH7tFy6USPmTjYafUKENDN30r6/900FP526bc+adhPVeVOWLPt7 BrLJl5nP6FGtxxHrvq9aRl0vN0lCQO81x4so4jVu5SrWSQabIIfRJbrJveezuh/0+zxS GMqZLZ80/Gl6vLOJrUX9X06/Lry7Q769IuhD/3gCZKZsmPneMQFo1vb9XWQ9VQNUUVbg No2w== X-Gm-Message-State: AO0yUKU2EDZJFaYMN78nSxqu6POugqfSKAE2YTXqSyutZ5/NGosMqMQi hn872CSeKODPmsNsXEycMew+USokq9quWA== X-Google-Smtp-Source: AK7set+ZYrR5CwwfuAV+TOcFB3mc/zvt4ndT0/TOm1JcwikjV9bm37z6/idS0XSIyOtjBz4s7Of1bw== X-Received: by 2002:a92:c909:0:b0:318:a974:ab4a with SMTP id t9-20020a92c909000000b00318a974ab4amr6638872ilp.6.1678955703997; Thu, 16 Mar 2023 01:35:03 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:03 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:37 -0600 Message-Id: <20230316083440.3466725-7-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955704; 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=7Cc94vvj6E6WXnIdYmgxfrMKZsthMeTNXsD8GKMfEPo=; b=AuwYbAUpOccNyO3Wz4mOXNGrL7tzIpHILuxvP8qzSQRpaL+z44gPKxEgc2e39/vZEY ZzkSjXsgrCTfdrOLzm0JMFgef0/BH+U+NMeztqKMc5SFXcMPDpfq7oZDv1tOQG9rswNE zfgkmMV2oay2Dok7gV4w4fuqIvW0feHwlMeRu3F+Tlw/UQhu2+WZMBlS74r+R5jbEw6q +rECnondUNNj8hQY47bCDj/bPovXwNWDQINVpKtty2uBcu75v+AJ7dVgWOLy4asgI+C5 xSRgdpwAedM5Ec7RRLOQ6vAygqlrJg1eGqFi9x5hr13dePqm9ph1daqkHI6cHNAlmp5v cCcA== 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=AuwYbAUp Subject: [Buildroot] [PATCH v6 07/10] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package is required by tensorflow-lite. Signed-off-by: James Hilliard --- Changes v5 -> v6: - add architecture dependency - update to latest version --- DEVELOPERS | 1 + package/Config.in | 1 + package/xnnpack/Config.in | 27 +++++++++++++++++++++++++++ package/xnnpack/xnnpack.hash | 4 ++++ package/xnnpack/xnnpack.mk | 18 ++++++++++++++++++ 5 files changed, 51 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 12b33c5fbc..90c0508105 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2692,6 +2692,7 @@ F: package/gemmlowp/ 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 4878e8ba2f..6f6c5beca8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2163,6 +2163,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..1b186ac055 --- /dev/null +++ b/package/xnnpack/Config.in @@ -0,0 +1,27 @@ +config BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS + bool + default y if BR2_aarch64 + default y if BR2_arm + default y if BR2_i386 + default y if BR2_x86_64 + depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + +config BR2_PACKAGE_XNNPACK + bool "xnnpack" + depends on BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 + depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo + 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, threads" + depends on !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/xnnpack/xnnpack.hash b/package/xnnpack/xnnpack.hash new file mode 100644 index 0000000000..e31eb690e2 --- /dev/null +++ b/package/xnnpack/xnnpack.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 fb519d082e5fcaa11e849386ad00e38b9ebde2cc9363032394516cd0d00295c3 xnnpack-e4b2b942b4a6d84b680ed690fee42ae99865945c.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..f53f45dc74 --- /dev/null +++ b/package/xnnpack/xnnpack.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# xnnpack +# +################################################################################ + +XNNPACK_VERSION = e4b2b942b4a6d84b680ed690fee42ae99865945c +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 Thu Mar 16 08:34:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757789 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 4PcgbX53qcz1yWs for ; Thu, 16 Mar 2023 19:36:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 14FE6813AC; Thu, 16 Mar 2023 08:36:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 14FE6813AC 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 vF6YaGqZpiXE; Thu, 16 Mar 2023 08:36:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 097A981F27; Thu, 16 Mar 2023 08:36:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 097A981F27 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 5A8521BF97E for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 32C0D60F6E for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 32C0D60F6E 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 C-drKiKqAxvB for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E36BA60F66 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 E36BA60F66 for ; Thu, 16 Mar 2023 08:35:05 +0000 (UTC) Received: by mail-io1-xd34.google.com with SMTP id s4so437124ioj.11 for ; Thu, 16 Mar 2023 01:35:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955705; 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=ZfgLnS9FHedGhpQJSi3RfeuXC2+qCco5zgV5BgAKMio=; b=I+PkDUQi9lOtsbLOj5lUb1byHe7MLHfR+6UV1YuhaIdHsjauivG+26ttJPpRJwcYbM Y7x9JC6zxQjTJ+Ba0bpNtXm5MdQqe9T29h9ZktqwbXVpj+2EEMEDXbHkiT8bgKZukHxx /zlHsxBxQyWH+r02nWHgAoMLpZRUw0ZN1TA5c1eFv3F87aOnJpO2WxwK5scKtIskkKKn 6kdV8omoZIhPS2Ix23kkfl9tLToG1daYNzH9dIWt0OzDxh02bYo+uUogFfcz8Xtwiugb r+0qV7rInqDjoDjJhfZ1aGpHaBHzSG+4vqw+1BDempctooeLyGOEmF0RDRUSNVWdZ1if 1svQ== X-Gm-Message-State: AO0yUKX502dEusSNtfFGXvH9JV3M0ZknaoTFBCj/aOWl1rl7tccLx2Uo V5rJ1Z/cXDZRUPKDytRyMsmcV6otjUpnpw== X-Google-Smtp-Source: AK7set889XgE3YlHEyefyon9X70OcDF9bvTsrE/Wny37wgvmLfRFf3dmNlEEhwAlWF4XeWbZo3KRFg== X-Received: by 2002:a6b:a07:0:b0:74c:a9a5:2c56 with SMTP id z7-20020a6b0a07000000b0074ca9a52c56mr27706038ioi.21.1678955704724; Thu, 16 Mar 2023 01:35:04 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:04 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:38 -0600 Message-Id: <20230316083440.3466725-8-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955705; 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=ZfgLnS9FHedGhpQJSi3RfeuXC2+qCco5zgV5BgAKMio=; b=HpS3Sc8mEV+zE6/Tyd3eYOcih+oI6W0bHCk40tsxBu1AG/z+Lxdwcnt79008F+jXwh kjeXhmh++ylaEx4w1k6hu/3t2rlMaMUtaIIDuXsmm6FgeP4RkmPln7JEVfcryzjErY3P YZgmJaCbfw0pKsfmywG0PkYDSsavwZf1/0nuCpqJ/G3N4ACeWexIv2Vs6p3biigJup8I PsC+dt2YiYcjAIWpsXU4CCrghGQfVTo8+JOBtUi7etv2oobvsRY6Rn8ant1qV03JLv+4 ZeUiod77ktJDvRfTX9EtbnqC7xKVHUPPlGXcEFns73lSH8fS6zwlFOZWJ8jAThZ0LS1e 1+lA== 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=HpS3Sc8m Subject: [Buildroot] [PATCH v6 08/10] 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 , 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 v4 -> v5: - add comment indicating library is header/source only 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 | 23 +++++++++++++++++++++++ 5 files changed, 36 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 90c0508105..da79dd3022 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2688,6 +2688,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ F: package/fp16/ +F: package/fft2d/ F: package/gemmlowp/ F: package/psimd/ F: package/pthreadpool/ diff --git a/package/Config.in b/package/Config.in index 6f6c5beca8..893d5facdc 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2032,6 +2032,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..781b545e2e --- /dev/null +++ b/package/fft2d/fft2d.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# 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 +# Only installs headers/sources +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 Thu Mar 16 08:34:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757790 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 4Pcgbx0L0Dz1yWs for ; Thu, 16 Mar 2023 19:37:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 65C3481F10; Thu, 16 Mar 2023 08:36:59 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 65C3481F10 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 pFA5H-r6bWRO; Thu, 16 Mar 2023 08:36:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 8046581F33; Thu, 16 Mar 2023 08:36:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8046581F33 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 238631BF3D5 for ; Thu, 16 Mar 2023 08:35:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 448E2408FA for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 448E2408FA 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 lgIedPkAx5z9 for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0E6DC4088B Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by smtp4.osuosl.org (Postfix) with ESMTPS id 0E6DC4088B for ; Thu, 16 Mar 2023 08:35:06 +0000 (UTC) Received: by mail-io1-xd2b.google.com with SMTP id m22so450267ioy.4 for ; Thu, 16 Mar 2023 01:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955705; 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=uJgRkKlvX0OfRb5+6K6JT28q5xlVLHhsC/mvxLTPcQo=; b=PU4xzofI0Vb7CYRAsLU4DALEzHfLA6O4kmbEGqK125Dw25ZN0plot1NWJXPysAoHrG pE6PVBALGGK+s2/RSXXlyNaYI1KbXJIvSRWFzh2iPusneylJhQDGnfc0wsTZ4gni4t2X YyWVP3YNHV4B2yr6g8BZK9DdzIJXxIr+UzLhMNl+TZyoOQDfr31CIcu0naL8+57Sg1i+ gbPpgOEBr7d3wXU0vr+w4EgYc2DVJwNBAQcg7f9+mXUyW6VNalM6g1ApVBNPGJHTADPT q4WzDz8SavIstbN0+56lS2zgBwgY6SwrJXhQXg2DGrm/CHN8NlfDWRgZHWnuwVZmIX7A LYYw== X-Gm-Message-State: AO0yUKUUYAPW0absiyBkEcTYLRm85dueI3xI5awZC+zv8tZz7szpwkvw p1nOiAwBtj8pLt6JAn890xGWyQ8mG3PLUQ== X-Google-Smtp-Source: AK7set+lV91SpCDr05ahjTyd4HAhvTZp74VVem8g81/eUSDybE33ZjyEdXDcKhXNMk1ZHvTQsj3Bjw== X-Received: by 2002:a6b:cf05:0:b0:74c:9907:e5b4 with SMTP id o5-20020a6bcf05000000b0074c9907e5b4mr12632211ioa.6.1678955705492; Thu, 16 Mar 2023 01:35:05 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:05 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:39 -0600 Message-Id: <20230316083440.3466725-9-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955705; 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=uJgRkKlvX0OfRb5+6K6JT28q5xlVLHhsC/mvxLTPcQo=; b=QxJ8xSWwyOF3pyyBf6/2MPk/mJt19xfrWWFoSmdqqcANXzFQVNP+wdKocjE87RASqY bmS1LF7V9WH9sqhy4LvFxJi6Ssx9j1lNSm8VaNKjWmyJSk2xyfuWoSWtrR3XIQB07g7w 5A4gmsn+adaRaVlCC099vx3Twx5joWB4H8z5VWS7/bflWJY80JInJnppOWMTids7ke6O KIOgDfhC1/Ph0bWlynuK63qG2iW2lJdP0pA+sPaiMtxH2IcAh7MB2OwXHL3BcnrZBqXS +X7hrtdtLPDuSXyC+4D1SBoSGp0se40YmFVYwmsnz0I30a7omnKgTcjWkE8PxqEWLEhx gIeQ== 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=QxJ8xSWw Subject: [Buildroot] [PATCH v6 09/10] 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 , 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 da79dd3022..678c027898 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2687,6 +2687,7 @@ F: package/ti-gfx/ N: Stefan Hager F: package/cpuinfo/ +F: package/farmhash/ F: package/fp16/ F: package/fft2d/ F: package/gemmlowp/ diff --git a/package/Config.in b/package/Config.in index 893d5facdc..8969672e42 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2032,6 +2032,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 Thu Mar 16 08:34:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1757791 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 4Pcgc040nnz1yWs for ; Thu, 16 Mar 2023 19:37:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D2DA881F5B; Thu, 16 Mar 2023 08:37:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D2DA881F5B 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 dzLNPpX1NtNS; Thu, 16 Mar 2023 08:37:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 7898981F55; Thu, 16 Mar 2023 08:37:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7898981F55 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 A1DE31BF3D5 for ; Thu, 16 Mar 2023 08:35:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7BA29408A5 for ; Thu, 16 Mar 2023 08:35:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7BA29408A5 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 NFGNh0VsPwFc for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9525B4095F Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by smtp4.osuosl.org (Postfix) with ESMTPS id 9525B4095F for ; Thu, 16 Mar 2023 08:35:07 +0000 (UTC) Received: by mail-il1-x12e.google.com with SMTP id y12so586662ilq.4 for ; Thu, 16 Mar 2023 01:35:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678955706; 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=yl63kMzE4uILLpW6g48oY+bJTjEKC0sHkAg8AGKyoPE=; b=TiOxfOLwiHFgsYRX159AQOKPhAGwzrAJ8xdVPpbMIb0aUCt6dSPHRRibQdPGp/Cj0N 3yKDl/lKElq8u2fRNbbuNNTNzsWN777NuPEmmdFvFVpqG37LXJxljVhN9t9LL/H5cLDh V3NOZiR5i+dQopsHd75+M1h4oraBt2kkPe6Jqmo4EnwRBuZH6GVhy0b+3IqpXmasW7bM Y1Kw0QMT3lTs5EtvDZ3w27Qq0C9WPKrE8sfkfIgwFyeTnWaIs5GtkY2Yp8qmFNAslbLT 718j/1lTYM6prGcpz4rS9sJt/L4FXohCqpkTPqQju0Mvr691YIWS0ozGbrd52aAgRYHY 9Ldw== X-Gm-Message-State: AO0yUKWSyqVfyNrBRjd4JGPYC72McYTZYlKQJco+QBqofazbvNAi93Fj AC8erTayyx8Ep9Z8TNMp53qzB8PW4TOnbQ== X-Google-Smtp-Source: AK7set8Jm4U1ec28fN0+A7yix8ZfAv2dnGQVF5CwOnwx9mhHQbexZ7lprOg0wmjMAFzNY52hOZUnEQ== X-Received: by 2002:a92:cf02:0:b0:314:5aa:94ba with SMTP id c2-20020a92cf02000000b0031405aa94bamr6874548ilo.9.1678955706254; Thu, 16 Mar 2023 01:35:06 -0700 (PDT) Received: from james-x399.localdomain (97-118-149-35.hlrn.qwest.net. [97.118.149.35]) by smtp.gmail.com with ESMTPSA id y34-20020a029525000000b003b331f0bbdfsm534630jah.97.2023.03.16.01.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 01:35:05 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Thu, 16 Mar 2023 02:34:40 -0600 Message-Id: <20230316083440.3466725-10-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316083440.3466725-1-james.hilliard1@gmail.com> References: <20230316083440.3466725-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; t=1678955706; 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=yl63kMzE4uILLpW6g48oY+bJTjEKC0sHkAg8AGKyoPE=; b=ghnHQaXHlZGmFS/Z+8W8A1rz+LQii2bbfDMmmpnmkUP+zr0jmwi3uqpT/yQEKjd68S pRHhPPE8RhX2bJzAs0WgEtIu1xjfbOctXMTpNTasSD3/pVnBDTjy5+J2Hw1PT0bd5W09 F78hbXZ3SKBmPH3CEG3XkHcvtCqt1VETWsJhpY4EqpuqzHzlfvI8ezpgldfgqVNVW7ST jxjTcI+dtamMZ1ocJ8Wa7jSkHgcu1Mad2qxPd0l+pDUgQ+Pzm1z7uKKz/0bhTIT9GYzj o7+Z2gBsEUU6g9ksXq+7R2toPBE6tFyslwFpEEZAgtVJFtaMDPnt1JFNPxUnYpIe1GPi oaVA== 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=ghnHQaXH Subject: [Buildroot] [PATCH v6 10/10] 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 , 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 Signed-off-by: Stefan Hager --- Changes v5 -> v6: - update patches - add architecture dependency - backport system farmhash patch 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 ++++++++++++ ...dd-SYSTEM_FARMHASH-cmake-config-flag.patch | 74 +++++++++++++++++++ .../0003-Fix-FindFlatBuffers-cmake-file.patch | 51 +++++++++++++ ...ink-tensorflow-lite-against-gemmlowp.patch | 32 ++++++++ package/tensorflow-lite/Config.in | 36 +++++++++ package/tensorflow-lite/tensorflow-lite.hash | 4 + package/tensorflow-lite/tensorflow-lite.mk | 59 +++++++++++++++ 9 files changed, 307 insertions(+) create mode 100644 package/tensorflow-lite/0001-lite-Update-CMakeLists.txt.patch create mode 100644 package/tensorflow-lite/0002-Add-SYSTEM_FARMHASH-cmake-config-flag.patch create mode 100644 package/tensorflow-lite/0003-Fix-FindFlatBuffers-cmake-file.patch create mode 100644 package/tensorflow-lite/0004-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 678c027898..1307949f7a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2694,6 +2694,7 @@ F: package/gemmlowp/ 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 8969672e42..45fca4f15d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2158,6 +2158,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/tl-expected/Config.in" source "package/tz/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-Add-SYSTEM_FARMHASH-cmake-config-flag.patch b/package/tensorflow-lite/0002-Add-SYSTEM_FARMHASH-cmake-config-flag.patch new file mode 100644 index 0000000000..99db29e354 --- /dev/null +++ b/package/tensorflow-lite/0002-Add-SYSTEM_FARMHASH-cmake-config-flag.patch @@ -0,0 +1,74 @@ +From d8451a9048d09692994c40a6f9bc928e70ed79b5 Mon Sep 17 00:00:00 2001 +From: James Hilliard +Date: Mon, 28 Nov 2022 21:36:34 -0700 +Subject: [PATCH] Add SYSTEM_FARMHASH cmake config flag + +Since farmhash does not install a cmake package we need to +search for the library and headers to use the provided +version. + +Signed-off-by: James Hilliard +[james.hilliard1@gmail.com: backport from upstream commit +d8451a9048d09692994c40a6f9bc928e70ed79b5] +--- + tensorflow/lite/g3doc/guide/build_cmake.md | 1 + + .../tools/cmake/modules/Findfarmhash.cmake | 30 +++++++++++++++---- + 2 files changed, 26 insertions(+), 5 deletions(-) + +diff --git a/tensorflow/lite/g3doc/guide/build_cmake.md b/tensorflow/lite/g3doc/guide/build_cmake.md +index 6950a365bb8..6de955e70b0 100644 +--- a/tensorflow/lite/g3doc/guide/build_cmake.md ++++ b/tensorflow/lite/g3doc/guide/build_cmake.md +@@ -81,6 +81,7 @@ variables to point to your library installations. + ```sh + cmake ../tensorflow_src/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON \ + -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \ ++ -DSYSTEM_FARMHASH=ON \ + -Dabsl_DIR=/lib/cmake/absl \ + -DEigen3_DIR=/share/eigen3/cmake \ + -DFlatbuffers_DIR=/lib/cmake/flatbuffers \ +diff --git a/tensorflow/lite/tools/cmake/modules/Findfarmhash.cmake b/tensorflow/lite/tools/cmake/modules/Findfarmhash.cmake +index 1b0dc28f624..97b43298f13 100644 +--- a/tensorflow/lite/tools/cmake/modules/Findfarmhash.cmake ++++ b/tensorflow/lite/tools/cmake/modules/Findfarmhash.cmake +@@ -13,12 +13,32 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-# tensorflow-lite uses find_package for this package, so override the system +-# installation and build from source instead. +-include(farmhash) +-if(farmhash_POPULATED) ++# tensorflow-lite uses find_package for this package, so build from ++# source if the system version is not enabled. ++ ++if(SYSTEM_FARMHASH) ++ include(FindPackageHandleStandardArgs) ++ find_path(FARMHASH_ROOT_DIR NAMES include/farmhash.h) ++ find_library(FARMHASH_LIB NAMES farmhash PATHS ${FARMHASH_ROOT_DIR}/lib ${FARMHASH_LIB_PATH}) ++ find_path(FARMHASH_INCLUDE_DIRS NAMES farmhash.h PATHS ${FARMHASH_ROOT_DIR}/include) ++ find_package_handle_standard_args(farmhash DEFAULT_MSG FARMHASH_LIB FARMHASH_INCLUDE_DIRS) ++endif() ++ ++if(farmhash_FOUND) ++ add_library(farmhash SHARED IMPORTED GLOBAL) ++ set_target_properties(farmhash PROPERTIES ++ IMPORTED_LOCATION ${FARMHASH_LIB} ++ INTERFACE_INCLUDE_DIRECTORIES ${FARMHASH_INCLUDE_DIRS} ++ ) ++else() ++ include(farmhash) ++ if(farmhash_POPULATED) ++ get_target_property(FARMHASH_INCLUDE_DIRS farmhash INTERFACE_DIRECTORIES) ++ endif() ++endif() ++ ++if(farmhash_FOUND OR farmhash_POPULATED) + set(FARMHASH_FOUND TRUE) +- get_target_property(FARMHASH_INCLUDE_DIRS farmhash INTERFACE_DIRECTORIES) + add_library(farmhash::farmhash ALIAS farmhash) + set(FARMHASH_LIBRARIES farmhash::farmhash) + endif() +-- +2.34.1 + diff --git a/package/tensorflow-lite/0003-Fix-FindFlatBuffers-cmake-file.patch b/package/tensorflow-lite/0003-Fix-FindFlatBuffers-cmake-file.patch new file mode 100644 index 0000000000..1d511ca441 --- /dev/null +++ b/package/tensorflow-lite/0003-Fix-FindFlatBuffers-cmake-file.patch @@ -0,0 +1,51 @@ +From d8f98dd9f2b437cca5954b38cb48d9c21733f67d 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 +[james.hilliard1@gmail.com: backport from upstream commit +d8f98dd9f2b437cca5954b38cb48d9c21733f67d] +--- + tensorflow/lite/CMakeLists.txt | 2 +- + tensorflow/lite/g3doc/guide/build_cmake.md | 2 +- + .../modules/{FindFlatbuffers.cmake => FindFlatBuffers.cmake} | 0 + 3 files changed, 2 insertions(+), 2 deletions(-) + 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/g3doc/guide/build_cmake.md b/tensorflow/lite/g3doc/guide/build_cmake.md +index 6950a365bb8..9cb7ebac326 100644 +--- a/tensorflow/lite/g3doc/guide/build_cmake.md ++++ b/tensorflow/lite/g3doc/guide/build_cmake.md +@@ -83,7 +83,7 @@ cmake ../tensorflow_src/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON \ + -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \ + -Dabsl_DIR=/lib/cmake/absl \ + -DEigen3_DIR=/share/eigen3/cmake \ +- -DFlatbuffers_DIR=/lib/cmake/flatbuffers \ ++ -DFlatBuffers_DIR=/lib/cmake/flatbuffers \ + -DNEON_2_SSE_DIR=/lib/cmake/NEON_2_SSE \ + -Dcpuinfo_DIR=/share/cpuinfo \ + -Druy_DIR=/lib/cmake/ruy +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/0004-Don-t-link-tensorflow-lite-against-gemmlowp.patch b/package/tensorflow-lite/0004-Don-t-link-tensorflow-lite-against-gemmlowp.patch new file mode 100644 index 0000000000..d9ad78ef9e --- /dev/null +++ b/package/tensorflow-lite/0004-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 +[james.hilliard1@gmail.com: backport from upstream commit +fb584589f707853d85a081c99b1b82598c2631c1] +--- + 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..8685ec0c71 --- /dev/null +++ b/package/tensorflow-lite/Config.in @@ -0,0 +1,36 @@ +config BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS + bool + default y if BR2_aarch64 + default y if BR2_arm + default y if BR2_i386 + default y if BR2_x86_64 + depends on BR2_PACKAGE_CPUINFO_ARCH_SUPPORTS + +config BR2_PACKAGE_TENSORFLOW_LITE + bool "tensorflow-lite" + depends on BR2_PACKAGE_TENSORFLOW_LITE_ARCH_SUPPORTS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 + depends on BR2_TOOLCHAIN_HAS_THREADS # cpuinfo + 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 if BR2_PACKAGE_RUY_ARCH_SUPPORTS + select BR2_PACKAGE_XNNPACK if BR2_PACKAGE_XNNPACK_ARCH_SUPPORTS + 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..433eff3242 --- /dev/null +++ b/package/tensorflow-lite/tensorflow-lite.mk @@ -0,0 +1,59 @@ +################################################################################ +# +# 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 + +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 \ + -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 \ + -DSYSTEM_FARMHASH=ON \ + -DTFLITE_ENABLE_EXTERNAL_DELEGATE=ON \ + -DTFLITE_ENABLE_GPU=OFF \ + -DTFLITE_ENABLE_INSTALL=ON \ + -DTFLITE_ENABLE_MMAP=ON \ + -DTFLITE_ENABLE_NNAPI=OFF + +ifeq ($(BR2_PACKAGE_RUY),y) +TENSORFLOW_LITE_DEPENDENCIES += ruy +TENSORFLOW_LITE_CONF_OPTS += -DTFLITE_ENABLE_RUY=ON +else +TENSORFLOW_LITE_CONF_OPTS += -DTFLITE_ENABLE_RUY=OFF +endif + +ifeq ($(BR2_PACKAGE_XNNPACK),y) +TENSORFLOW_LITE_DEPENDENCIES += xnnpack +TENSORFLOW_LITE_CONF_OPTS += -DTFLITE_ENABLE_XNNPACK=ON -Dxnnpack_POPULATED=ON +else +TENSORFLOW_LITE_CONF_OPTS += -DTFLITE_ENABLE_XNNPACK=OFF +endif + +$(eval $(cmake-package))