From patchwork Thu Jul 25 10:17:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 1964686 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WV6Jk3nZpz1yXx for ; Thu, 25 Jul 2024 20:17:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D2CC84046D; Thu, 25 Jul 2024 10:17:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TVYxRluivtip; Thu, 25 Jul 2024 10:17:40 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 84B764088C Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 84B764088C; Thu, 25 Jul 2024 10:17:39 +0000 (UTC) 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 180CE1BF422 for ; Thu, 25 Jul 2024 10:17:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0678E40931 for ; Thu, 25 Jul 2024 10:17:35 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wJoS4tgP6Vhs for ; Thu, 25 Jul 2024 10:17:34 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::433; helo=mail-wr1-x433.google.com; envelope-from=gael.portay@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 7AECB4022B DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 7AECB4022B Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp2.osuosl.org (Postfix) with ESMTPS id 7AECB4022B for ; Thu, 25 Jul 2024 10:17:33 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-368584f9e36so375051f8f.2 for ; Thu, 25 Jul 2024 03:17:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721902651; x=1722507451; 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=Dgud2FeyzVP96qZkZv9lQeWa84/yqvq+itWlb2XKr9g=; b=RGKyxjAhi4S+J/M0q/tL0aHLT7bcQs2ztJO9XtEan8NhfJU2vgVf4U0YzjH6LqMUbP 5tPi7B3hD7O1OWTXbZg+hsnbcVsGLzHhkpvVBn01VHmC9rWJkR26gQtfqoU5vIcz56b8 dwB47ta2ChIQVUWkfoCxADGX2mxwlSgmZbcLDejFpB0gzAtaNObgpON8g0aXvjZMKW4E Q/SYSc+lIzsdJ3S4i6pgiEnMdbDU9JFKA5zBcvOeFPrP2wagdNZJmQlc1ub+I+Om2urF GnLCuSLsxJWpTK0bMZpPfpegX7jILPOOE/x+HTa0kJElei2v5C5TDu3dSb67GUrNvYns g/FQ== X-Gm-Message-State: AOJu0YzoSsqhKur1BL1mRzBuX/Q/lDM6Y3/BS9JHs/shDP1waElTE7Z6 B58VsDjZ2IgNSfWFMvMefgBW6ePINidQyivDtp3wHW4tIYoEZOT9JKj4k/GEyFI= X-Google-Smtp-Source: AGHT+IFo2YpE97gfiaWqhaQpwaGFd/0mCiZ1s0jolVb5iLc9hyQf+4jjKLPXsX1DK5Ni/61TemYP/Q== X-Received: by 2002:a5d:456b:0:b0:368:12ef:92cf with SMTP id ffacd0b85a97d-36b3641f37emr1177184f8f.48.1721902651060; Thu, 25 Jul 2024 03:17:31 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:ce:f2f0:2a6b:35ff:feb8:77d9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b3686fdc5sm1629603f8f.114.2024.07.25.03.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:17:30 -0700 (PDT) From: " =?utf-8?q?Ga=C3=ABl_PORTAY?= " X-Google-Original-From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org Date: Thu, 25 Jul 2024 12:17:10 +0200 Message-ID: <20240725101711.2443524-2-gael.portay@rtone.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240725101711.2443524-1-gael.portay@rtone.fr> References: <20240725101711.2443524-1-gael.portay@rtone.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721902651; x=1722507451; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Dgud2FeyzVP96qZkZv9lQeWa84/yqvq+itWlb2XKr9g=; b=nXfQZDfXtXtpLhLs/SJ6r3elfDFnT8EEOtru4bZoaTuZ20cbY2KSYyzw/2oBqqAgz5 lEfkgPJ+HlgQGRCSNGuTPW3bEWOR/MR5FeJ6HBL0kbJtGW+4I1XPRcNW0/BjIQpXn69I V3EzRFr3G1dWgNWLyNcH1Mw4X+iEsPnY5YIjRXiE47BC8zgM4kCPLJovYRa3bdjywyB3 hp8n/BDW8RjyBEGVWSdI+A1GBzAVjKz1XngILPYu+HscGsC3J2Iz5ahcs8Bere5pR/FA 2ICXfa5857Hfsj3xB7Q6Wa9hVekItYhX3nGUIn0BIFcF+W5XN2OMYW2uIXRgnoMmPGNo Vqww== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=nXfQZDfX Subject: [Buildroot] [PATCH v2 1/2] package/rpi-utils: 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: Samuel Martin , =?utf-8?q?Ga=C3=ABl_PORTAY?= , Mahyar Koshkouei , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The package rpi-userland has been marked as ancient and deprecated[1]. The useful tools (dtoverlay, dtmerge, vcmailbox, vcgencmd) were moved to the repository rpi-utils since then. This adds the new package rpi-utils at latest commit as there is no tagged commit. [1]: https://github.com/raspberrypi/userland/commit/96a7334ae9d5fc9db7ac92e59852377df63f1848 Signed-off-by: Gaël PORTAY --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/rpi-utils/Config.in | 14 ++++++++++++++ package/rpi-utils/rpi-utils.hash | 3 +++ package/rpi-utils/rpi-utils.mk | 18 ++++++++++++++++++ 5 files changed, 39 insertions(+) create mode 100644 package/rpi-utils/Config.in create mode 100644 package/rpi-utils/rpi-utils.hash create mode 100644 package/rpi-utils/rpi-utils.mk diff --git a/DEVELOPERS b/DEVELOPERS index 7d6b364e58..0f10d0dc30 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1204,6 +1204,9 @@ N: Frank Vanbever F: package/libmodsecurity/ F: package/nginx-modsecurity/ +N: Gaël PORTAY +F: package/rpi-utils/ + N: Gao Xiang F: package/erofs-utils/ diff --git a/package/Config.in b/package/Config.in index 5f0e7491c8..15b286b2fb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -457,6 +457,7 @@ menu "Firmware" source "package/qoriq-fm-ucode/Config.in" source "package/rcw-smarc-sal28/Config.in" source "package/rpi-firmware/Config.in" + source "package/rpi-utils/Config.in" source "package/sunxi-boards/Config.in" source "package/ts4900-fpga/Config.in" source "package/ux500-firmware/Config.in" diff --git a/package/rpi-utils/Config.in b/package/rpi-utils/Config.in new file mode 100644 index 0000000000..b2a25f36f5 --- /dev/null +++ b/package/rpi-utils/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_RPI_UTILS + bool "rpi-utils" + depends on !BR2_STATIC_LIBS # dtc + depends on !BR2_TOOLCHAIN_USES_UCLIBC # no reallocarray + select BR2_PACKAGE_DTC + help + A collection of scripts and simple applications for the + Raspberry Pi. + + https://github.com/raspberrypi/utils/ + +comment "rpi-utils needs a glibc or musl toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + depends on !BR2_TOOLCHAIN_USES_UCLIBC diff --git a/package/rpi-utils/rpi-utils.hash b/package/rpi-utils/rpi-utils.hash new file mode 100644 index 0000000000..a6612373b0 --- /dev/null +++ b/package/rpi-utils/rpi-utils.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 c35932e501b43e5fb48cfc488aadc4a8bbceb0e9e6dafdf6c7cd2066b58acd61 rpi-utils-a1d522f0f1b50858a44fac80523a2bd80098e789.tar.gz +sha256 731da956431d1a7c5073e7ee5ebe01f54e359c5339310b32f0893c6fe6507d5a LICENCE diff --git a/package/rpi-utils/rpi-utils.mk b/package/rpi-utils/rpi-utils.mk new file mode 100644 index 0000000000..49db3aef9f --- /dev/null +++ b/package/rpi-utils/rpi-utils.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# rpi-utils +# +################################################################################ + +RPI_UTILS_VERSION = a1d522f0f1b50858a44fac80523a2bd80098e789 +RPI_UTILS_SITE = $(call github,raspberrypi,utils,$(RPI_UTILS_VERSION)) +RPI_UTILS_LICENSE = BSD-3-Clause +RPI_UTILS_LICENSE_FILES = LICENCE +RPI_UTILS_INSTALL_STAGING = YES +RPI_UTILS_DEPENDENCIES = dtc + +# Ensure the internal dtovl remains an archive object and it is not built as a +# dynamic library that is linked by other utilities; as it is not installed. +RPI_UTILS_CONF_OPTS = -DSTATIC=STATIC + +$(eval $(cmake-package)) From patchwork Thu Jul 25 10:17:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABl_PORTAY?= X-Patchwork-Id: 1964687 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WV6Jn5scCz1yXx for ; Thu, 25 Jul 2024 20:17:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1D8AB4091E; Thu, 25 Jul 2024 10:17:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id G7RBQd-P59K1; Thu, 25 Jul 2024 10:17:43 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E2DD240914 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id E2DD240914; Thu, 25 Jul 2024 10:17:42 +0000 (UTC) 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 709541BF422 for ; Thu, 25 Jul 2024 10:17:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5F5324022B for ; Thu, 25 Jul 2024 10:17:36 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2IGlW6IC3b9l for ; Thu, 25 Jul 2024 10:17:35 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::330; helo=mail-wm1-x330.google.com; envelope-from=gael.portay@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 02DFE4052D DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 02DFE4052D 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 02DFE4052D for ; Thu, 25 Jul 2024 10:17:34 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-427db004e36so5472405e9.3 for ; Thu, 25 Jul 2024 03:17:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721902652; x=1722507452; 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=DSLd2LA53sG6osCnOCjhFWcAcF3eUUI7YO2yUQGBM74=; b=mHgnmJ76ha0vU0fLKnyUnuknYZroaE6+xvpmppoZSo4anl0LaTYVFSCDkN0rEQ8KBH fSReBW35oTClgYc1S/1voXL0NgO/JdtPjVcGaPCYfpXxNbD8/PLPbfpskaw8WHiJYaDf bbVIa/3B+ZAWT1qA923juyRe94x0WXBdiGTIwvsb/Gl/PlGZHl9XIyhqdaw3KVgax7x0 yNtqGH2A3TnBE5f1C19R/lz4bhdoJwOMPWtB5TClNiiBY/2+lpGM8dR+IRF7Q8u+3VFL lCN+MkKgc5foqpEzvZ7kj9ffzCgVA2WYHjmxFBR9QdB9qeYUhr146Zvz2fG2vd27VW9n Y6YA== X-Gm-Message-State: AOJu0YzDZyGuo2Y4W2B2LuWQsSnqrkHWy/i012uiVQnarPpuZPhMpeRP NC0f3DkvOwZFysT4YnxZNDzxZj33Q1IbuzPqG+6BWldWHtEK/MRIoifryz0ileY= X-Google-Smtp-Source: AGHT+IE7dAmIdvYXNVDrBOR2OWOvc2IOPvwOrM9zygQ7lJroq3Rdmlw29+orjMfyJELZ39NN1ly+Wg== X-Received: by 2002:a5d:6489:0:b0:367:991d:8b76 with SMTP id ffacd0b85a97d-36b319dec64mr1915309f8f.15.1721902652172; Thu, 25 Jul 2024 03:17:32 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:ce:f2f0:2a6b:35ff:feb8:77d9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b3686fdc5sm1629603f8f.114.2024.07.25.03.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:17:31 -0700 (PDT) From: " =?utf-8?q?Ga=C3=ABl_PORTAY?= " X-Google-Original-From: =?utf-8?q?Ga=C3=ABl_PORTAY?= To: buildroot@buildroot.org Date: Thu, 25 Jul 2024 12:17:11 +0200 Message-ID: <20240725101711.2443524-3-gael.portay@rtone.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240725101711.2443524-1-gael.portay@rtone.fr> References: <20240725101711.2443524-1-gael.portay@rtone.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721902652; x=1722507452; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DSLd2LA53sG6osCnOCjhFWcAcF3eUUI7YO2yUQGBM74=; b=dhZOXj5Z17PnACYeWHBy/bLM9ZX1HPfBblt5aE+IoLMQlGCVx3i/nvKAVJ+oyJBTLn T10U7+McMmTpaMkNBhHLHFQULCsiScFUu1i5ZQ7ywu3xb4+4a63VkpEoN9AfeAKZN0g3 hp9yVx5OeeBClPHb3nejlXIdxHRNL93uNHfjANLLcwQsZfRIVqVk0HB6YS4takuOrRzc 9k6QwjiShvYaOJtNl+SIUPaXwyQ/4/VIMF9LBCAlLBD9EDQ3oEZWRhONnNBlCb7XfbXC OyWgWvtupAFgeALiVXBx3HWAXZyAJNsAwNcBj1R9N607fHBu8r0Wlju/FmdsfAltXXY+ 4sMA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=dhZOXj5Z Subject: [Buildroot] [PATCH v2 2/2] package/rpi-userland: package is deprecated 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: Samuel Martin , =?utf-8?q?Ga=C3=ABl_PORTAY?= , Mahyar Koshkouei , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The package rpi-userland has been marked as ancient and deprecated[1]. This adds the message in its help. [1]: https://github.com/raspberrypi/userland/commit/96a7334ae9d5fc9db7ac92e59852377df63f1848 Signed-off-by: Gaël PORTAY --- package/rpi-userland/Config.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in index 4219bdb9c4..c39eb4598f 100644 --- a/package/rpi-userland/Config.in +++ b/package/rpi-userland/Config.in @@ -16,6 +16,17 @@ config BR2_PACKAGE_RPI_USERLAND mmal, GLESv2, vcos, openmaxil, vchiq_arm, bcm_host, WFC, OpenVG. + Important: The package is ancient and deprecated. + + It largely contains code using proprietary APIs to interface + to the VideoCore firmware. It has since moved to standard + linux APIs. + + V4L2, DRM/KMS and Mesa are the APIs you should be using. + + The few useful tools from here (dtoverlay, dtmerge, + vcmailbox, vcgencmd) have been moved to the package rpi-utils. + https://github.com/raspberrypi/userland/ if BR2_PACKAGE_RPI_USERLAND && BR2_arm