From patchwork Tue Jul 25 13:50:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812566 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 4R9JNR5dkBz1yXx for ; Tue, 25 Jul 2023 23:51:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8B5EA81F35; Tue, 25 Jul 2023 13:51:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8B5EA81F35 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 J9WV3vlGOn46; Tue, 25 Jul 2023 13:51:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id AA15681FC2; Tue, 25 Jul 2023 13:51:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AA15681FC2 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 A96521BF980 for ; Tue, 25 Jul 2023 13:51:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 835444052B for ; Tue, 25 Jul 2023 13:51:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 835444052B 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 fZ195DitfMVl for ; Tue, 25 Jul 2023 13:51:16 +0000 (UTC) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by smtp2.osuosl.org (Postfix) with ESMTPS id B0D764016F for ; Tue, 25 Jul 2023 13:51:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B0D764016F Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3163eb69487so4321485f8f.1 for ; Tue, 25 Jul 2023 06:51:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293074; x=1690897874; 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=Uk1+PO7qspyE+Cjn5Si2hQ2uuDamV3ibu7rxTApBNKc=; b=hCg30I2tRQJ0uWo7EULVtUVIr632wnRuWXLZkaTcl5mGjzMlOVY4tNwSqcproennJ8 U529MzePPjjTunCe1K8nDs/kqQMQ3YkJmRXO6GkgHg21nBnkY4uUc3mZmqUIq6IUiPR5 t860kFe7Q7ccRJ4JF4tmvDbCkc7sTXuXD1wPaenQpxGjgBkRxuRE8FLop2rGCL+SnSun /mbGm2HBgp1PxRLn9LRs+WLtYMct4zkk8LPK3MUUZm9wRWqmtCqIvWiX+OuoAPEQ/qKC XWhB/ySb+G47PkyK5ryMKtN44/Dg0tKaop9eE2ZrQujsjv/EQ0YxsWLsv2Ptr+0JSQM4 6mvw== X-Gm-Message-State: ABy/qLZ9oMO4ZuJjg+/Cnpq8b8GQkL76b+z51D12j95DiLK03wRbS2wf UcKh98gJv7LUzeo5wmNirJo1A6h2r0OUcMIPQQI= X-Google-Smtp-Source: APBJJlFJsac8XQroDAey0Oy/EssRZyZFZDEoIdtTJeEroyujQk+TEYtdPdzZ5HwXsPGbSP6sq/sbaQ== X-Received: by 2002:a05:6000:1082:b0:314:c6b:b9a2 with SMTP id y2-20020a056000108200b003140c6bb9a2mr2145051wrw.13.1690293074491; Tue, 25 Jul 2023 06:51:14 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:14 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:50:56 +0200 Message-Id: <20230725135105.536310-2-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293074; x=1690897874; 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=Uk1+PO7qspyE+Cjn5Si2hQ2uuDamV3ibu7rxTApBNKc=; b=IkdWo+2efIZLV5tFqx/Yb+9yIAzII1oSHnLfEMZ0TyxVM4v5WXmjL2uQkdkZePIBxr qNT+kGeokMKAekR7TDH+WFnb34qNRyp62NHEER3rGmMNR577DnrLxZKf6H3JfWVNEpob 7BZ+dHz2f/YS5H30MwuBZGJ99tPHiOUw4cSWtGjLf2GFUjCN4AmAghHEqs3KzwABA/1m HBuVMYqIJx0tJY6JRs1S54yMxry+pSqhZhphVZzBq0lrPH+FxL3r9ik6BUyORlyCG1+X W8oJ387nYufRvYQbsDLdd8oD/DiyKgurSSTiBHa7ub25iYI43u81gaRRnnoZdMW+iEt0 iSKA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=IkdWo+2e Subject: [Buildroot] [PATCH 1/9] package/rust-bindgen: new host 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: Romain Naour , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour host-rust-bindgen will be required to build several different rust-based packages, including a Linux kernel with rust modules and mesa3d's rusticl which is the rust-based implementation of OpenCL. The Cargo.toml file at the project root is a "virtual manifest". Since we only want to install rust-bindgen, we can specify RUST_BINDGEN_SUBDIR = bindgen-cli to use the Cargo.toml from this directory. Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- v2: - remove comment explaining deprecated command line options from rust-bindgen.mk - Add rust-bindgen under Sebastian WEYER in DEVELOPERS file --- DEVELOPERS | 3 +++ package/rust-bindgen/rust-bindgen.hash | 3 +++ package/rust-bindgen/rust-bindgen.mk | 17 +++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 package/rust-bindgen/rust-bindgen.hash create mode 100644 package/rust-bindgen/rust-bindgen.mk diff --git a/DEVELOPERS b/DEVELOPERS index c690f1dac7..c9ac202de6 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2602,6 +2602,9 @@ F: support/misc/toolchainfile.cmake.in N: Sam Voss F: package/ripgrep/ +N: Sebastian Weyer +F: package/rust-bindgen + N: Sébastien Szymanski F: package/mmc-utils/ F: package/python-flask-jsonrpc/ diff --git a/package/rust-bindgen/rust-bindgen.hash b/package/rust-bindgen/rust-bindgen.hash new file mode 100644 index 0000000000..fe94bbc096 --- /dev/null +++ b/package/rust-bindgen/rust-bindgen.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 e1cdbaa8e0ed96f647e49807aecfc44d9239d438c2b1c084edb9a3cca0b1f68f rust-bindgen-0.65.1.tar.gz +sha256 c23953d9deb0a3312dbeaf6c128a657f3591acee45067612fa68405eaa4525db LICENSE diff --git a/package/rust-bindgen/rust-bindgen.mk b/package/rust-bindgen/rust-bindgen.mk new file mode 100644 index 0000000000..117198f407 --- /dev/null +++ b/package/rust-bindgen/rust-bindgen.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# rust-bindgen +# +################################################################################ + +RUST_BINDGEN_VERSION = 0.65.1 +RUST_BINDGEN_SITE = $(call github,rust-lang,rust-bindgen,v$(RUST_BINDGEN_VERSION)) +RUST_BINDGEN_LICENSE = BSD-3-clause +RUST_BINDGEN_LICENSE_FILES = LICENSE + +# The Cargo.toml at the root directory is an "virtual manifest". +# Since we only want to build and install bindgen use the Cargo.toml +# from the bindgen-cli subdirectory. +RUST_BINDGEN_SUBDIR = bindgen-cli + +$(eval $(host-cargo-package)) From patchwork Tue Jul 25 13:50:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812567 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 4R9JNg6GwHz1yXx for ; Tue, 25 Jul 2023 23:51:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 218A781FC4; Tue, 25 Jul 2023 13:51:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 218A781FC4 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 U6sQ6XnUKQgT; Tue, 25 Jul 2023 13:51:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 57BAC81FD4; Tue, 25 Jul 2023 13:51:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 57BAC81FD4 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 C039B1BF84C for ; Tue, 25 Jul 2023 13:51:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A75C34052B for ; Tue, 25 Jul 2023 13:51:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A75C34052B 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 Jfos2Gmhbk8v for ; Tue, 25 Jul 2023 13:51:17 +0000 (UTC) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by smtp2.osuosl.org (Postfix) with ESMTPS id A764F4016F for ; Tue, 25 Jul 2023 13:51:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A764F4016F Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbc244d307so54878105e9.1 for ; Tue, 25 Jul 2023 06:51:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293075; x=1690897875; 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=IE0e1ewsdNvQKaSl1Oc6b4kNMBOhRAvdeUJlR5K1Z6M=; b=PPtsEu5uhG/Ttwzmfq3ia+RXGgt9eY3560OEJbWQB8ORsMXqQg86ka4pjQj3O3XjLQ mlt2w98pSMOYgpW8X+UEe78ToXzWw2+fRyrnIpxBw4AwhQgSp4uIRdXiBk4hjJwS0NXO V0Il77kENKjR7GqRAG7IsDYqQ/2CybUKYRiEqOSX04iL3H38r/6Tfurn7C8aBRJcfEvV o9JpniVXBhCGrlOAQ6Kmle72IvE67IuiZ6jemezbTpztBpBU3BJRRk//3vzi4RIxmuKn YWTIOsqjaFrvl7V4QHwNqKv8doy9ZUo/mwl6JfQ8+ngTKHyfP/LJVyyV1LgmdHpKRzki /b9A== X-Gm-Message-State: ABy/qLY3iQsF3OY72m+yw+gALOG5dul/JMF8y89ODG4HasDYayPFSk5T LRZHKSoosHpybEH9N+cOXVlQXByRAphiHBWDJRI= X-Google-Smtp-Source: APBJJlFSATksXzJNWHFZ6KvrG3OGw2yLajBM/a/qKx5b4iRqA1lQVzGB9c7oKyD6V6l7wIAJc90BvA== X-Received: by 2002:a05:600c:450:b0:3f8:c70e:7ed1 with SMTP id s16-20020a05600c045000b003f8c70e7ed1mr11015443wmb.20.1690293075620; Tue, 25 Jul 2023 06:51:15 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:15 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:50:57 +0200 Message-Id: <20230725135105.536310-3-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293075; x=1690897875; 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=IE0e1ewsdNvQKaSl1Oc6b4kNMBOhRAvdeUJlR5K1Z6M=; b=ActqJ7bWxHB/RMOp6S6R7/3KnixBTOMwx7RDMvJRRK3kbXO0nImDUR7QvPqmHSNKkb Y7RTeC8qtjPP9bKPlhN9RvnZOEYllins9NH6xvjoc0ryKnfpOERp9UgWeOot405txBYZ rmZKviVDO5r07NnE6gAJe/PjJAIznhKnQs7DBGMC3En06OVw1tSD83fOOmlWl5Rve77E qnbwug86NXeHurBUqaFQHekVINNvFTtT5DfLRjb+aaKlJd79QWgZTuD5gcqY/BNyC/as 9uMGAyIi5wUGI+QN5J9oYSXyIPIxnfK/pjvbzpMUitXfaiwWkDu9MOmjAtbXdZPDrzsn iqCw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=ActqJ7bW Subject: [Buildroot] [PATCH 2/9] package/llvm-project/llvm: add llvm dump support 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: Joseph Kogut , Romain Naour , Daniel Lang , Romain Naour , Valentin Korenblit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour LLVM_ENABLE_DUMP required by mesa3d rusticl: https://docs.mesa3d.org/rusticl.html Signed-off-by: Romain Naour --- package/llvm-project/llvm/Config.in | 6 ++++++ package/llvm-project/llvm/llvm.mk | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/package/llvm-project/llvm/Config.in b/package/llvm-project/llvm/Config.in index ebb0fca66a..4ee84b3bcc 100644 --- a/package/llvm-project/llvm/Config.in +++ b/package/llvm-project/llvm/Config.in @@ -57,6 +57,12 @@ config BR2_PACKAGE_LLVM_BPF Build BPF target. Select this option if you are going to install bcc on the target. +config BR2_PACKAGE_LLVM_DUMP + bool "enable dump" + help + Build LLVM with dump functions even when assertions are + disabled. + endif comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7" diff --git a/package/llvm-project/llvm/llvm.mk b/package/llvm-project/llvm/llvm.mk index 556a2f8c35..6598d8b6c1 100644 --- a/package/llvm-project/llvm/llvm.mk +++ b/package/llvm-project/llvm/llvm.mk @@ -228,6 +228,13 @@ HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF endif +HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=OFF +ifeq ($(BR2_PACKAGE_LLVM_DUMP),y) +LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=ON +else +LLVM_CONF_OPTS += -DLLVM_ENABLE_DUMP=OFF +endif + # Compiler-rt not in the source tree. # llvm runtime libraries are not in the source tree. # Polly is not in the source tree. From patchwork Tue Jul 25 13:50:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812568 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 4R9JNw4jfPz1yXx for ; Tue, 25 Jul 2023 23:52:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C321481FD4; Tue, 25 Jul 2023 13:51:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C321481FD4 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 Ca7CTUK9JsfT; Tue, 25 Jul 2023 13:51:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id CEDDD81FE3; Tue, 25 Jul 2023 13:51:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CEDDD81FE3 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 51E5C1BF84C for ; Tue, 25 Jul 2023 13:51:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2BD3F60F90 for ; Tue, 25 Jul 2023 13:51:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2BD3F60F90 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 RlW0K5PU71nE for ; Tue, 25 Jul 2023 13:51:19 +0000 (UTC) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by smtp3.osuosl.org (Postfix) with ESMTPS id BC36F60AD5 for ; Tue, 25 Jul 2023 13:51:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org BC36F60AD5 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fde57684d7so12601265e9.2 for ; Tue, 25 Jul 2023 06:51:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293076; x=1690897876; 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=6nCHObc5nEw5Xi0bx812O1kI5Z++gdoNFWV4SrWpQ9k=; b=ZE+A3M8GD2HGcDVfrzqSOG0qaUA+AQqWJCylDa8bVmdMtTiRNXEH1WVNZGp04/Nal6 uIQ6XnKajZ8h7B0xbK6s3vraLlmzmQHa9c9+wmupuCM01nfGwcb76lXOj9MIipEDR0Sp /3N0jvy9O+Q/nDCBEFraJPdjIyNw1xepAxOH97u//mYyLvJdkUNpPU1WR95XLTEVyMMf mrsEIjjEDlQKY1zROeYrlz3qLJmg6h66l0DH56UZo2Tav/zdPb0q/Y91lwfWT9s2cHXW baZ0dlopEZzatPghnk5Q+gmISsL4XOZQBtdIQeNptcAGJl5TzgSBAajTD8PbCpBn+iCO UtQQ== X-Gm-Message-State: ABy/qLbEf2u1P4tQZ/kpOB7WKSWmEVSDKmZuVztdpnqLM45N+4sx6P8v xMxFvyCjFoTFcMUUjTqvCRIyIbWGVZ3sEg6ZEO0= X-Google-Smtp-Source: APBJJlECo6RiSPAWrBgssR2QeU7UX4hkOYxBegd6wRkVcxT81EGvDg+CMN+3HGJgnoyrfTHl1zTaFw== X-Received: by 2002:a7b:cd0c:0:b0:3fd:2996:9d88 with SMTP id f12-20020a7bcd0c000000b003fd29969d88mr6655430wmj.25.1690293076740; Tue, 25 Jul 2023 06:51:16 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:16 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:50:58 +0200 Message-Id: <20230725135105.536310-4-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293076; x=1690897876; 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=6nCHObc5nEw5Xi0bx812O1kI5Z++gdoNFWV4SrWpQ9k=; b=zeMIz1UODw8DXR8jgo/yU9UybmvkRsIK9m+VSbdU2PDv2EJqd2FiWKu9CLTXwxRPdx EDVcC+plMRm5vLfDiG01PiVkVmIt7IhSCBCYE3bKFspnQTV3+apgRGit44uMALR+peYR sSI1e5gSOwAMzgWRiOp4LBZJ4aj4pnTSVNPqfi+JfehdhxFhcBSfrO4JQUgkwR5QHnU1 u7/tsx46hNT42d64RGkBIQUvsSNUTYpaBDu9J3IydNnU5B19aaKgH++qc/+SLBsH+ZEZ xfgjoRw9w77GwBnxyPDsM0gpUHMTrJXXq+md0CZHDcWGmmV5sbHqpebJXcwlTwQAjkTC y/oQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=zeMIz1UO Subject: [Buildroot] [PATCH 3/9] package/pkg-meson.mk: add rust cross-compiler support X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Romain Naour , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour This change is needed to be able to build target packages requiring rust. If a package has rust in its project or in an add_language() call in their meson.build file, meson will try to find a suitable compiler for this language[1]. If the language is classified as required but not found, it will abort the build. It is necessary to specify rust and rust_ld separately in support/misc/cross-compilation.conf.in. If you specify it in one line just as "rust", it will generate the following warning: WARNING: Please do not put -C linker= in your compiler command, set rust_ld=command in your cross file or use the RUST_LD environment variable, otherwise meson will override your selection. [1] https://mesonbuild.com/Reference-manual_functions.html#add_languages Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- package/pkg-meson.mk | 13 +++++++++++++ support/misc/cross-compilation.conf.in | 2 ++ 2 files changed, 15 insertions(+) diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk index 65cabf23ba..25dd4f0d7f 100644 --- a/package/pkg-meson.mk +++ b/package/pkg-meson.mk @@ -82,6 +82,16 @@ else PKG_MESON_TARGET_FC = /bin/false endif +ifeq ($(BR2_PACKAGE_HOST_RUSTC),y) +PKG_MESON_TARGET_RUSTC = $(HOST_DIR)/bin/rustc +PKG_MESON_TARGET_RUSTC_LINKER = $(notdir $(TARGET_CROSS))gcc +PKG_MESON_TARGET_RUSTC_TARGET_NAME = $(RUSTC_TARGET_NAME) +else +PKG_MESON_TARGET_RUSTC = /bin/false +PKG_MESON_TARGET_RUSTC_LINKER = /bin/false +PKG_MESON_TARGET_RUSTC_TARGET_NAME = +endif + # Generates sed patterns for patching the cross-compilation.conf template, # since Flags might contain commas the arguments are passed indirectly by # variable name (stripped to deal with whitespaces). @@ -91,6 +101,7 @@ define PKG_MESON_CROSSCONFIG_SED -e "s%@TARGET_CXX@%$(PKG_MESON_TARGET_CXX)%g" \ -e "s%@TARGET_AR@%$(TARGET_AR)%g" \ -e "s%@TARGET_FC@%$(PKG_MESON_TARGET_FC)%g" \ + -e "s%@TARGET_RUSTC@%$(PKG_MESON_TARGET_RUSTC)%g" \ -e "s%@TARGET_STRIP@%$(TARGET_STRIP)%g" \ -e "s%@TARGET_ARCH@%$(PKG_MESON_TARGET_CPU_FAMILY)%g" \ -e "s%@TARGET_CPU@%$(GCC_TARGET_CPU)%g" \ @@ -99,6 +110,8 @@ define PKG_MESON_CROSSCONFIG_SED -e "s%@TARGET_CFLAGS@%$(call make-sq-comma-list,$($(strip $(1))))%g" \ -e "s%@TARGET_LDFLAGS@%$(call make-sq-comma-list,$($(strip $(3))))%g" \ -e "s%@TARGET_CXXFLAGS@%$(call make-sq-comma-list,$($(strip $(2))))%g" \ + -e "s%@TARGET_RUSTC_LINKER@%$(PKG_MESON_TARGET_RUSTC_LINKER)%g" \ + -e "s%@RUSTC_TARGET_NAME@%$(PKG_MESON_TARGET_RUSTC_TARGET_NAME)%g" \ -e "s%@BR2_CMAKE@%$(BR2_CMAKE)%g" \ -e "s%@PKGCONF_HOST_BINARY@%$(HOST_DIR)/bin/pkgconf%g" \ -e "s%@HOST_DIR@%$(HOST_DIR)%g" \ diff --git a/support/misc/cross-compilation.conf.in b/support/misc/cross-compilation.conf.in index 7053df472b..3c5812b131 100644 --- a/support/misc/cross-compilation.conf.in +++ b/support/misc/cross-compilation.conf.in @@ -13,6 +13,8 @@ fortran = '@TARGET_FC@' pkgconfig = '@PKGCONF_HOST_BINARY@' g-ir-compiler = '@STAGING_DIR@/usr/bin/g-ir-compiler' g-ir-scanner = '@STAGING_DIR@/usr/bin/g-ir-scanner' +rust = ['@TARGET_RUSTC@', '--target', '@RUSTC_TARGET_NAME@' ] +rust_ld = '@TARGET_RUSTC_LINKER@' [built-in options] c_args = [@TARGET_CFLAGS@] From patchwork Tue Jul 25 13:50:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812574 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 4R9JP91p6rz1yXx for ; Tue, 25 Jul 2023 23:52:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6943381FC2; Tue, 25 Jul 2023 13:52:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6943381FC2 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 zGphBvYqHjFb; Tue, 25 Jul 2023 13:52:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 846B481FCE; Tue, 25 Jul 2023 13:52:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 846B481FCE 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 297ED1BF84C for ; Tue, 25 Jul 2023 13:51:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 03C8440B91 for ; Tue, 25 Jul 2023 13:51:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 03C8440B91 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 ewS54-85ETDf for ; Tue, 25 Jul 2023 13:51:20 +0000 (UTC) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by smtp2.osuosl.org (Postfix) with ESMTPS id E6E674016F for ; Tue, 25 Jul 2023 13:51:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E6E674016F Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fd2f298712so23919295e9.2 for ; Tue, 25 Jul 2023 06:51:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293078; x=1690897878; 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=Lb1D/FTfy+CErfn10D+Z7ayv8gKPsJFsdYPfluVxPA4=; b=RToEQFajcqOMRC1V4rMs6/qJ9QfwnOGh4uVQGoirHUvb0QFZsXKZ0CjqR+llGcMR2J /AX6MZXg3eqO3vEZ8zvjS1RjQhlpg2tkZgIgQhgpZBPwxUbjgucSu2c+PAvZo/ynQK8z BnpDNkEZTSU3B2ZPrw9o+yt/gIQ0TaB1v1zaL91BV90f7qPxnzq080hUis+GxWgkfoLa U3fdtswIuh+bRkF2epTFliRqQlURJ/GSJE+GmjfsXZ7ltYjReZUXS0UYVdn1obwbGHxa 6OxHHQZuTeKSyIqoulO2wUHMLktTWaylUQKikG/RfBO3wPUWBfwpaovn81GZ8PdI122p DOcw== X-Gm-Message-State: ABy/qLYXLrqAmMWhj+vpSC7yI7YhLYkdBcmoUFsfZwqBX5BAYjmDepVq 7Z0RoDyHRbTRLMBFXofFxjf4hHyI2nCpMtM7pz0= X-Google-Smtp-Source: APBJJlH4x+3tdbwpJe+ZoJzigsS18VOk6pIny2rP14hXfYIPI1TFfLdoujKJuVyMdyd+AL4+w0Hhjw== X-Received: by 2002:a5d:68ce:0:b0:311:3fdc:109d with SMTP id p14-20020a5d68ce000000b003113fdc109dmr8102021wrw.1.1690293077852; Tue, 25 Jul 2023 06:51:17 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:17 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:50:59 +0200 Message-Id: <20230725135105.536310-5-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293078; x=1690897878; 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=Lb1D/FTfy+CErfn10D+Z7ayv8gKPsJFsdYPfluVxPA4=; b=nFtFIM0bCyDA99F6euVep9eEBG/LZbAZ6sgM4FoJ81lkWsDu2NjU8o45UM7gdlomRj aXpiPuMPaMg19yPuJmPB1wErXuVs+mmiIWaof5PPqssa+xm00OM82kpxcTzO7VpQN/qB QdYjsHpHYvqGlesWz8Tnzmlv+ji1faFBPPxFxw3LaZ6L89emQVp1a94MdFQ7R8bfmN8u LbFql0ClVi0ORJJNK8uP7brYl7rS1MEHSx+SrEI6pQ6lY0HRqAdgWmBW2j8PCUBrPJQV n3aJd0giuMImUPWFngpdM2mSRAvUuuJMeUZ12YHBA+N8+hEV+QcOAMI0eHgoPHm6HLbm SJog== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=nFtFIM0b Subject: [Buildroot] [PATCH 4/9] package/spirv-headers: 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: Romain Naour , Samuel Martin , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour These headers are required to build the pacakge spirv-tools which is requried by mesa3d for building rusticl: https://docs.mesa3d.org/rusticl.html Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- package/Config.in | 1 + package/spirv-headers/Config.in | 6 ++++++ package/spirv-headers/spirv-headers.hash | 2 ++ package/spirv-headers/spirv-headers.mk | 15 +++++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 package/spirv-headers/Config.in create mode 100644 package/spirv-headers/spirv-headers.hash create mode 100644 package/spirv-headers/spirv-headers.mk diff --git a/package/Config.in b/package/Config.in index 1e551d17c4..931b0cc21e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -326,6 +326,7 @@ comment "Graphic applications" source "package/pngquant/Config.in" source "package/qt5cinex/Config.in" source "package/rrdtool/Config.in" + source "package/spirv-headers/Config.in" source "package/stellarium/Config.in" source "package/sway/Config.in" source "package/tesseract-ocr/Config.in" diff --git a/package/spirv-headers/Config.in b/package/spirv-headers/Config.in new file mode 100644 index 0000000000..fd20f301d4 --- /dev/null +++ b/package/spirv-headers/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SPIRV_HEADERS + bool "spirv-headers" + help + Machine-readable files for the SPIR-V Registry + + https://www.khronos.org/registry/spir-v diff --git a/package/spirv-headers/spirv-headers.hash b/package/spirv-headers/spirv-headers.hash new file mode 100644 index 0000000000..b83959f7a4 --- /dev/null +++ b/package/spirv-headers/spirv-headers.hash @@ -0,0 +1,2 @@ +sha256 71668e18ef7b318b06f8c466f46abad965b2646eaa322594cd015c2ac87133e6 spirv-headers-1.3.246.1.tar.gz +sha256 9b243f6f0bf44e295ff411a0f7b7642d1d0dff7cdc42507e9f7206f439e51b5a LICENSE diff --git a/package/spirv-headers/spirv-headers.mk b/package/spirv-headers/spirv-headers.mk new file mode 100644 index 0000000000..11119ac6b2 --- /dev/null +++ b/package/spirv-headers/spirv-headers.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# spirv-headers +# +################################################################################ + +SPIRV_HEADERS_VERSION = 1.3.246.1 +SPIRV_HEADERS_SITE = $(call github,KhronosGroup,SPIRV-Headers,sdk-$(SPIRV_HEADERS_VERSION)) +SPIRV_HEADERS_LICENSE = MIT +SPIRV_HEADERS_LICENSE_FILES = LICENSE + +SPIRV_HEADERS_INSTALL_STAGING = YES +SPIRV_HEADERS_INSTALL_TARGET = NO + +$(eval $(cmake-package)) From patchwork Tue Jul 25 13:51:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812578 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 4R9JPQ0tF2z20Fn for ; Tue, 25 Jul 2023 23:52:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3C64B81F06; Tue, 25 Jul 2023 13:52:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3C64B81F06 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 pX8rVrSy38vM; Tue, 25 Jul 2023 13:52:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 519D681FC7; Tue, 25 Jul 2023 13:52:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 519D681FC7 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 69FE91BF84C for ; Tue, 25 Jul 2023 13:51:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 43CFE81FC6 for ; Tue, 25 Jul 2023 13:51:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 43CFE81FC6 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 xOsu6aVWCIQv for ; Tue, 25 Jul 2023 13:51:21 +0000 (UTC) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by smtp1.osuosl.org (Postfix) with ESMTPS id 4A5DA81FCE for ; Tue, 25 Jul 2023 13:51:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4A5DA81FCE Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3144098df56so5225160f8f.2 for ; Tue, 25 Jul 2023 06:51:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293079; x=1690897879; 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=LWnybChdS3mnXne6M8VecegH2r2V2gs3uTxUvqBYt6k=; b=LgL8b3cYqoL1QnHZ8mzaGo0HLnFVUc+zwWoh21Hu/mq+UEA1SOWi49c6h2kQijzEIY KlIwHWve7fQPDi07Ji4BVf3h5dwU6HYWs+kWnbdgABoN0danbX4ozQJVMM0norA7l4t5 dhryRSyB0ejCAhM9AbQQPo472xOSx7me7pZImMJv0ZjA1Dbh/xEIx+j8o6SiqN5XIrHc uHN+y9orlax7j/tbpq8fOaSAtoLV7Mu1NwH5/aMELJZ/19b/uNaCD+kTSABwuodEp3CY b5m0Cnc2G/VblMxkF9PDp6tXn5lajMZJHtW0fpjkzmF0isDW/3uYp+V0YL3GJUHe8a4g fOuA== X-Gm-Message-State: ABy/qLaEwsI2YDPj6W/LblcQjBGz1o70CZuMf2/MbAk6Kya5oLlJ0lfx MUt5OIahRxk6TyCPJ4jZFfWU2d/ugDfVc1YDTPQ= X-Google-Smtp-Source: APBJJlH7DtBOZOpVOhy/kqc6103CXB8P6+GSJjgd5oD9Y9rIcbLsAjt380hH1hYNKfzhFASIC1ohPg== X-Received: by 2002:adf:d4ce:0:b0:317:3b13:94c3 with SMTP id w14-20020adfd4ce000000b003173b1394c3mr8987122wrk.41.1690293078973; Tue, 25 Jul 2023 06:51:18 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:18 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:51:00 +0200 Message-Id: <20230725135105.536310-6-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293079; x=1690897879; 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=LWnybChdS3mnXne6M8VecegH2r2V2gs3uTxUvqBYt6k=; b=Afa7tMw8epctYklDH1mAqk7LRhDajvnUKz8qBHtNZ4vWlptK88Bit8IZXxG0yh9pZH gqY7Ghm2IB2JvhJ3bAIB2jdoz4exHAmkkPX5Lf7vSjUhc8+j3s//3o6ebWYaUZdPkAgF QzDAOjbLhPA8xoXJBd2dXaWRRaeJg8ZRiBoroMuqVrErGil5CCjWmgO03O1eK/T+Fj6P LrXY2hqfd7U76y2OxDbeQfIWugToZbhyurxbf7FxLIly4DKsBjtjgf+SRc4XI2dOmO2O X/OikKwcKssZ9yyuEU+/puF9dgUvjKIKNBxQrTsktD0teQ+bDllzTLWUz2OIa4euqlVa yn3g== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=Afa7tMw8 Subject: [Buildroot] [PATCH 5/9] package/spirv-tools: 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: Romain Naour , Samuel Martin , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour This package is required by mesa3d for building rusticl: https://docs.mesa3d.org/rusticl.html Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- package/Config.in | 1 + package/spirv-tools/Config.in | 12 ++++++++++++ package/spirv-tools/spirv-tools.hash | 2 ++ package/spirv-tools/spirv-tools.mk | 22 ++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 package/spirv-tools/Config.in create mode 100644 package/spirv-tools/spirv-tools.hash create mode 100644 package/spirv-tools/spirv-tools.mk diff --git a/package/Config.in b/package/Config.in index 931b0cc21e..aa917264d7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -327,6 +327,7 @@ comment "Graphic applications" source "package/qt5cinex/Config.in" source "package/rrdtool/Config.in" source "package/spirv-headers/Config.in" + source "package/spirv-tools/Config.in" source "package/stellarium/Config.in" source "package/sway/Config.in" source "package/tesseract-ocr/Config.in" diff --git a/package/spirv-tools/Config.in b/package/spirv-tools/Config.in new file mode 100644 index 0000000000..21b3852779 --- /dev/null +++ b/package/spirv-tools/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_SPIRV_TOOLS + bool "spirv-tools" + depends on BR2_USE_WCHAR # python3 + depends on BR2_USE_MMU # python3 + depends on BR2_TOOLCHAIN_HAS_THREADS # python3 + depends on !BR2_STATIC_LIBS # python3 + select BR2_PACKAGE_PYTHON3 + help + The SPIR-V Tools project provides an API and commands for + processing SPIR-V modules. + + https://github.com/KhronosGroup/SPIRV-Tools diff --git a/package/spirv-tools/spirv-tools.hash b/package/spirv-tools/spirv-tools.hash new file mode 100644 index 0000000000..6861f543ea --- /dev/null +++ b/package/spirv-tools/spirv-tools.hash @@ -0,0 +1,2 @@ +sha256 645c4585c207cbdfda81a09f8ab180773c18df50fad9644d2d9a53b4464c692b spirv-tools-1.3.246.1.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/spirv-tools/spirv-tools.mk b/package/spirv-tools/spirv-tools.mk new file mode 100644 index 0000000000..758c01343c --- /dev/null +++ b/package/spirv-tools/spirv-tools.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# spirv-tools +# +################################################################################ + +SPIRV_TOOLS_VERSION = 1.3.246.1 +SPIRV_TOOLS_SITE = $(call github,KhronosGroup,SPIRV-Tools,sdk-$(SPIRV_TOOLS_VERSION)) +SPIRV_TOOLS_LICENSE = Apache-2.0 +SPIRV_TOOLS_LICENSE_FILES = LICENSE + +SPIRV_TOOLS_DEPENDENCIES = python3 spirv-headers + +SPIRV_TOOLS_INSTALL_STAGING = YES + +SPIRV_TOOLS_CONF_OPTS = \ + -DSPIRV-Headers_SOURCE_DIR=${STAGING_DIR}/usr \ + -DSPIRV_TOOLS_BUILD_STATIC=OFF \ + -DBUILD_SHARED_LIBS=ON \ + -DSPIRV_SKIP_TESTS=ON \ + +$(eval $(cmake-package)) From patchwork Tue Jul 25 13:51:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812579 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 4R9JPf4BHNz1yXx for ; Tue, 25 Jul 2023 23:52:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C75B081FC7; Tue, 25 Jul 2023 13:52:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C75B081FC7 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 At8peV4lxhEe; Tue, 25 Jul 2023 13:52:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id D9CF08200B; Tue, 25 Jul 2023 13:52:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D9CF08200B 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 DF66F1BF84C for ; Tue, 25 Jul 2023 13:51:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B7B24418B0 for ; Tue, 25 Jul 2023 13:51:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B7B24418B0 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 2mQWKFYFAvHA for ; Tue, 25 Jul 2023 13:51:22 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5674B418A7 for ; Tue, 25 Jul 2023 13:51:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5674B418A7 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fd190065a7so46716065e9.2 for ; Tue, 25 Jul 2023 06:51:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293080; x=1690897880; 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=okWpVew/w7VA7kfYm9usSmDPGDPlvgwbs360o96ohxI=; b=El9AuYqTVNo3Kmg1SSm5NcTzLjWEQW2EasTJLAnZGt3dP6nLOurheQikSgmRSzJuws 5/qldn6fnaZ86cyzEJ/FDjJsFFFxpvejOZxSPKnU/ySQck/9XAQ+5+oKJhEKwv6UEXWP 70vDwKbzRS6vaLgBuavbFi2OetH7jL/oe+TgvGXsK7f9NZ7/pY9tHAyRpiNPMw5dc/bj Zj8B6nTfJgcZ4NaP9sT+qKvZyNYEcLfTh9+vCcsLHa29eaNP/aGBli3TMfxtY/63xYfv 58EVVQgkEbLX5JKH98BRhnOHlzFrYGjFA2WJ9vhWHecdQGOojmAWboF6Qs2skFZlXMxy WlrQ== X-Gm-Message-State: ABy/qLZYhLiXxY+f+D47XdZZA4ioMj/Pf0ZGzbl0zmZ1x9NH87hHQz34 dTSbLCN6GUQgDj5Ps3oTrFWB++nBWlbVm0+Lx4w= X-Google-Smtp-Source: APBJJlEC/NWyrO9VriRXPwN+mGRUUsnUSpel7GOOxA985HF5xv/2JyMBsPRalSYftA7F0fYKu32KXQ== X-Received: by 2002:a1c:e919:0:b0:3fc:80a:9948 with SMTP id q25-20020a1ce919000000b003fc080a9948mr9218357wmc.19.1690293080081; Tue, 25 Jul 2023 06:51:20 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:19 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:51:01 +0200 Message-Id: <20230725135105.536310-7-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293080; x=1690897880; 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=okWpVew/w7VA7kfYm9usSmDPGDPlvgwbs360o96ohxI=; b=U0bAAwzx4is8xm8ozfEUG4C3H65aevYK5yDkb3FyXwPV2qzY6nTWb0firnMeJcLdY5 aSmX82aSkmA/B/WwfoXEpvd9TkIf5Rhp7QRVIDVbumO7Zpm0LsjemYabxj+tuNdPNNO9 fONIyjm0iV6KGKvxSKHXd4b7qcUsfZDOp43ZEgKrDsCZncbHeudIrqVXXBe351nTAa6e nRoPAcRzwMxVpqfKXT+2PKScuSKwxcailbp4qZw3Jmn8/vr2YhEzmO/dRRd6whVwwuwb MteR/ddIMapAUn+YX/rT8fb0RqLUytwBHk0uJ6NSc1kX9e5fmjSdxNSAolXGMn0F8VMP ip8Q== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=U0bAAwzx Subject: [Buildroot] [PATCH 6/9] package/spirv-llvm-translator: add target variant to provide LLVMSPIRVLib 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: Romain Naour , Samuel Martin , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour This target version is needed for Rusticl which is an LLVM based OpenCL framework: https://docs.mesa3d.org/rusticl.html Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- package/Config.in | 1 + package/spirv-llvm-translator/Config.in | 22 +++++++++++++++++++ .../spirv-llvm-translator.mk | 13 ++++++++++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 package/spirv-llvm-translator/Config.in diff --git a/package/Config.in b/package/Config.in index aa917264d7..f7b369b42a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -327,6 +327,7 @@ comment "Graphic applications" source "package/qt5cinex/Config.in" source "package/rrdtool/Config.in" source "package/spirv-headers/Config.in" + source "package/spirv-llvm-translator/Config.in" source "package/spirv-tools/Config.in" source "package/stellarium/Config.in" source "package/sway/Config.in" diff --git a/package/spirv-llvm-translator/Config.in b/package/spirv-llvm-translator/Config.in new file mode 100644 index 0000000000..73ca787d8a --- /dev/null +++ b/package/spirv-llvm-translator/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR + bool "spirv-translator" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on !BR2_STATIC_LIBS + depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm + select BR2_PACKAGE_LLVM + select BR2_PACKAGE_SPIRV_HEADERS + select BR2_PACKAGE_ZLIB + help + LLVM/SPIR-V Bi-Directional Translator is a library and tool + for translation between LLVM IR and SPIR-V. + + https://github.com/khronosGroup/SPIRV-LLVM-Translator + +comment "spirv-translator needs a toolchain w/ threads, C++, gcc >= 7, dynamic library, host gcc >= 7" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \ + || BR2_STATIC_LIBS || !BR2_HOST_GCC_AT_LEAST_7 diff --git a/package/spirv-llvm-translator/spirv-llvm-translator.mk b/package/spirv-llvm-translator/spirv-llvm-translator.mk index 37db47340e..7a3457a1fa 100644 --- a/package/spirv-llvm-translator/spirv-llvm-translator.mk +++ b/package/spirv-llvm-translator/spirv-llvm-translator.mk @@ -10,11 +10,22 @@ SPIRV_LLVM_TRANSLATOR_VERSION = v15.0.0-46-ge82ecc2bd7295604fcf1824e47c95fa6a09c SPIRV_LLVM_TRANSLATOR_SITE = $(call github,KhronosGroup,SPIRV-LLVM-Translator,$(SPIRV_LLVM_TRANSLATOR_VERSION)) SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA SPIRV_LLVM_TRANSLATOR_LICENSE_FILES = LICENSE.TXT -HOST_SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm + +HOST_SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm spirv-headers zlib HOST_SPIRV_LLVM_TRANSLATOR_CONF_OPTS = \ -DLLVM_BUILD_TOOLS=ON \ -DLLVM_DIR=$(HOST_DIR)/lib/cmake/llvm \ -DLLVM_SPIRV_BUILD_EXTERNAL=YES \ -DLLVM_SPIRV_INCLUDE_TESTS=OFF +SPIRV_LLVM_TRANSLATOR_INSTALL_STAGING = YES +SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm llvm +SPIRV_LLVM_TRANSLATOR_CONF_OPTS = \ + -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=${STAGING_DIR}/usr \ + -DLLVM_BUILD_TOOLS=ON \ + -DLLVM_DIR=$(STAGING_DIR)/lib/cmake/llvm \ + -DLLVM_SPIRV_BUILD_EXTERNAL=YES \ + -DLLVM_SPIRV_INCLUDE_TESTS=OFF + +$(eval $(cmake-package)) $(eval $(host-cmake-package)) From patchwork Tue Jul 25 13:51:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812580 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 4R9JPv3mWNz1yXx for ; Tue, 25 Jul 2023 23:52:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8B42681C0A; Tue, 25 Jul 2023 13:52:49 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8B42681C0A 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 CtaGJ1HONq4k; Tue, 25 Jul 2023 13:52:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 8FF5E81FE4; Tue, 25 Jul 2023 13:52:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8FF5E81FE4 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 0647E1BF84C for ; Tue, 25 Jul 2023 13:51:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CD957418A7 for ; Tue, 25 Jul 2023 13:51:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org CD957418A7 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 hsx08ehxg1Dy for ; Tue, 25 Jul 2023 13:51:23 +0000 (UTC) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by smtp4.osuosl.org (Postfix) with ESMTPS id 657BA418AD for ; Tue, 25 Jul 2023 13:51:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 657BA418AD Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fc04692e20so54934875e9.0 for ; Tue, 25 Jul 2023 06:51:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293081; x=1690897881; 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=8PCb8wjZHk9QQ7WVW5VgiHE/91KqKDY8R0u4+Izz5VU=; b=i6Hdg0bMoS+TX9X57lfowf5CjxN9oc03JQU/eMn41Dyo87K+EBdLYu/a7eIX/baVdq l6MUtzcZjYqcoDiOlt3KZcqAa+S7etUNW55vwJYYP7sPN7aW733c8NfHZgVI1gKD+a6i Far8VM5lZAI5bj+al1RO9eD2tIEHFePx1xAEoluz/10zOlqGfFXMn2oo/I6sV+ZF/6Zq RKcu6SLNg87AZfet/1BVW8PUgXcnhW+b5SITcV+0jwK82o89HyVyfGeuEboW1ZJbWlax D51dZRGrMwbJKHt6Ca6I2PcUKg0bspB+0eLxkRmcJUrjFj86Zo8LHnxodcxxHI0/jc9E TvGw== X-Gm-Message-State: ABy/qLYdYIhp5McLhdhuYeP0SrQp/fhg0/+zCbDves5Usl4KnOl6hUb2 FuJ9i6sSq8pU4qKG9YuJITe7TFdVz7p5jN5ZNj0= X-Google-Smtp-Source: APBJJlFyzA3hSXN1wpcv+5lnP06PeD1jyJmFmbtiLHpeWFMJEQ5A0IXyj4/wBPH/USdFqs7facySxA== X-Received: by 2002:a5d:5088:0:b0:317:5a99:a696 with SMTP id a8-20020a5d5088000000b003175a99a696mr6184843wrt.68.1690293081192; Tue, 25 Jul 2023 06:51:21 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:21 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:51:02 +0200 Message-Id: <20230725135105.536310-8-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293081; x=1690897881; 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=8PCb8wjZHk9QQ7WVW5VgiHE/91KqKDY8R0u4+Izz5VU=; b=AP7DuQXJ1Ke2NSl/qTwuf2KpcEaIsAk87/vGiSU/IU3N+SC8tOp4zAPXuOSvc7zO7q lrV2gCmXIrijW9c/HJnP3Ht0ZjUzijLUvln/mD7nlw6ttfAFeQaIpKyj9a687zzh33pA 9OKOsEsZby3RVg0UnqnUw3dPf4jmUuCFwoHxy8jEjzng0Rtpv/zzyK40prqoleVbhHco tCcb1yCjL0qhCIrGtckt+0ZAZhwD6QAhs4DJLcy2TISKsE6NUM1r9a3TyFaXNrFDn7pP 3XC8MqIYuOkyTJfKy9XwWmtxpBemO/yOJKPd5NzFO3zicGhxzYL607+6lCUXSnFZeTJZ wXyA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=AP7DuQXJ Subject: [Buildroot] [PATCH 7/9] package/opencl-headers: 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: Sebastian Weyer , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" These headers provide the C language API bindings. It is a complement to the C++ bindings already available in opencl-clhpp. This package is required to build opencl-icd-loader: https://github.com/KhronosGroup/OpenCL-ICD-Loader#dependencies Signed-off-by: Sebastian Weyer --- DEVELOPERS | 1 + package/Config.in | 1 + package/opencl-headers/Config.in | 7 ++++ package/opencl-headers/opencl-headers.hash | 3 ++ package/opencl-headers/opencl-headers.mk | 42 ++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 package/opencl-headers/Config.in create mode 100644 package/opencl-headers/opencl-headers.hash create mode 100644 package/opencl-headers/opencl-headers.mk diff --git a/DEVELOPERS b/DEVELOPERS index c9ac202de6..38f46b4ac3 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2603,6 +2603,7 @@ N: Sam Voss F: package/ripgrep/ N: Sebastian Weyer +F: package/opencl-headers F: package/rust-bindgen N: Sébastien Szymanski diff --git a/package/Config.in b/package/Config.in index f7b369b42a..fc73cd1727 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1638,6 +1638,7 @@ menu "Graphics" source "package/libwpe/Config.in" source "package/menu-cache/Config.in" source "package/opencl-clhpp/Config.in" + source "package/opencl-headers/Config.in" source "package/opencv3/Config.in" source "package/opencv4/Config.in" source "package/opencv4-contrib/Config.in" diff --git a/package/opencl-headers/Config.in b/package/opencl-headers/Config.in new file mode 100644 index 0000000000..092d8a2a4d --- /dev/null +++ b/package/opencl-headers/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_OPENCL_HEADERS + bool "opencl-headers" + depends on BR2_PACKAGE_HAS_LIBOPENCL + help + C language headers for the OpenCL API + + https://github.com/KhronosGroup/OpenCL-Headers diff --git a/package/opencl-headers/opencl-headers.hash b/package/opencl-headers/opencl-headers.hash new file mode 100644 index 0000000000..f3d7ef8411 --- /dev/null +++ b/package/opencl-headers/opencl-headers.hash @@ -0,0 +1,3 @@ +#Locally generated +sha256 0ce992f4167f958f68a37918dec6325be18f848dee29a4521c633aae3304915d OpenCL-Headers-2023.04.17.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/opencl-headers/opencl-headers.mk b/package/opencl-headers/opencl-headers.mk new file mode 100644 index 0000000000..1cad98a3d0 --- /dev/null +++ b/package/opencl-headers/opencl-headers.mk @@ -0,0 +1,42 @@ +################################################################################ +# +# opencl-headers +# +################################################################################ + +OPENCL_HEADERS_VERSION = 2023.04.17 +OPENCL_HEADERS_SOURCE = OpenCL-Headers-$(OPENCL_HEADERS_VERSION).tar.gz +OPENCL_HEADERS_SITE = $(call github,KhronosGroup,OpenCL-Headers,v$(OPENCL_HEADERS_VERSION)) +OPENCL_HEADERS_LICENSE = Apache-2.0 +OPENCL_HEADERS_LICENSE_FILES = LICENSE +OPENCL_HEADERS_INSTALL_STAGING = YES + +OPENCL_HEADERS_INSTALL_TARGET = NO + +OPENCL_HEADERS_FILES = cl_d3d10.h \ + cl_d3d11.h \ + cl_dx9_media_sharing.h \ + cl_dx9_media_sharing_intel.h \ + cl_egl.h \ + cl_ext.h \ + cl_ext_intel.h \ + cl_gl_ext.h \ + cl_gl.h \ + cl.h \ + cl_half.h \ + cl_icd.h \ + cl_layer.h \ + cl_platform.h \ + cl_va_api_media_sharing_intel.h \ + cl_version.h \ + opencl.h + + +define OPENCL_HEADERS_INSTALL_STAGING_CMDS + $(foreach header,$(OPENCL_HEADERS_FILES), \ + $(INSTALL) -D -m 0644 $(@D)/CL/$(header) \ + $(STAGING_DIR)/usr/include/CL/$(header) + ) +endef + +$(eval $(generic-package)) From patchwork Tue Jul 25 13:51:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812582 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 4R9JQ76S4Pz1yXx for ; Tue, 25 Jul 2023 23:53:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1F54A81F75; Tue, 25 Jul 2023 13:53:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1F54A81F75 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 n9BiG2Ao1Sce; Tue, 25 Jul 2023 13:53:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 488BC81FF6; Tue, 25 Jul 2023 13:53:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 488BC81FF6 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 AFBB81BF84C for ; Tue, 25 Jul 2023 13:51:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9700D40B91 for ; Tue, 25 Jul 2023 13:51:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9700D40B91 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 YHYjh2iUhFjl for ; Tue, 25 Jul 2023 13:51:24 +0000 (UTC) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by smtp2.osuosl.org (Postfix) with ESMTPS id 696364016F for ; Tue, 25 Jul 2023 13:51:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 696364016F Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31771bb4869so105906f8f.0 for ; Tue, 25 Jul 2023 06:51:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293082; x=1690897882; 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=pVw6WYJkNdOST3COGbfot1xkPXG3CRqQObohebQU9xE=; b=ghur0zOIXPtNVVdmvva2cz300r3nZbqzpASRxIqtuVWWRTC2GaAR8GlZ+pP7xtd6Gr nNgNI16B7T01XrCwAi1KtXk7+fjT6qfh5TyxpkdfkhAk8jldR8bBE+esZ/mogh84JRKM Ck8WfKkdDbmn2rRFUvxcqgGgNtBJ1lKsRrfoDD1egHwZAkh14txPVyicnMdHSlbIGYO9 OPhle6HwUkwt7vNYiw7MmhN55F1/8lUMmVgMzrpJSGAZ5Ujv0H12r0v1jwnRYCF5x/Zs W0B00QdbiTga1bl4+cloXacrZqU1kX8SRxzpmwCtTrxNy0I4/VFMrylw27yjF5njwuNy 7d4g== X-Gm-Message-State: ABy/qLY7kZVTcvgF4z+qqSsA1LWC73t+6YDxVq0kSXTbpDGEC81hQc84 sXr24jtvAe9saX+9O/QPpOVQA+phSYt8nbgqYRw= X-Google-Smtp-Source: APBJJlEULc9pbjeWBFPmCsn1wwqXUCVm/T4QRUO2cl4iBBjoJf+lYJDd9CtmF7YBcdKdbnmG0bLt3Q== X-Received: by 2002:adf:f7cc:0:b0:314:a3f:9c08 with SMTP id a12-20020adff7cc000000b003140a3f9c08mr10501788wrq.39.1690293082359; Tue, 25 Jul 2023 06:51:22 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:22 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:51:03 +0200 Message-Id: <20230725135105.536310-9-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293082; x=1690897882; 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=pVw6WYJkNdOST3COGbfot1xkPXG3CRqQObohebQU9xE=; b=VVuXWs5Jxmt6hiRxWKbQPV6IJj/dsV45r/m0BIWu+cdn907GMAcQ1DFnKUzfjyKz3Y z6BFX8bUPjU+3QTXTvdozD9vBINpIrP0L+fbcuy55eH83C91J01htgZzypF/3WZmY6OO ljE9UhzHdeVqS+6RaXsDv+nuw/mvvBzODxowCoVafkQa40JlOuOI2HLpACbLX9xPRZ+4 wBH4x6ylJp24cQPrDGUlqMHi9XHiiIdPAjrSYdKAhDniaZhnwWNBxSOydvd1UFTJnxdS jC5BJRlibvTT8sHVv7NS+l+aYl2RxSvuQhUo8Gxp9w34xrcVD0R01+OUQmuQfuUblaYq X/nQ== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=VVuXWs5J Subject: [Buildroot] [PATCH 8/9] package/opencl-icd-loader: 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: Sebastian Weyer , Samuel Martin Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" With this package it is possible to have multiple implementations of OpenCL at the same time. This package provides a libOpenCL.so file that captures the OpenCL API calls and forwards it to the correct implementation of OpenCL. OpenCL implementations can be manually registered by creating a file containing its full file path in /etc/OpenCL/vendors/.icd[1] This package is required by certain OpenCL implementations, for example Mesa3D's implementation if it is not built in standalone mode. [1] https://github.com/KhronosGroup/OpenCL-ICD-Loader#registering-icds Signed-off-by: Sebastian Weyer --- DEVELOPERS | 1 + package/Config.in | 1 + package/opencl-icd-loader/Config.in | 12 ++++++++++++ .../opencl-icd-loader/opencl-icd-loader.hash | 3 +++ .../opencl-icd-loader/opencl-icd-loader.mk | 19 +++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/opencl-icd-loader/Config.in create mode 100644 package/opencl-icd-loader/opencl-icd-loader.hash create mode 100644 package/opencl-icd-loader/opencl-icd-loader.mk diff --git a/DEVELOPERS b/DEVELOPERS index 38f46b4ac3..6af31d447e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2604,6 +2604,7 @@ F: package/ripgrep/ N: Sebastian Weyer F: package/opencl-headers +F: package/opencl-icd-loader F: package/rust-bindgen N: Sébastien Szymanski diff --git a/package/Config.in b/package/Config.in index fc73cd1727..2b7446386b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1639,6 +1639,7 @@ menu "Graphics" source "package/menu-cache/Config.in" source "package/opencl-clhpp/Config.in" source "package/opencl-headers/Config.in" + source "package/opencl-icd-loader/Config.in" source "package/opencv3/Config.in" source "package/opencv4/Config.in" source "package/opencv4-contrib/Config.in" diff --git a/package/opencl-icd-loader/Config.in b/package/opencl-icd-loader/Config.in new file mode 100644 index 0000000000..405dc5401a --- /dev/null +++ b/package/opencl-icd-loader/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_OPENCL_ICD_LOADER + bool "OpenCL-ICD-Loader" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HAS_LIBOPENCL + select BR2_PACKAGE_OPENCL_HEADERS + help + OpenCL defines an Installable Client Driver (ICD) mechanism to + allow developers to build applications against an Installable + Client Driver loader (ICD loader) rather than linking their + applications against a specific OpenCL implementation. + + https://github.com/KhronosGroup/OpenCL-ICD-Loader diff --git a/package/opencl-icd-loader/opencl-icd-loader.hash b/package/opencl-icd-loader/opencl-icd-loader.hash new file mode 100644 index 0000000000..d028e3d856 --- /dev/null +++ b/package/opencl-icd-loader/opencl-icd-loader.hash @@ -0,0 +1,3 @@ +# locally generated +sha256 173bdc4f321d550b6578ad2aafc2832f25fbb36041f095e6221025f74134b876 OpenCL-ICD-Loader-2023.04.17.tar.gz +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE diff --git a/package/opencl-icd-loader/opencl-icd-loader.mk b/package/opencl-icd-loader/opencl-icd-loader.mk new file mode 100644 index 0000000000..d3d94b9cb5 --- /dev/null +++ b/package/opencl-icd-loader/opencl-icd-loader.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# opencl-icd-loader +# +################################################################################ + +OPENCL_ICD_LOADER_VERSION = 2023.04.17 +OPENCL_ICD_LOADER_SOURCE = OpenCL-ICD-Loader-$(OPENCL_ICD_LOADER_VERSION).tar.gz +OPENCL_ICD_LOADER_SITE = $(call github,KhronosGroup,OpenCL-ICD-Loader,v$(OPENCL_ICD_LOADER_VERSION)) +OPENCL_ICD_LOADER_LICENSE = Apache-2.0 +OPENCL_ICD_LOADER_LICENSE_FILES = LICENSE +OPENCL_ICD_LOADER_INSTALL_STAGING = YES + +OPENCL_ICD_LOADER_DEPENDENCIES = opencl-headers + +OPENCL_ICD_LOADER_CONF_OPTS += -DOPENCL_ICD_LOADER_HEADERS_DIR=$(STAGING_DIR)/usr/include + +$(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Tue Jul 25 13:51:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Weyer X-Patchwork-Id: 1812583 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 4R9JQN6STlz1yXx for ; Tue, 25 Jul 2023 23:53:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 20E2281FDA; Tue, 25 Jul 2023 13:53:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 20E2281FDA 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 cRKdtXFVhm_y; Tue, 25 Jul 2023 13:53:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 1E2ED81FE4; Tue, 25 Jul 2023 13:53:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1E2ED81FE4 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 01C981BF84C for ; Tue, 25 Jul 2023 13:51:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id CF5F24016F for ; Tue, 25 Jul 2023 13:51:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org CF5F24016F 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 Pm_7reXbDIq0 for ; Tue, 25 Jul 2023 13:51:25 +0000 (UTC) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by smtp2.osuosl.org (Postfix) with ESMTPS id 92E924052B for ; Tue, 25 Jul 2023 13:51:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 92E924052B Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fbc5d5746cso54821085e9.2 for ; Tue, 25 Jul 2023 06:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690293083; x=1690897883; 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=433ipGJd90DJFbBO7ph+GWH+g1unRrUytqUJDam1rmA=; b=OMSdrwZgdUsoC5C0vESKG87POuKC91s26lSJq1I4bHdERIpkhfX9A2OspD4eiR13uB BK4VpgIEZ3xQ9EI9i7QE6+5NnCMg7dg+vhXhf8db1y9VY6R92BJF+otoXwzn1vxw7W/9 VGWybwj1M7YVzenyLiQhMBb27A9Gdq6c43lbXpiDaQQWzb00shy5GPT581twd19wQl2W lyA1b7iPCsYBDxGqCyKnp+JmjaDbgAP64oEErJwErAQVHNZeor7nziZUrKDM0ztKXpPY Yov2YlCD0g7rb1kKFkwG5kKCn7Lemg9MszqMOHM6q1cWyL+mWfZ9q/6eYyU0yyECzxt7 RGdA== X-Gm-Message-State: ABy/qLbEwUpolcw4sNP5K0wSWVqKNooCOqH2z8beMRQdxS4eu62vVjYc cQUNqTRZ0mqok4YMkn4VFENeFrCQmnmV7e8MDH8= X-Google-Smtp-Source: APBJJlFUMNb67kn7lR8Lo4yCoabPwQO8QjLaidvK+7K+rBjmTMTTwyICu+SoUDAUlj8+tqv5YDzLiw== X-Received: by 2002:a5d:4210:0:b0:317:5eb8:b1b7 with SMTP id n16-20020a5d4210000000b003175eb8b1b7mr5094209wrq.12.1690293083528; Tue, 25 Jul 2023 06:51:23 -0700 (PDT) Received: from localhost.localdomain ([2001:861:5384:6b50:e537:2825:8aee:d1db]) by smtp.gmail.com with ESMTPSA id y16-20020a5d6150000000b00313e59cb371sm16604581wrt.12.2023.07.25.06.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 06:51:23 -0700 (PDT) From: Sebastian Weyer To: buildroot@buildroot.org Date: Tue, 25 Jul 2023 15:51:04 +0200 Message-Id: <20230725135105.536310-10-sebastian.weyer@smile.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725135105.536310-1-sebastian.weyer@smile.fr> References: <20230725135105.536310-1-sebastian.weyer@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20221208.gappssmtp.com; s=20221208; t=1690293083; x=1690897883; 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=433ipGJd90DJFbBO7ph+GWH+g1unRrUytqUJDam1rmA=; b=kAHgwbOZC4J2eN1W+6WCY6m+Lma7/wUjICuuROGvg6rSNxSNX2wdPfuJPzHKgljtTg wPh1SB1a2cak8JAjfRL0YB9rAa3C72/JmMFcX7vNlLPPdt4pT5wfrHDaojne2P90Q0Ne sqQPGnDqDliDfBmJYgUm7A1+fF++x+zC6TFhnwirG+1h+BAmPWt9NbaSB1VxoX399Wbv GxEqpHOa/VBlK0fgxxIknANbj8lrAIuq9ILDU5LajvXQ7WyMm2U+TZIyb30efhjHn4Ol mrm25L4CT8XPCatAkuUngJhV0/epyXQhQ5pOlqELctx62ELmplmO9XSExFzimfYUL4j6 1Xzw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=smile-fr.20221208.gappssmtp.com header.i=@smile-fr.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=kAHgwbOZ Subject: [Buildroot] [PATCH 9/9] package/mesa3d: add experimental RustiCL support 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: Bernd Kuhls , Romain Naour , Romain Naour , Sebastian Weyer Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Romain Naour To build Rusticl you need to satisfy the following build dependencies: rustc rustfmt (highly recommended, but only required for CI builds or when authoring patches) bindgen LLVM built with libclc and -DLLVM_ENABLE_DUMP=ON. SPIRV-Tools SPIRV-LLVM-Translator for a libLLVMSPIRVLib.so matching your version of LLVM, i.e. if you’re using LLVM 15 (libLLVM.so.15), then you need a libLLVMSPIRVLib.so.15. See: https://docs.mesa3d.org/rusticl.html Since rusticl is an implementation of OpenCL, make it a provider of OpenCL. We need to use opencl-icd-loader in order to be able to capture API calls and forward them to the correct implementation of OpenCL (RustiCL in this case) opencl-icd-loader needs to be installed in the toolchain's sysroot as well to be able to compile packages depending on libopencl since otherwise there's only for example libRustiOpenCL.so and no libOpenCL.so Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer --- package/mesa3d/Config.in | 19 ++++++++++++++++++- package/mesa3d/mesa3d.mk | 20 +++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index c7ee2a8db0..4c725709d1 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -56,6 +56,23 @@ config BR2_PACKAGE_MESA3D_OPENCL select BR2_PACKAGE_LIBCLC select BR2_PACKAGE_HAS_LIBOPENCL +# libclc dependencies are satisfied by +# BR2_PACKAGE_MESA3D_LLVM +config BR2_PACKAGE_MESA3D_RUSTICL + bool "RustiCL (OpenCL) support" + depends on BR2_PACKAGE_MESA3D_LLVM + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST + select BR2_PACKAGE_HOST_RUSTC + select BR2_PACKAGE_LLVM_RTTI + select BR2_PACKAGE_CLANG + select BR2_PACKAGE_LLVM_DUMP + select BR2_PACKAGE_LIBCLC + select BR2_PACKAGE_SPIRV_TOOLS + select BR2_PACKAGE_SPIRV_LLVM_TRANSLATOR + select BR2_PACKAGE_HAS_LIBOPENCL + select BR2_PACKAGE_OPENCL_ICD_LOADER + # inform the .mk file of gallium, dri, dri3 or vulkan driver selection config BR2_PACKAGE_MESA3D_DRI3 bool @@ -387,7 +404,7 @@ config BR2_PACKAGE_PROVIDES_LIBGLES default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES && !BR2_PACKAGE_LIBGLVND config BR2_PACKAGE_PROVIDES_LIBOPENCL - default "mesa3d" if BR2_PACKAGE_MESA3D_OPENCL + default "mesa3d" if BR2_PACKAGE_MESA3D_OPENCL || BR2_PACKAGE_MESA3D_RUSTICL endif # BR2_PACKAGE_MESA3D diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 6fa5c1c686..3c7d919bb7 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -58,16 +58,34 @@ else MESA3D_CONF_OPTS += -Dllvm=disabled endif -# Disable opencl-icd: OpenCL lib will be named libOpenCL instead of # libMesaOpenCL and CL headers are installed ifeq ($(BR2_PACKAGE_MESA3D_OPENCL),y) MESA3D_PROVIDES += libopencl MESA3D_DEPENDENCIES += clang libclc +ifeq ($(BR2_PACKAGE_OPENCL_ICD_LOADER),y) +MESA3D_CONF_OPTS += -Dgallium-opencl=icd +MESA3D_DEPENDENCIES += opencl-icd-loader +# Disable opencl-icd: OpenCL lib will be named libOpenCL instead of +else MESA3D_CONF_OPTS += -Dgallium-opencl=standalone +endif else MESA3D_CONF_OPTS += -Dgallium-opencl=disabled endif +# -Drust_std=2021: known meson bug (https://github.com/mesonbuild/meson/issues/10664) +# By default devices are disabled in rusticl. If you want to enable a device, +# you need to set the environment variable RUSTICL_ENABLE to the driver you +# are using +# ref: https://docs.mesa3d.org/envvars.html#envvar-RUSTICL_ENABLE +ifeq ($(BR2_PACKAGE_MESA3D_RUSTICL),y) +MESA3D_PROVIDES += libopencl +MESA3D_DEPENDENCIES += host-rustc host-rust-bindgen clang libclc opencl-icd-loader spirv-tools spirv-llvm-translator +MESA3D_CONF_OPTS += -Dgallium-rusticl=true -Drust_std=2021 +else +MESA3D_CONF_OPTS += -Dgallium-rusticl=false +endif + ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS),y) MESA3D_DEPENDENCIES += elfutils endif