From patchwork Sun Apr 3 16:14:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612768 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=sdm5xqsG; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=PUB4hQsV; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfG21rZCz9sFq for ; Mon, 4 Apr 2022 02:18:02 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4PsUd7f73BOUEcwOFeix6e6mZv2a3JKtCbRwQ3+I8ns=; b=sdm5xqsGR7LcG4 hKtW9VBe0CBM1wghgDZFJx4zRy9lYXJkkiAYFmnmEtRN9km5vpGRVWFMTLlMPhaBCeaBLAg5HoTor P5Syp0ihxBHl9dJjvt03aDGUJfBx3WyEPgUz9ymDpAWo4alcrW8mbYq/K3fTdzIWNTOouDBNw6EK6 sqy5ItGxslL12gS1XZ7DsMH81KyJeWXECoblkN6DjYnlStTwT9bj3cHEMQYFZx2E8TLyUnOg1RPiB mcPociG50KvFKbTkX7TH9xZ7ANAnEpkPLH7t/1viZZnl7slv8hTFL3VSPAVL/kgHdZpXutIPriJm3 efaDMMzInUzWGVBYsW/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2tV-00BqJI-1K; Sun, 03 Apr 2022 16:16:01 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2se-00Bq5C-N3 for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:11 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 4DC8E4442F9F; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 0yPb_rZilaaI; Sun, 3 Apr 2022 18:14:56 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id DB44B4474A42; Sun, 3 Apr 2022 18:14:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu DB44B4474A42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002496; bh=45GsmHEFTX2j2ElWfi+Di9iWGk2soJj1xMuZQECkmxg=; h=From:To:Date:Message-Id:MIME-Version; b=PUB4hQsVqorA4nExeABnSnQR9vCvoRO8o5VwIT8J/+d94M4HPXS1CYjWXO7lOJYTt FroaCYGj6q+KhIg5/OViEefIY0WEjror4gEbEzUJ/HyM61LklrE1yrC31naYwLV3v1 bA/pbABz1gaSsYpjT4EAXmKYf3MPh6De8+c3yidI= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id xbbiGRfO-M-n; Sun, 3 Apr 2022 18:14:56 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id A1A94443B963; Sun, 3 Apr 2022 18:14:56 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 01/11] elfutils: move host build to tools Date: Sun, 3 Apr 2022 19:14:43 +0300 Message-Id: <20220403161453.2113069-2-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: A1A94443B963 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091508_921841_B9E417B5 X-CRM114-Status: GOOD ( 13.52 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The upcoming dwarves host package requires elfutils. As dependencies for tools must exist in tools, we need to move elfutils host build there. As there is at least one package that depends on this, and there is no proper way to create such dependency in the build system, build it unconditionally when not building on macOS. Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The upcoming dwarves host package requires elfutils. As dependencies for tools must exist in tools, we need to move elfutils host build there. As there is at least one package that depends on this, and there is no proper way to create such dependency in the build system, build it unconditionally when not building on macOS. Signed-off-by: Stijn Tintel --- package/libs/elfutils/Makefile | 4 ---- tools/Makefile | 3 +++ tools/elfutils/Makefile | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 tools/elfutils/Makefile diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile index 07b3ea66c6..2a7b5c50e2 100644 --- a/package/libs/elfutils/Makefile +++ b/package/libs/elfutils/Makefile @@ -24,11 +24,8 @@ PKG_INSTALL:=1 PKG_USE_MIPS16:=1 PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone -HOST_BUILD_DEPENDS:=argp-standalone/host musl-fts/host - include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk -include $(INCLUDE_DIR)/host-build.mk define Package/elfutils/Default SECTION:=libs @@ -114,7 +111,6 @@ define Package/libelf/install endef # these lines need to be ordered by dependency because of ABI versioning -$(eval $(call HostBuild)) $(eval $(call BuildPackage,libelf)) $(eval $(call BuildPackage,libdw)) $(eval $(call BuildPackage,libasm)) diff --git a/tools/Makefile b/tools/Makefile index ec382b4122..416039cf38 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -83,6 +83,9 @@ ifneq ($(HOST_OS),Linux) endif ifeq ($(HOST_OS),Darwin) tools-y += bash +else + $(curdir)/elfutils/compile := $(curdir)/zlib/compile + tools-y += elfutils endif ifneq ($(CONFIG_CCACHE)$(CONFIG_SDK),) diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile new file mode 100644 index 0000000000..98694beb0e --- /dev/null +++ b/tools/elfutils/Makefile @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0-only + +include $(TOPDIR)/rules.mk + +PKG_NAME:=elfutils +PKG_VERSION:=0.186 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=https://sourceware.org/$(PKG_NAME)/ftp/$(PKG_VERSION) +PKG_HASH:=7f6fb9149b1673d38d9178a0d3e0fb8a1ec4f53a9f4c2ff89469609879641177 + +PKG_LICENSE:=GPL-3.0-or-later +PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3 +PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +HOST_BUILD_DEPENDS:=argp-standalone/host musl-fts/host + +include $(INCLUDE_DIR)/host-build.mk + +HOST_CONFIGURE_ARGS += \ + --disable-debuginfod \ + --disable-libdebuginfod \ + --disable-nls \ + --disable-shared \ + --without-lzma \ + --without-zstd + +$(eval $(call HostBuild)) From patchwork Sun Apr 3 16:14:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612766 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=E/wYnc1d; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=Pc64DxkP; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfFY23H4z9sFr for ; Mon, 4 Apr 2022 02:17:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I644AgFRsZBWPN2CgHAI2lekfSYgd5n42Ovvy82z7p0=; b=E/wYnc1dt6es+Q cO2IOcRlYmYIrpO/0Jg7+IF6VyZzA0I+g87wGn2O1aWKHQrqZpY7AMCGnZHBfsyAnd6ou6EuaxGbi ayR3oMjX2Qjx/O42yeeERWNIMJDsd0gPYpMpbDF2/ZTLnh8bFzP83t0rURn5a7CLH3mo+DVdkuQ0U aeXT0kBpyk769ev4IsvlkE5kMdL6CHuTsjg0V+RVDjBIZUPrJ+5gYHLHkmGMAQzNq7bcwDlstdPJk a1u8IHazOJw0PQC4V0+U6ywBrJsYcRRfvQxIcWGhiUGK2TkhLVU6ac7YSbMDyFL6s9OuO5+ySD5JB T3Ji8uDK48fryugMswCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2t2-00BqBP-LS; Sun, 03 Apr 2022 16:15:32 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2se-00Bq58-9S for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:09 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id C0E454474A42; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id nJw7HU7IrcFn; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 7D9184474A59; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 7D9184474A59 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002497; bh=w0TnF6K3myKGmmcIMs0EjsGSnV8Kts0Al6X6OQ1nqhc=; h=From:To:Date:Message-Id:MIME-Version; b=Pc64DxkPCGxlt5GsCfJin63NL7ePWn5qc+FNQOYmpWfOGjDp3egLPpZpYu5wfvYuX huXvD6LZ9EhMx7w9kjtvlzdT51aNVNHp4bX/n2TkxZnGWjq6+1O2CVXgW2gQ8fj6qf TKL/M4y3okpfud+FQt7b0b0HIIwm8UhFlIRdOwmE= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 4CVR5iEIaznp; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 438E5443B963; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 02/11] bpf-headers: drop HOST_LOADLIBES Date: Sun, 3 Apr 2022 19:14:44 +0300 Message-Id: <20220403161453.2113069-3-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 438E5443B963 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091508_533369_AA7FDBC4 X-CRM114-Status: UNSURE ( 6.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS in kernel 4.19. As the oldest kernel version we support is 5.10, cleanup HOST_LOADLIBES use. Signed-off-by: Stijn Tintel --- package/kernel/bpf-headers/Makefile | 1 - 1 file changed, 1 deletion(-) Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS in kernel 4.19. As the oldest kernel version we support is 5.10, cleanup HOST_LOADLIBES use. Signed-off-by: Stijn Tintel --- package/kernel/bpf-headers/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile index b5891a9722..4df63a511d 100644 --- a/package/kernel/bpf-headers/Makefile +++ b/package/kernel/bpf-headers/Makefile @@ -56,7 +56,6 @@ KERNEL_MAKE := \ LLVM=1 CC="$(CLANG)" LD="$(TARGET_CROSS)ld" \ HOSTCC="$(HOSTCC)" \ HOSTCXX="$(HOSTCXX)" \ - HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib" \ KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \ CONFIG_SHELL="$(BASH)" \ INSTALL_HDR_PATH="$(PKG_BUILD_DIR)/user_headers" From patchwork Sun Apr 3 16:14:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612764 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=07n6QS4e; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=euFJs6VW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfFT5rCXz9sFq for ; Mon, 4 Apr 2022 02:17:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+hcxOg4lOzVFzUGCyn5bsR57yTFTCMV2m6G6bsAUfjw=; b=07n6QS4eElGlii 55uX5GduaNR95d+5uYljj6PbuvnAXfgr7LeqcRBLtp9smikMFibqltIzbdjYmqSkjNwOIfGGk3N81 xocJ0C9rFmtXxK3uFvtLzPJKUval6jURdxNlmIEk+MI0uWPy+JwydWl2swev+QT8lLa/Z6hEjWOuF onOmgGYdHp8XlrMUDfdzW8//rWIxnrGuyoEyMedE9j/4MS5YIqjurAdWlriTBGseFrz/CPY7KkX2c X6l5QfJkRd7n7vdklxs+/UdsN/M9lRTKYst57o2zv7JzVt10QFk50XyfBmPrKwrVbCrhU1mgpXk8y 6cb0+lI13ehPkWHIFjQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sq-00BqAX-Ug; Sun, 03 Apr 2022 16:15:21 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sd-00Bq4p-1R for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:08 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 63CB5443B963; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id jS6_-MQtYd2i; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 1BA884474A59; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 1BA884474A59 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002498; bh=LkQNHYtiOZOiOCNoPbTbxyP+Eq6pDNe+JL9+1JtfD/A=; h=From:To:Date:Message-Id:MIME-Version; b=euFJs6VWyx5JX0sblwrvUEwmZKlcohDcRmN/8rlWRUozUgZqVESCAZ5ADaCqvyE1r fehE5/0TEKjFkgYP+3XRisrKXPNCIZuD9hK15JatXco+tFgKzVkgIzByIPBE8o/JGI /gjQpRWTh4cO25KmkGlDWSLZsVPNpjuBsaQhzIaI= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id FN1eWlSd0PWt; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id D77DA443B963; Sun, 3 Apr 2022 18:14:57 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 03/11] build: drop HOST_LOADLIBES Date: Sun, 3 Apr 2022 19:14:45 +0300 Message-Id: <20220403161453.2113069-4-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: D77DA443B963 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091507_258812_192456D6 X-CRM114-Status: UNSURE ( 7.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS in kernel 4.19. As the oldest kernel version we support is 5.10, cleanup HOST_LOADLIBES use. Signed-off-by: Stijn Tintel --- include/kernel-build.mk | 1 - include/kernel.mk | 1 - 2 files changed, 2 deletions(-) Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org HOST_LOADLIBES was renamed to KBUILD_HOSTLDLIBS in kernel 4.19. As the oldest kernel version we support is 5.10, cleanup HOST_LOADLIBES use. Signed-off-by: Stijn Tintel --- include/kernel-build.mk | 1 - include/kernel.mk | 1 - 2 files changed, 2 deletions(-) diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 80da4455bc..cc651f29b1 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -162,7 +162,6 @@ define BuildKernel $(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config $(_SINGLE)$(KERNEL_MAKE) \ $(if $(findstring Darwin,$(HOST_OS)), \ - HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib -lncurses" \ HOSTLDLIBS_mconf="-L$(STAGING_DIR_HOST)/lib -lncurses" \ filechk_conf_cfg=" :" \ ) \ diff --git a/include/kernel.mk b/include/kernel.mk index e4074a48f4..f27b78bbcc 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -110,7 +110,6 @@ KERNEL_MAKE_FLAGS = \ KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \ KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \ KBUILD_BUILD_VERSION="0" \ - HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib" \ KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \ CONFIG_SHELL="$(BASH)" \ $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \ From patchwork Sun Apr 3 16:14:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612767 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PGOcUMZV; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=NfZTWtw3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfFY5gVzz9sFq for ; Mon, 4 Apr 2022 02:17:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uKm6Catis4h1UOFso2BJlhTC56zXejxi8w+NyXKbGMA=; b=PGOcUMZVp1sMlM P9PZGdQ7dA/NKpP1D2kO6elzNwJ5DBQVKa7ozKkCRAvTt/Q3vbGcqM73V4xVyTnqytErpjDxtfa2D UEl+LkIDvVwa4aMRgzK56RfnWqgoIwhQ/6T4oTvp7s4hZVSEEnj2WY//5ZQi0QsPy3dspImA+h+cF bAG5vlUkgcFSy0YVUvXhAFamKD8N0KxMwgh7ymk4tVWNqAEoTHLnkWAS6TqiMp2VR2ouYVbh0VxHg rlCaxrGhCzpQzXD2uY5JmounliCgU1yWiS0+x+1Uf0sFlYFtBuSOJWGwk45Rve9UTF0vcJuRsXSSX hpG7t+TO5IPamjz48Dug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2tG-00BqDt-5K; Sun, 03 Apr 2022 16:15:46 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2se-00Bq59-B4 for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:10 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 0711A4474A66; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id UOpnN7Vn3WRr; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id B35544474A5E; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu B35544474A5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002498; bh=327dsA43TjUgQKZhIJu+OVCsuSFqKVpP/IgZIv4ZsR4=; h=From:To:Date:Message-Id:MIME-Version; b=NfZTWtw3ItnYRymFXxzy8yRaooO+Dq1bAnCQlAraOXhWp45URkc3EcSTCC7W2XING /lHnbyekzl9vuLAnkQxJqITIoXWQgQeP0B7NoNUtbJA+8l6Yjygpdbr0AbtKIp23M9 n9K6pkAFJj0ZRSJXSsvlFA44zp2tnCu1KsOQGvO0= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id jb__R5Jf2Gfq; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 788B04474A59; Sun, 3 Apr 2022 18:14:58 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 04/11] build: use KBUILD_HOSTLDFLAGS Date: Sun, 3 Apr 2022 19:14:46 +0300 Message-Id: <20220403161453.2113069-5-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 788B04474A59 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091508_547942_C4EA0148 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: According to the GNU make manual, specifying library paths should be done in LDFLAGS rather than LDLIBS. Replace KBUILD_HOSTLDLIBS with KBUILD_HOSTLDFLAGS to pass the host lib directory. Signed-off-by: Stijn Tintel --- include/kernel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org According to the GNU make manual, specifying library paths should be done in LDFLAGS rather than LDLIBS. Replace KBUILD_HOSTLDLIBS with KBUILD_HOSTLDFLAGS to pass the host lib directory. Signed-off-by: Stijn Tintel --- include/kernel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kernel.mk b/include/kernel.mk index f27b78bbcc..01b737f132 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -110,7 +110,7 @@ KERNEL_MAKE_FLAGS = \ KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \ KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \ KBUILD_BUILD_VERSION="0" \ - KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \ + KBUILD_HOSTLDFLAGS="-L$(STAGING_DIR_HOST)/lib" \ CONFIG_SHELL="$(BASH)" \ $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \ $(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \ From patchwork Sun Apr 3 16:14:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612770 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=JaoFIYzp; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=usDbbfoH; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfGx5sVsz9sFq for ; Mon, 4 Apr 2022 02:18:49 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a5Xg8E3kqc8fRntvESUDpngSZ0ScPHXUiYSVFRy66oU=; b=JaoFIYzpZuVPzT tZvHzJd/tGz7q9/BOOa7X1jEQpCiCnDBOnNtnJFliwGhNcWygb4qScThmULdWP0SaB9POc9xZNIye V9XXoToJNNtCrE9U1KsGbJpsd/jZU8wRG/E7IzOoa/mOUxl0aABtybDW8thObkPvDheUhd8Pii9Oo xTaf8Ji+5opNVlhWhCZauXsCiV/hT5swNYqo/9FTFrLseQnL+3pt50h6hdWgIlFtH0rP/xNIsGWqD a47NYFdJtS1kviPuj4T87QWl4UmAoaRel1MnxKp7HWxEw5bk7Ko6zHQxKYQ+ifowIoIPqlbNO+31y Fox3RnUN7X7T0lTSsUAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2uH-00BqdP-IF; Sun, 03 Apr 2022 16:16:49 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sg-00Bq6k-JW for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:12 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id B25434474A59; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id UF939Klbmv1j; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 54A864474A5E; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 54A864474A5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002499; bh=MpD/EBlxuGT5XiWkeRb809JMXKKJMtYKEQE3QhEVcM4=; h=From:To:Date:Message-Id:MIME-Version; b=usDbbfoHKyno7lknv01fuo4qqGIg6niamkytQbTytmwMzIIF4mLvqNPdKOt2vs1pn bCNepT+WISf7qCM1GKQ8fmlSS7md9HmqrWtc6J5r1MGjJSaiPvTrJSjA+F5OMPFbkC PvOKM8JTgGkKD2+JO3ItQyayzypRWySm9a+zoHlA= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id wXUpm0NGgU-q; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 1B0894474A59; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 05/11] tools/dwarves: add host package Date: Sun, 3 Apr 2022 19:14:47 +0300 Message-Id: <20220403161453.2113069-6-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 1B0894474A59 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091510_812307_76BAB70D X-CRM114-Status: GOOD ( 14.14 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tony Ambardar dwarves is a set of tools that use the debugging information inserted in ELF binaries by compilers such as GCC. Utilities in the dwarves suite include pahole, which can be used to find alignment holes [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tony Ambardar dwarves is a set of tools that use the debugging information inserted in ELF binaries by compilers such as GCC. Utilities in the dwarves suite include pahole, which can be used to find alignment holes in structs and classes, and also extracts other information such as CPU cacheline alignment, helping pack those structures to achieve more cache hits. These tools are also used to encode and read the BTF type information format used with the bpf syscall, making this a Linux build dependency when using kernel BTF information. Signed-off-by: Tony Ambardar Signed-off-by: Felix Fietkau [bump to 1.23, add elfutils dep, drop host lib usage, drop cmake release target, use RM macro] Signed-off-by: Stijn Tintel --- toolchain/Config.in | 8 ++++++++ tools/Makefile | 2 ++ tools/dwarves/Makefile | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 tools/dwarves/Makefile diff --git a/toolchain/Config.in b/toolchain/Config.in index 366f5c8b48..fb14006055 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -247,6 +247,14 @@ comment "Binary tools" source "toolchain/binutils/Config.in" +config DWARVES + bool + prompt "Build pahole" if TOOLCHAINOPTS + depends on !HOST_OS_MACOS + default n + help + Enable if you want to build pahole and the dwarves tools. + comment "Compiler" depends on TOOLCHAINOPTS diff --git a/tools/Makefile b/tools/Makefile index 416039cf38..507971c6d5 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -84,7 +84,9 @@ endif ifeq ($(HOST_OS),Darwin) tools-y += bash else + $(curdir)/dwarves/compile += $(curdir)/elfutils/compile $(curdir)/elfutils/compile := $(curdir)/zlib/compile + tools-$(CONFIG_DWARVES) += dwarves tools-y += elfutils endif diff --git a/tools/dwarves/Makefile b/tools/dwarves/Makefile new file mode 100644 index 0000000000..41f0532701 --- /dev/null +++ b/tools/dwarves/Makefile @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-only + +include $(TOPDIR)/rules.mk + +PKG_NAME:=dwarves + +PKG_SOURCE_VERSION:=v1.23 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/devel/pahole/pahole.git +PKG_MIRROR_HASH:=6ab1bb1dbdf6c73ffcf485d909229dc1da1a3d24efd213e92c56489b58d6a4bd +PKG_LICENSE:=GPL-2.0-only +PKG_LICENSE_FILES:=COPYING + +HOST_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_HOST_OPTIONS += \ + -D__LIB=lib \ + -DCMAKE_INSTALL_RPATH="$(STAGING_DIR_HOST)/lib" \ + -DCMAKE_SKIP_RPATH=FALSE + +define Host/Clean + $(RM) $(STAGING_DIR_HOST)/bin/{codiff,ctracer,dtagnames,pahole,pdwtags} + $(RM) $(STAGING_DIR_HOST)/bin/{pfunct,pglobal,prefcnt,scncopy,syscse} + $(RM) $(STAGING_DIR_HOST)/bin/{ostra-cg,btfdiff,fullcircle} + $(RM) $(STAGING_DIR_HOST)/lib/libdwarves*.so* + $(RM) $(STAGING_DIR_HOST)/share/man/man1/pahole.1 + rm -rf $(STAGING_DIR_HOST)/include/dwarves + rm -rf $(STAGING_DIR_HOST)/share/dwarves + $(call Host/Clean/Default) +endef + +$(eval $(call HostBuild)) From patchwork Sun Apr 3 16:14:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612773 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=AQlA4Vot; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=qRBuNjDC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfJs12Zjz9sFq for ; Mon, 4 Apr 2022 02:20:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Vu/9LNQvt2P9AxqxbdrGHE8M3zmsGAv1yDJi1R4g2b8=; b=AQlA4Votx4A27R JCUDkTTSqjLw49BVzvvjrY0Z1O+PL9Lz6ZcIgljOJ7l3LUuTuQFRDlt22+wmg+GlAU+ZTnRdkjsTo RysDt8YwDQhcxXl0JT6aLU1Sq5ZQXr/3yo1anVszG0aPErN9A0aNGzSKzySZ9WfOrODQgdz72snD0 r06osKr5AhGUOWjZLJYgIWSObSWDEFeKn0KayYaLRvC/eM6gAGakpQz9ZSGbURTCmrF1PlcIOBv3r tCOuSraRcpqOXyU5AYphBHW+ioEfjmLWDAoKPKsdEao9unXriNCpJWiySFCGYViWjX/QNB3eowO8v k+jOUEtmqtsG8iKn6hVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2vo-00BrEc-Ja; Sun, 03 Apr 2022 16:18:25 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sg-00Bq78-T3 for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:13 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 7CEFC4481988; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id BYyg9uiCu6fS; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 0135B447BBFB; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 0135B447BBFB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002500; bh=flASPtO7PLMjcczJf2Ehf6J+gyWJv4iXTrxboHvCU3U=; h=From:To:Date:Message-Id:MIME-Version; b=qRBuNjDCGDvQ8m6mYBt9xROx8bMIyVS8BoG5mQdUHAbpqdXWIyRHzVAi7C/24yvg1 joQcbWG69hwCOEMrVol+mJHtpZs+fIQ0nFFGObOBTpM2zX2+rqnksxJ46yCo6wh5Og GsB8qgamYvcCS1W7/sVxvR+f1Eo3I1rqkO6YS2Mo= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id dfsTRWEeZyX9; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id C2FAA4474A5E; Sun, 3 Apr 2022 18:14:59 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 06/11] kernel: backport build fix for tools/resolve_btfids Date: Sun, 3 Apr 2022 19:14:48 +0300 Message-Id: <20220403161453.2113069-7-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: C2FAA4474A5E X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091511_310135_55BD6BE3 X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Building tools/resolve_btfids requires libelf and zlib. Without this build fix, the kernel build system will not find these dependencies. Signed-off-by: Stijn Tintel --- ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++ ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++ 2 fi [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Building tools/resolve_btfids requires libelf and zlib. Without this build fix, the kernel build system will not find these dependencies. Signed-off-by: Stijn Tintel --- ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++ ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 target/linux/generic/backport-5.10/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch create mode 100644 target/linux/generic/backport-5.15/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch diff --git a/target/linux/generic/backport-5.10/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch b/target/linux/generic/backport-5.10/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch new file mode 100644 index 0000000000..489575fb35 --- /dev/null +++ b/target/linux/generic/backport-5.10/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch @@ -0,0 +1,54 @@ +From cdbc4e3399ed8cdcf234a85f7a2482b622379e82 Mon Sep 17 00:00:00 2001 +From: Connor O'Brien +Date: Wed, 12 Jan 2022 00:25:03 +0000 +Subject: [PATCH] tools/resolve_btfids: Build with host flags + +resolve_btfids is built using $(HOSTCC) and $(HOSTLD) but does not +pick up the corresponding flags. As a result, host-specific settings +(such as a sysroot specified via HOSTCFLAGS=--sysroot=..., or a linker +specified via HOSTLDFLAGS=-fuse-ld=...) will not be respected. + +Fix this by setting CFLAGS to KBUILD_HOSTCFLAGS and LDFLAGS to +KBUILD_HOSTLDFLAGS. + +Also pass the cflags through to libbpf via EXTRA_CFLAGS to ensure that +the host libbpf is built with flags consistent with resolve_btfids. + +Signed-off-by: Connor O'Brien +Signed-off-by: Andrii Nakryiko +Acked-by: Song Liu +Link: https://lore.kernel.org/bpf/20220112002503.115968-1-connoro@google.com +(cherry picked from commit 0e3a1c902ffb56e9fe4416f0cd382c97b09ecbf6) +Signed-off-by: Stijn Tintel +--- + tools/bpf/resolve_btfids/Makefile | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile +index af9f9d3534c9..e727058bfe15 100644 +--- a/tools/bpf/resolve_btfids/Makefile ++++ b/tools/bpf/resolve_btfids/Makefile +@@ -23,6 +23,8 @@ CC = $(HOSTCC) + LD = $(HOSTLD) + ARCH = $(HOSTARCH) + RM ?= rm ++CFLAGS := $(KBUILD_HOSTCFLAGS) ++LDFLAGS := $(KBUILD_HOSTLDFLAGS) + + OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/ + +@@ -45,9 +47,9 @@ $(SUBCMDOBJ): fixdep FORCE | $(OUTPUT)/libsubcmd + $(Q)$(MAKE) -C $(SUBCMD_SRC) OUTPUT=$(abspath $(dir $@))/ $(abspath $@) + + $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(OUTPUT)/libbpf +- $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(abspath $(dir $@))/ $(abspath $@) ++ $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(abspath $(dir $@))/ EXTRA_CFLAGS="$(CFLAGS)" $(abspath $@) + +-CFLAGS := -g \ ++CFLAGS += -g \ + -I$(srctree)/tools/include \ + -I$(srctree)/tools/include/uapi \ + -I$(LIBBPF_SRC) \ +-- +2.35.1 + diff --git a/target/linux/generic/backport-5.15/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch b/target/linux/generic/backport-5.15/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch new file mode 100644 index 0000000000..489575fb35 --- /dev/null +++ b/target/linux/generic/backport-5.15/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch @@ -0,0 +1,54 @@ +From cdbc4e3399ed8cdcf234a85f7a2482b622379e82 Mon Sep 17 00:00:00 2001 +From: Connor O'Brien +Date: Wed, 12 Jan 2022 00:25:03 +0000 +Subject: [PATCH] tools/resolve_btfids: Build with host flags + +resolve_btfids is built using $(HOSTCC) and $(HOSTLD) but does not +pick up the corresponding flags. As a result, host-specific settings +(such as a sysroot specified via HOSTCFLAGS=--sysroot=..., or a linker +specified via HOSTLDFLAGS=-fuse-ld=...) will not be respected. + +Fix this by setting CFLAGS to KBUILD_HOSTCFLAGS and LDFLAGS to +KBUILD_HOSTLDFLAGS. + +Also pass the cflags through to libbpf via EXTRA_CFLAGS to ensure that +the host libbpf is built with flags consistent with resolve_btfids. + +Signed-off-by: Connor O'Brien +Signed-off-by: Andrii Nakryiko +Acked-by: Song Liu +Link: https://lore.kernel.org/bpf/20220112002503.115968-1-connoro@google.com +(cherry picked from commit 0e3a1c902ffb56e9fe4416f0cd382c97b09ecbf6) +Signed-off-by: Stijn Tintel +--- + tools/bpf/resolve_btfids/Makefile | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile +index af9f9d3534c9..e727058bfe15 100644 +--- a/tools/bpf/resolve_btfids/Makefile ++++ b/tools/bpf/resolve_btfids/Makefile +@@ -23,6 +23,8 @@ CC = $(HOSTCC) + LD = $(HOSTLD) + ARCH = $(HOSTARCH) + RM ?= rm ++CFLAGS := $(KBUILD_HOSTCFLAGS) ++LDFLAGS := $(KBUILD_HOSTLDFLAGS) + + OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/ + +@@ -45,9 +47,9 @@ $(SUBCMDOBJ): fixdep FORCE | $(OUTPUT)/libsubcmd + $(Q)$(MAKE) -C $(SUBCMD_SRC) OUTPUT=$(abspath $(dir $@))/ $(abspath $@) + + $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(OUTPUT)/libbpf +- $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(abspath $(dir $@))/ $(abspath $@) ++ $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(abspath $(dir $@))/ EXTRA_CFLAGS="$(CFLAGS)" $(abspath $@) + +-CFLAGS := -g \ ++CFLAGS += -g \ + -I$(srctree)/tools/include \ + -I$(srctree)/tools/include/uapi \ + -I$(LIBBPF_SRC) \ +-- +2.35.1 + From patchwork Sun Apr 3 16:14:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612774 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=EjQsqWrn; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=iTyM2KZ9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfLP2wTKz9sFq for ; Mon, 4 Apr 2022 02:21:49 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h0Em0L2xHwZ8lY2eAMkwFaWRagQnN1T3tpiDUfPf8qs=; b=EjQsqWrn7KMoLr Kx71ziJl5kEsF0/IwIktHD9FnSICyZSlC51/GhSyfHFz8k8qKwv6HOqbqnLs2mNoPdkXC+hCMN1Oa EgG46exjzXGAFAYIDTW9skNfST1W85w9r1exGUjqe8bqUIIgzy891nFR3ohQRPMkOJBPzFiNl8iyd XjKqneKJ1KWC+7W6H2mJSB+fod67p83l8UHusdaHrEic4i/RV5hNu9MdJ3D4/W7joP0H+bevY0Uil 0jJ7wnuh8kreBMGO5pf1wdmPMEBv2oAImj4as4b4vzTORalwPBJ1alVPZ1vmHWwrcpy1oC1k7iv+e U0uZNVcCWOh+4k2eLXCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2ww-00BrnA-Ug; Sun, 03 Apr 2022 16:19:35 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2si-00Bq8I-BK for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:13 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id E79FC4474A5E; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id jiyn9y7o9CL9; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 9FAC5453E509; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 9FAC5453E509 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002500; bh=EiW/EOAX1Bf+cLhK4t401dO//aXCyVTeqxESQ6i0+to=; h=From:To:Date:Message-Id:MIME-Version; b=iTyM2KZ9S4malmIG4FnGXGQ+hYGsc1A6B2pJei//RWgXYFf7Mu+7LqRiPAuUUdJaU p8kuOdV91ysKWKa6+PvHb0QNpE0LXwohgS8xqcmnRK4VkKzT0OJp/XyuDvr064YfR2 p/HnCluBM+V9Z1h6+8WbBdcxdKvTGLzFvkwOXqvQ= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 35m_2wItijqR; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 663704474A5E; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 07/11] layerscape/armv8_64b: enable DEBUG_INFO_REDUCED Date: Sun, 3 Apr 2022 19:14:49 +0300 Message-Id: <20220403161453.2113069-8-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 663704474A5E X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091512_566113_21AC1A32 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: We currently enable DEBUG_INFO_REDUCED for all targets via the generic kernel config. There is only one subtarget, layerscape/armv8_64b, that overrides this setting. As there is no explanation for thi [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org We currently enable DEBUG_INFO_REDUCED for all targets via the generic kernel config. There is only one subtarget, layerscape/armv8_64b, that overrides this setting. As there is no explanation for this in the commit message that introduced this, and question to its author went unanswered, let's simply drop this symbol from the subtarget config. This way, we have consistency across the tree, and we do not have to introduce a special case when moving this symbol to an OpenWrt kernel config option. Signed-off-by: Stijn Tintel --- target/linux/layerscape/armv8_64b/config-5.10 | 1 - 1 file changed, 1 deletion(-) diff --git a/target/linux/layerscape/armv8_64b/config-5.10 b/target/linux/layerscape/armv8_64b/config-5.10 index 03c85a5aef..f16ce7e025 100644 --- a/target/linux/layerscape/armv8_64b/config-5.10 +++ b/target/linux/layerscape/armv8_64b/config-5.10 @@ -196,7 +196,6 @@ CONFIG_CRYPTO_ZSTD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_INFO=y -# CONFIG_DEBUG_INFO_REDUCED is not set CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DECOMPRESS_BZIP2=y CONFIG_DECOMPRESS_GZIP=y From patchwork Sun Apr 3 16:14:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612769 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qIBVwy4Q; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=X6D7zyv0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfGR5Jmgz9sFq for ; Mon, 4 Apr 2022 02:18:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JG3EqvhR7cvjcFwRR/MZgXMzwEJfPTyH5OKebPra/6c=; b=qIBVwy4Qhn97eg fi8TZzn4MbjXMmkbIL3ro3u3iHeNOVCqOLo85n2fcMtvRmq2aPLfL85reg6dKsBo2UWNxzQcw/8PA O6GEbMW88+DxoJ6T4wHsWg2yp7C9zRnAb/lPGQSapCn5PsMRNFw3M3/x0MjZohEXWsafXUTaBX+H0 EkTNTEGioY2+pP3dZxmXgKDDM+ulz+fle++ZmsTObSzDfvS6Nn1o6J0o6wjjE+e+8VGhzgmr4RIst Q1KbCJNIFhdtgdCjNCMijjw98cOuyooEYI2hzKLd1PB/Svf9QXrOMgLOBS3BE4wpfsH3QMkO3Tl3s 0iAB0XW/k+rdpLw9wfVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2to-00BqPN-SZ; Sun, 03 Apr 2022 16:16:21 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sf-00Bq68-Nj for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:11 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id A06E2453E509; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 6xZP4Z5x1BDR; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 425C5453E50A; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 425C5453E50A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002501; bh=8hnLtRba1jQFgewryp3XnngSmpYZHDMYX1y5MgF1ZXM=; h=From:To:Date:Message-Id:MIME-Version; b=X6D7zyv0B8us98Toxzy/OC8M5H33swiimRs6xhCeh2JW3S2Lz8/8XVNh9CxB9sPtb CliYHuIy4fpTkfSReedcypZujdtS5Ff4lvKBPim76O2yZM82Vkpcjh6AdM4ScEg8a8 zlMLGOMO2l4XK41z8Bu0BJ1BH2d0mWTKHWRogTpI= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 9BWm-1trOjef; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 067BC447BBFB; Sun, 3 Apr 2022 18:15:00 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 08/11] kernel: add DEBUG_INFO_REDUCED config option Date: Sun, 3 Apr 2022 19:14:50 +0300 Message-Id: <20220403161453.2113069-9-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 067BC447BBFB X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091509_969417_52D4097E X-CRM114-Status: GOOD ( 11.73 ) X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Add DEBUG_INFO_REDUCED as a kernel config option and remove it from the kernel configs. This is in preparation of the upcoming option to enable BTF typeinfo, which is incompatible with DEBUG_INFO_REDU [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Add DEBUG_INFO_REDUCED as a kernel config option and remove it from the kernel configs. This is in preparation of the upcoming option to enable BTF typeinfo, which is incompatible with DEBUG_INFO_REDUCED. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 14 ++++++++++++++ target/linux/generic/config-5.10 | 1 - target/linux/generic/config-5.15 | 1 - 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 5e12ddd78d..a9f4172d7f 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -368,6 +368,20 @@ config KERNEL_DEBUG_INFO help This will compile your kernel and modules with debug information. +config KERNEL_DEBUG_INFO_REDUCED + bool "Reduce debugging information" + default y + depends on KERNEL_DEBUG_INFO + help + If you say Y here gcc is instructed to generate less debugging + information for structure types. This means that tools that + need full debugging information (like kgdb or systemtap) won't + be happy. But if you merely need debugging information to + resolve line numbers there is no loss. Advantage is that + build directory object sizes shrink dramatically over a full + DEBUG_INFO build and compile times are reduced too. + Only works with newer gcc versions. + config KERNEL_DEBUG_LL_UART_NONE bool default n diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10 index a46fe13e64..806017e505 100644 --- a/target/linux/generic/config-5.10 +++ b/target/linux/generic/config-5.10 @@ -1276,7 +1276,6 @@ CONFIG_DEBUG_FS_ALLOW_ALL=y # CONFIG_DEBUG_INFO_BTF is not set # CONFIG_DEBUG_INFO_COMPRESSED is not set # CONFIG_DEBUG_INFO_DWARF4 is not set -CONFIG_DEBUG_INFO_REDUCED=y # CONFIG_DEBUG_INFO_SPLIT is not set CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_KMEMLEAK is not set diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index 04c5d51409..9f5ca48b07 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -1309,7 +1309,6 @@ CONFIG_DEBUG_FS_ALLOW_ALL=y # CONFIG_DEBUG_INFO_DWARF4 is not set # CONFIG_DEBUG_INFO_DWARF5 is not set CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y -CONFIG_DEBUG_INFO_REDUCED=y # CONFIG_DEBUG_INFO_SPLIT is not set # CONFIG_DEBUG_IRQFLAGS is not set CONFIG_DEBUG_KERNEL=y From patchwork Sun Apr 3 16:14:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612771 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HhJIS6lC; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=GLUCZqga; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfHm20dxz9sFq for ; Mon, 4 Apr 2022 02:19:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i9QE1XfAoMLJUMpqNapMRRSI8qzYHoyFzdcfYGSu9cA=; b=HhJIS6lCsfB1lg 5q2kAdaX7r+t/ax0kWs6ik9NRhrS2eiGRUt4DAfS2ON+XLLL4y1jAKur/C31YQezZH5xh82CEwsu1 wbYowZMZw1lZ4TAt2fSHwWBlHrGttpVHV4ejJCntQhHWr2IQoXUj1d2uydkVlm6W21bEJr3fAR/ir 1ybJYGTKqZRKLWN8Sd+JJKRYZc4Bow5u7Xzg4SkWotBspergYvMmBO87b79s8xUGtnnMYbYFf1/rl 2k4uh6YjN+EAkEahAXM+Xm2mIGhAfXObObxhdC0aNTAPkvezAw6nayyxhmzM7z2qOsplQQFuUJJvm pwKuTkO9BEN0h18n97VA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2uw-00Bqw2-Ki; Sun, 03 Apr 2022 16:17:31 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sg-00Bq7G-V1 for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:12 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 5280A447BBFB; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id nnEMu0I-UQOi; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id EB353453E50A; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu EB353453E50A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002502; bh=FwKBDe5sOsGbxN8vW+re9o9PjDObg64S7RCmtLawTOE=; h=From:To:Date:Message-Id:MIME-Version; b=GLUCZqgaeSgwua/NJItA7geGAbTjboBk1alCzlVV7RbbygohaPkG5grzoCBecr7g8 qnpPEEG1hHKPFEgeE8UlKD1qVSr2d6pAu4pLAO5Em9SBVfI2vbbS56r3C0yrS/YXuX t6mUX8kRxM2EZakSWI3XPuI4chpX3qoqnrIqXnuo= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id Bw8gL5a9swSk; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id B0514447BBFB; Sun, 3 Apr 2022 18:15:01 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 09/11] build: add option KERNEL_DEBUG_INFO_BTF Date: Sun, 3 Apr 2022 19:14:51 +0300 Message-Id: <20220403161453.2113069-10-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: B0514447BBFB X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091511_209290_F026AB25 X-CRM114-Status: UNSURE ( 8.24 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tony Ambardar Generate BTF (BPF Type Format) information from DWARF debug info. This is embedded in the kernel and exported via sysfs as /sys/kernel/btf/vmlinux. BTF data enhances kernel portability and introspecti [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tony Ambardar Generate BTF (BPF Type Format) information from DWARF debug info. This is embedded in the kernel and exported via sysfs as /sys/kernel/btf/vmlinux. BTF data enhances kernel portability and introspection for BPF programs. Selecting this also enables the dwarves host package which provides the pahole tool used for BTF encoding. Test using: "bpftool btf dump file /sys/kernel/btf/vmlinux format c" This needs to depend on KERNEL_DEBUG_INFO_REDUCED not being set, otherwise we can enable both KERNEL_DEBUG_INFO_BTF and KERNEL_DEBUG_INFO_REDUCED, which will result in undefined behaviour. Signed-off-by: Tony Ambardar Signed-off-by: Felix Fietkau [split DEBUG_INFO_REDUCED into separate commit, add dependency] Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index a9f4172d7f..a5e9ef477b 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -368,6 +368,20 @@ config KERNEL_DEBUG_INFO help This will compile your kernel and modules with debug information. +config KERNEL_DEBUG_INFO_BTF + + bool "Enable additional BTF type information" + default n + depends on !HOST_OS_MACOS + depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED + select DWARVES + help + Generate BPF Type Format (BTF) information from DWARF debug info. + Turning this on expects presence of pahole tool, which will convert + DWARF type info into equivalent deduplicated BTF type info. + + Required to run BPF CO-RE applications. + config KERNEL_DEBUG_INFO_REDUCED bool "Reduce debugging information" default y From patchwork Sun Apr 3 16:14:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612775 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=r1KhmC1p; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=sJv9++3X; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfMx1Y4wz9sFq for ; Mon, 4 Apr 2022 02:23:08 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tUZEbmawrrS8L7YoZW5bvOLD2u39sxiJQDjDtKm3xF8=; b=r1KhmC1p4NOQ1z KpaAfMkujwFOgB6GVnFXMYNQwN3gqH/2vVMK+S4MvUUjruwInARI8l84ReweYu6Skhj/wk5CnqzsV 5g+4xwStxaNofLT5V9O8siihCs8y5+DyheF7KEpiyi/u5tPFLT1jf+GEjoumbVl0KcxeYTMTZDpK0 2495GpxZ4eMe0V/gPCzZuB3RsEpx69UoHWqY1V1NZ6sNRqwsGND+q06mvRX5w4fI7YyKwHVvJofzA s4/32J8dNzGGdqIZfZpBpKY5kAyGbftqeMp3gp5HPA9aGsv99XXB3C+jwAjIrhoeH0uSwZqZ/ff7J a3lrFiqqqbtiY+e+Sbxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2y9-00BsMh-Ct; Sun, 03 Apr 2022 16:20:50 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sh-00Bq7Y-Qf for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:14 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 8D63F453E50A; Sun, 3 Apr 2022 18:15:03 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id PxerEB76bMu2; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id A062E453E513; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu A062E453E513 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002502; bh=gugYfE6ep6bgayqLmsAiD8XXyVppT6ZNG7UgVmv4UIE=; h=From:To:Date:Message-Id:MIME-Version; b=sJv9++3XofpZOKjGUWoDNV42Wt9C+cb1PcOt0MmUQZkwQBz9XhFWJindNtO9e5J+A ursopNhLcNgeWZgZD1wRZkjV22hGZn9EGP+ht4gnarIQSFfsZQKzR1MuVxiTEiYZon pAA/Svml7+itwlGMD0nmXaDd4leqpCHq7aRCugZI= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id cO-z6ZrXLv8T; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 606F5453E50A; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 10/11] config: limit CONFIG_DEBUG_INFO to top-level generic configs Date: Sun, 3 Apr 2022 19:14:52 +0300 Message-Id: <20220403161453.2113069-11-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 606F5453E50A X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091512_202047_2C4DE316 X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tony Ambardar Remove redundant target-level entries, noting that these settings will be configured from "Kernel build options" of Kconfig. Signed-off-by: Tony Ambardar Signed-off-by: Felix Fietkau [remove from new configs introduced after patch submission] Signed-off-by: Stijn Tintel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tony Ambardar Remove redundant target-level entries, noting that these settings will be configured from "Kernel build options" of Kconfig. Signed-off-by: Tony Ambardar Signed-off-by: Felix Fietkau [remove from new configs introduced after patch submission] Signed-off-by: Stijn Tintel --- target/linux/at91/sam9x/config-default | 1 - target/linux/at91/sama7/config-default | 1 - target/linux/bcm27xx/bcm2708/config-5.10 | 1 - target/linux/bcm27xx/bcm2709/config-5.10 | 1 - target/linux/bcm27xx/bcm2710/config-5.10 | 1 - target/linux/bcm27xx/bcm2711/config-5.10 | 1 - target/linux/bcm53xx/config-5.10 | 1 - target/linux/bcm53xx/config-5.15 | 1 - target/linux/bmips/config-5.10 | 1 - target/linux/layerscape/armv8_64b/config-5.10 | 1 - target/linux/mediatek/mt7623/config-5.10 | 1 - target/linux/mediatek/mt7623/config-5.15 | 1 - target/linux/mvebu/config-5.10 | 1 - target/linux/omap/config-5.10 | 1 - target/linux/qoriq/config-5.10 | 2 -- target/linux/realtek/rtl838x/config-5.10 | 1 - target/linux/realtek/rtl839x/config-5.10 | 1 - target/linux/realtek/rtl930x/config-5.10 | 1 - target/linux/realtek/rtl931x/config-5.10 | 1 - 19 files changed, 20 deletions(-) diff --git a/target/linux/at91/sam9x/config-default b/target/linux/at91/sam9x/config-default index 9f97e7542e..07dfee21b8 100644 --- a/target/linux/at91/sam9x/config-default +++ b/target/linux/at91/sam9x/config-default @@ -81,7 +81,6 @@ CONFIG_CRYPTO_HASH_INFO=y CONFIG_CRYPTO_LZO=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_ZSTD=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_DMADEVICES=y CONFIG_DMA_ENGINE=y diff --git a/target/linux/at91/sama7/config-default b/target/linux/at91/sama7/config-default index 8c453659dc..e090b6aa1b 100644 --- a/target/linux/at91/sama7/config-default +++ b/target/linux/at91/sama7/config-default @@ -151,7 +151,6 @@ CONFIG_CRYPTO_SHA256=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_AT91_SAMA7G5_FLEXCOM3=y CONFIG_DEBUG_AT91_UART=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/at91.S" CONFIG_DEBUG_UART_PHYS=0xe1824200 diff --git a/target/linux/bcm27xx/bcm2708/config-5.10 b/target/linux/bcm27xx/bcm2708/config-5.10 index 56e076ba95..f5d9fdd70f 100644 --- a/target/linux/bcm27xx/bcm2708/config-5.10 +++ b/target/linux/bcm27xx/bcm2708/config-5.10 @@ -110,7 +110,6 @@ CONFIG_CRYPTO_CRC32C=y CONFIG_CRYPTO_RNG2=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_HEAPS_CMA=y diff --git a/target/linux/bcm27xx/bcm2709/config-5.10 b/target/linux/bcm27xx/bcm2709/config-5.10 index f15f6e3562..0eb4a680bd 100644 --- a/target/linux/bcm27xx/bcm2709/config-5.10 +++ b/target/linux/bcm27xx/bcm2709/config-5.10 @@ -142,7 +142,6 @@ CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_XTS=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_DIMLIB=y CONFIG_DMABUF_HEAPS=y diff --git a/target/linux/bcm27xx/bcm2710/config-5.10 b/target/linux/bcm27xx/bcm2710/config-5.10 index 6e26891070..0b6e42289a 100644 --- a/target/linux/bcm27xx/bcm2710/config-5.10 +++ b/target/linux/bcm27xx/bcm2710/config-5.10 @@ -141,7 +141,6 @@ CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_XTS=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_INFO=y CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_HEAPS_CMA=y CONFIG_DMABUF_HEAPS_SYSTEM=y diff --git a/target/linux/bcm27xx/bcm2711/config-5.10 b/target/linux/bcm27xx/bcm2711/config-5.10 index 03d84378b3..12dbf5205f 100644 --- a/target/linux/bcm27xx/bcm2711/config-5.10 +++ b/target/linux/bcm27xx/bcm2711/config-5.10 @@ -145,7 +145,6 @@ CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_XTS=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_INFO=y CONFIG_DIMLIB=y CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_HEAPS_CMA=y diff --git a/target/linux/bcm53xx/config-5.10 b/target/linux/bcm53xx/config-5.10 index 6049641898..c522d7c902 100644 --- a/target/linux/bcm53xx/config-5.10 +++ b/target/linux/bcm53xx/config-5.10 @@ -100,7 +100,6 @@ CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_ZSTD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BCM_5301X=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_MISC=y diff --git a/target/linux/bcm53xx/config-5.15 b/target/linux/bcm53xx/config-5.15 index 6049641898..c522d7c902 100644 --- a/target/linux/bcm53xx/config-5.15 +++ b/target/linux/bcm53xx/config-5.15 @@ -100,7 +100,6 @@ CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_ZSTD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BCM_5301X=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_MISC=y diff --git a/target/linux/bmips/config-5.10 b/target/linux/bmips/config-5.10 index bd54950210..e42d32bdaa 100644 --- a/target/linux/bmips/config-5.10 +++ b/target/linux/bmips/config-5.10 @@ -65,7 +65,6 @@ CONFIG_CRYPTO_LZO=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_ZSTD=y CONFIG_CSRC_R4K=y -CONFIG_DEBUG_INFO=y CONFIG_DMA_NONCOHERENT=y CONFIG_DTC=y # CONFIG_DT_BCM93384WVG is not set diff --git a/target/linux/layerscape/armv8_64b/config-5.10 b/target/linux/layerscape/armv8_64b/config-5.10 index f16ce7e025..a43025651a 100644 --- a/target/linux/layerscape/armv8_64b/config-5.10 +++ b/target/linux/layerscape/armv8_64b/config-5.10 @@ -195,7 +195,6 @@ CONFIG_CRYPTO_XXHASH=y CONFIG_CRYPTO_ZSTD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_BUGVERBOSE=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_MEMORY_INIT=y CONFIG_DECOMPRESS_BZIP2=y CONFIG_DECOMPRESS_GZIP=y diff --git a/target/linux/mediatek/mt7623/config-5.10 b/target/linux/mediatek/mt7623/config-5.10 index 3d017400a0..b85ef54ab0 100644 --- a/target/linux/mediatek/mt7623/config-5.10 +++ b/target/linux/mediatek/mt7623/config-5.10 @@ -133,7 +133,6 @@ CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_ALIGN_RODATA=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_GPIO=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_MISC=y diff --git a/target/linux/mediatek/mt7623/config-5.15 b/target/linux/mediatek/mt7623/config-5.15 index a46c883dff..13fa243796 100644 --- a/target/linux/mediatek/mt7623/config-5.15 +++ b/target/linux/mediatek/mt7623/config-5.15 @@ -130,7 +130,6 @@ CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_ALIGN_RODATA=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_GPIO=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_MISC=y diff --git a/target/linux/mvebu/config-5.10 b/target/linux/mvebu/config-5.10 index 0bce22daee..75143af379 100644 --- a/target/linux/mvebu/config-5.10 +++ b/target/linux/mvebu/config-5.10 @@ -126,7 +126,6 @@ CONFIG_CRYPTO_SHA512_ARM=y CONFIG_CRYPTO_SIMD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DEBUG_ALIGN_RODATA=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL=y CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_MVEBU_UART0=y diff --git a/target/linux/omap/config-5.10 b/target/linux/omap/config-5.10 index 5ccadc1307..4fb8c770d2 100644 --- a/target/linux/omap/config-5.10 +++ b/target/linux/omap/config-5.10 @@ -161,7 +161,6 @@ CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_ZSTD=y CONFIG_DCACHE_WORD_ACCESS=y CONFIG_DDR=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_DM9000=y # CONFIG_DM9000_FORCE_SIMPLE_PHY_POLL is not set diff --git a/target/linux/qoriq/config-5.10 b/target/linux/qoriq/config-5.10 index e76ca379ff..daf5bccefe 100644 --- a/target/linux/qoriq/config-5.10 +++ b/target/linux/qoriq/config-5.10 @@ -87,8 +87,6 @@ CONFIG_CRYPTO_RSA=y # CONFIG_CRYPTO_SHA1_PPC is not set CONFIG_CRYPTO_XTS=y CONFIG_DATA_SHIFT=12 -CONFIG_DEBUG_INFO=y -CONFIG_DEBUG_INFO_DWARF4=y CONFIG_DEFAULT_UIMAGE=y CONFIG_DMADEVICES=y CONFIG_DMA_ENGINE=y diff --git a/target/linux/realtek/rtl838x/config-5.10 b/target/linux/realtek/rtl838x/config-5.10 index 8e27af95ba..8bb35cd33b 100644 --- a/target/linux/realtek/rtl838x/config-5.10 +++ b/target/linux/realtek/rtl838x/config-5.10 @@ -33,7 +33,6 @@ CONFIG_CPU_SUPPORTS_MSA=y CONFIG_CRYPTO_LIB_POLY1305_RSIZE=2 CONFIG_CRYPTO_RNG2=y CONFIG_CSRC_R4K=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DMA_NONCOHERENT=y CONFIG_DTC=y diff --git a/target/linux/realtek/rtl839x/config-5.10 b/target/linux/realtek/rtl839x/config-5.10 index 5704b4265a..2eb3bd433c 100644 --- a/target/linux/realtek/rtl839x/config-5.10 +++ b/target/linux/realtek/rtl839x/config-5.10 @@ -35,7 +35,6 @@ CONFIG_CRYPTO_LIB_POLY1305_RSIZE=2 CONFIG_CRYPTO_NULL2=y CONFIG_CRYPTO_RNG2=y CONFIG_CSRC_R4K=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DMA_NONCOHERENT=y CONFIG_DTC=y diff --git a/target/linux/realtek/rtl930x/config-5.10 b/target/linux/realtek/rtl930x/config-5.10 index 8e24bf86e7..860327be8f 100644 --- a/target/linux/realtek/rtl930x/config-5.10 +++ b/target/linux/realtek/rtl930x/config-5.10 @@ -36,7 +36,6 @@ CONFIG_CRYPTO_LIB_POLY1305_RSIZE=2 CONFIG_CRYPTO_NULL2=y CONFIG_CRYPTO_RNG2=y CONFIG_CSRC_R4K=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DMA_NONCOHERENT=y CONFIG_DTC=y diff --git a/target/linux/realtek/rtl931x/config-5.10 b/target/linux/realtek/rtl931x/config-5.10 index ac60938ddc..bdbd88cfe5 100644 --- a/target/linux/realtek/rtl931x/config-5.10 +++ b/target/linux/realtek/rtl931x/config-5.10 @@ -40,7 +40,6 @@ CONFIG_CRYPTO_LIB_POLY1305_RSIZE=2 CONFIG_CRYPTO_NULL2=y CONFIG_CRYPTO_RNG2=y CONFIG_CSRC_R4K=y -CONFIG_DEBUG_INFO=y CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_DMA_NONCOHERENT=y CONFIG_DTC=y From patchwork Sun Apr 3 16:14:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 1612776 X-Patchwork-Delegate: stijn@linux-ipv6.be Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=hfvjC19c; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.a=rsa-sha256 header.s=502B7754-045F-11E5-BBC5-64595FD46BE8 header.b=UiErKXoN; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KWfPj24gkz9sFq for ; Mon, 4 Apr 2022 02:24:41 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qKJKw+H+efIfCKE0O8dFLHNX7145hMt3qZ6Hr9Hcatg=; b=hfvjC19cEiZuYR k0tOQ+Po6G4G5N/+/hL4Q+j9W4GIPdpju2yz9571JPvPzlPe4LqZrJ573yKtPSD+VKD4UVcBHy+RJ 9npqzs5xiPvx9WZ63HPsw7Cf0ppMv5hbuEmFb3Rq8mLcnTr5lgK0nfOxiUZKa4Mka28feSqxEbM9y 193fyXZBRwiBVbs8klowXZofnuiWs/PDgwODjuKsoGsPYu8NcXCNgNBwtBiVsSviZFUOPgF5XXA+O uAuVHUwyluPlTAF8YxCN5pY2s3xhn0WKPUkHaxbOlSkmjaZiS0luH7ydc9RiqPu8j2LxlrhBOsP+j 42iT+AVGnrHr//4qO+Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2zk-00Bt4v-1L; Sun, 03 Apr 2022 16:22:29 +0000 Received: from mail.tintel.eu ([51.83.127.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nb2sj-00Bq8y-Si for openwrt-devel@lists.openwrt.org; Sun, 03 Apr 2022 16:15:15 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 8484F453E516; Sun, 3 Apr 2022 18:15:03 +0200 (CEST) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 0P4gjPnb_Ouc; Sun, 3 Apr 2022 18:15:03 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 3D121453E515; Sun, 3 Apr 2022 18:15:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.tintel.eu 3D121453E515 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1649002503; bh=jF+DxJE03i5Fmw24PnHZxJrTFk9nMxEEF8PB/Hiovdk=; h=From:To:Date:Message-Id:MIME-Version; b=UiErKXoN6rL/Zy7aOwfa+BSFDdNAN6UjrkvC2V/hWGVvAun3Q4HQdU8PZu4vCW/Fo MllA74+ic6bpFQFk9CssMdTbaDwqjsVM2FccOFabIr4P24WxiXTm4w5tsUP9SlLltl AOpzUaCiDDdciNlZVtTxoRgvjRBS40tINfdyoeSQ= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id IupQZ0CapyKG; Sun, 3 Apr 2022 18:15:03 +0200 (CEST) Received: from taz.sof.bg.adlevio.net (unknown [IPv6:2001:67c:21bc:20::10]) by mail.tintel.eu (Postfix) with ESMTPS id 03E36453E50A; Sun, 3 Apr 2022 18:15:02 +0200 (CEST) From: Stijn Tintel To: openwrt-devel@lists.openwrt.org Cc: nbd@nbd.name, ansuelsmth@gmail.com, itugrok@yahoo.com, lucian.cristian@gmail.com, rosenp@gmail.com Subject: [PATCH v2 11/11] kernel: add KERNEL_BPF_EVENTS config option Date: Sun, 3 Apr 2022 19:14:53 +0300 Message-Id: <20220403161453.2113069-12-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403161453.2113069-1-stijn@linux-ipv6.be> References: <20220403161453.2113069-1-stijn@linux-ipv6.be> MIME-Version: 1.0 X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Rspamd-Queue-Id: 03E36453E50A X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: IP_WHITELIST X-Spamd-Result: default: False [0.00 / 15.00]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:200533, ipnet:2001:67c:21bc::/48, country:BG]; IP_WHITELIST(0.00)[2001:67c:21bc:20::10] X-Rspamd-Server: skulls X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220403_091514_108403_9230C98A X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY for sending data from BPF programs to user-space for post-processing or logging. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY for sending data from BPF programs to user-space for post-processing or logging. Signed-off-by: Stijn Tintel --- config/Config-kernel.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index a5e9ef477b..b77183e8f7 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -450,10 +450,20 @@ config KERNEL_KPROBE_EVENTS bool default y if KERNEL_KPROBES +config KERNEL_BPF_EVENTS + bool "Compile the kernel with BPF event support" + default n + select KERNEL_KPROBES + help + Allows to attach BPF programs to kprobe, uprobe and tracepoint events. + This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY + for sending data from BPF programs to user-space for post-processing + or logging. + config KERNEL_BPF_KPROBE_OVERRIDE bool - depends on KERNEL_KPROBES default n + depends on KERNEL_KPROBES config KERNEL_AIO bool "Compile the kernel with asynchronous IO support"