From patchwork Mon Mar 20 11:09:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 1758952 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PgBpp6C5Sz246f for ; Mon, 20 Mar 2023 22:10:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7F795414C8; Mon, 20 Mar 2023 11:10:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7F795414C8 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X66B7vcMmMiV; Mon, 20 Mar 2023 11:10:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 6D231414C5; Mon, 20 Mar 2023 11:10:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6D231414C5 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D5BB01BF3FC for ; Mon, 20 Mar 2023 11:10:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id AF46F813D6 for ; Mon, 20 Mar 2023 11:10:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AF46F813D6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZXHVNGTzQzrX for ; Mon, 20 Mar 2023 11:10:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6F985813AE Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6F985813AE for ; Mon, 20 Mar 2023 11:10:02 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id x17so14390749lfu.5 for ; Mon, 20 Mar 2023 04:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679310599; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RVCqY+Grqk2JVxEWW5iM41LqbbYGYwjhcips3LKhQoE=; b=FMve5Ij9r7ZDmDFDiSVxBOTpTJaXbv17Q+KMeRDJ+rolAHnO6C8a2kV4m1J+U4M229 M4XcK9R47qsbXfa3PPIi2s3H0w91K6G6Cihf3wja8NoUwPblJXT75uLk991GpO/55Eg5 hjodPm+TFVfzjhxuaeo9puu0r5/z4HjqM0P3YmPMC8KyQg+pUK4F+CdZp7d2zGTICB+d st1K7+WpiypMtc2xw55MGb1FlEMe0rQx4VajXdi7ZhGwUOyLmhqzir+lr5qiKXXdXK27 FQXXaKOf2oGLOzrSJ7OiPxlblA+fS71Vl/Qed9BWpkJ4Y+CJ24zqgpcFp/Gtsvtty7vn xAMA== X-Gm-Message-State: AO0yUKW0xlBJaK8ZgJINiZ0qq9a3qyotJuv1+z8xGcMq3pqumuKngs3y 4KA/MlrrSjgMaDUWiXgMolBHjQv/sKs= X-Google-Smtp-Source: AK7set+eVXv4Yx0UuNBa1hT2afW+ER893RJeXBtRhevfOr8RUBBps9tqqC0kJBfYo773b5jdowaDeQ== X-Received: by 2002:a05:6512:972:b0:4dd:cef0:c27c with SMTP id v18-20020a056512097200b004ddcef0c27cmr6046636lft.33.1679310599351; Mon, 20 Mar 2023 04:09:59 -0700 (PDT) Received: from localhost.localdomain (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id o18-20020ac24352000000b004caf992bba9sm1632814lfl.268.2023.03.20.04.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 04:09:58 -0700 (PDT) From: Marcus Folkesson To: buildroot@buildroot.org Date: Mon, 20 Mar 2023 12:09:42 +0100 Message-Id: <20230320110943.1606631-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679310599; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RVCqY+Grqk2JVxEWW5iM41LqbbYGYwjhcips3LKhQoE=; b=EU7YUc3+bjvkbjeDFvhDT2MAIVZKEiIEU8IHL1zq4hcjV5umQ6XDRhkb/4237xYNDq drJl0+mtXiyLwIPi0GtqqmTEmLOSAfX5jPGedwGZwm2Wx64k+HSqE5x13DdPeIlOKxLW 9txjZekpDjVFxl81C5MU05inHOygkaQpcUY1VIiAIu73xFpNLVM9wFHYJ25C/anTaS9X OyLoRw8S+SZ+EV3wmSWohDhlrRZyleiiC+JhXeNc+tvkRX1fhBuD75+wx5pbv6EXOnR6 1TgLY3RdpbcW/TTXcALigUWe44pnTCfhgzJZrmCn4opMkuoNHm7BWDcVH8NLSxG2b2y2 QY/Q== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=EU7YUc3+ Subject: [Buildroot] [RESEND PATCH v2 1/2] package/pkg-kconfig.mk new -show-fragment target X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcus Folkesson , Thomas De Schampheleire Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This patch introduce the new target to simplify the generation of configuration fragments as the output could be directly copied into a fragment file as-is. It is *heavily* based on the -diff-config target, but serves a different purpose. Output from linux-diff-config: -CONFIG_GCC_PLUGIN_ARM_SSP_PER_TASK y -CONFIG_GCC_PLUGIN_CYC_COMPLEXITY n -CONFIG_GCC_PLUGIN_LATENT_ENTROPY n -CONFIG_GCC_PLUGIN_RANDSTRUCT n -CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF n -CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL n -CONFIG_GCC_PLUGIN_STRUCTLEAK_USER n -CONFIG_STACKPROTECTOR_PER_TASK y CONFIG_CRYPTO_DH n -> y CONFIG_CRYPTO_KPP m -> y CONFIG_GCC_PLUGINS y -> n CONFIG_KEY_DH_OPERATIONS n -> y CONFIG_PKCS8_PRIVATE_KEY_PARSER n -> y CONFIG_VIDEO_IMX274 n -> m Output from linux-show-fragment: CONFIG_CRYPTO_DH=y CONFIG_CRYPTO_KPP=y CONFIG_KEY_DH_OPERATIONS=y CONFIG_PKCS8_PRIVATE_KEY_PARSER=y CONFIG_VIDEO_IMX274=m Signed-off-by: Marcus Folkesson --- package/pkg-kconfig.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/pkg-kconfig.mk b/package/pkg-kconfig.mk index f4f35bf96a..ee96525c47 100644 --- a/package/pkg-kconfig.mk +++ b/package/pkg-kconfig.mk @@ -309,12 +309,26 @@ $(1)-diff-config: $(1)-check-configuration-done $$(Q)cp -a $$($(2)_DIR)/.config.dc.bak $$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG) $$(Q)rm -f $$($(2)_DIR)/.config.dc.bak +# Target to output differences between the configuration obtained via the +# defconfig + fragments (if any) and the current configuration. +# Output format is suitable to be used as-is in fragment files. +# Note: it preserves the timestamp of the current configuration when moving it +# around. +$(1)-show-fragment: $(1)-check-configuration-done + $$(Q)cp -a $$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG) $$($(2)_DIR)/.config.dc.bak + $$(call kconfig-package-merge-config,$(2),$$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG),\ + $$($(2)_KCONFIG_FRAGMENT_FILES)) + $$(Q)utils/diffconfig -m $$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG) \ + $$($(2)_DIR)/.config.dc.bak + $$(Q)cp -a $$($(2)_DIR)/.config.dc.bak $$($(2)_DIR)/$$($(2)_KCONFIG_DOTCONFIG) + $$(Q)rm -f $$($(2)_DIR)/.config.dc.bak endif # package enabled .PHONY: \ $(1)-diff-config \ $(1)-check-configuration-done \ + $(1)-show-fragment \ $$($(2)_DIR)/.kconfig_editor_% \ $$(addprefix $(1)-,$$($(2)_KCONFIG_EDITORS)) From patchwork Mon Mar 20 11:09:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 1758953 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PgBq43Qcrz246f for ; Mon, 20 Mar 2023 22:10:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 028EB4150E; Mon, 20 Mar 2023 11:10:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 028EB4150E X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XuDt2Bih68Vf; Mon, 20 Mar 2023 11:10:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id F01D64154A; Mon, 20 Mar 2023 11:10:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org F01D64154A X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 35A871BF3FC for ; Mon, 20 Mar 2023 11:10:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0F95B813AE for ; Mon, 20 Mar 2023 11:10:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0F95B813AE X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dOcP_JofhgFC for ; Mon, 20 Mar 2023 11:10:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 937678139D Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by smtp1.osuosl.org (Postfix) with ESMTPS id 937678139D for ; Mon, 20 Mar 2023 11:10:04 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id y15so14367121lfa.7 for ; Mon, 20 Mar 2023 04:10:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679310602; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rhc8VauKrC330/NOSZMPXk2OZn4LRor1YlfbRqdK64I=; b=2atD3OqpuZBuA0+giQKqqM1eleg7spUbGKJg/lcTN7kN7+REcoLLg7Tesh9At0hZP3 g5dO166bAMhgab3cwlAc4cvlv3t5f2OF2SfOr7AD4wKip5BagFE7bnxca/F8oT7/SPfE Ksv8hYQKf7Id1GnZ9Niuca5LqXHRn5A3SkoFdQBZojSRqM5oc5M7is8bU0YoCgdJD0zd dXoxKzcEdK3D57jfRYvRSuIfPXVpabcPipR//1hnLFPXB3xGv2O6Zb5a37WyzaPYVLCD QlXHFosyUrbpQVRCJfhn6qKCj9C2YvKK9sBeT3mGTXouseU8hvZQqJgCm3RB5HBUyOdU lyNA== X-Gm-Message-State: AO0yUKWQqT9GZqXzkvSHC0EamHLu35+hryB8XAtNTYhCOpAmY4jfhQ20 u9KYqSdOH5roD2g7CEa/OZmhmEC1Tzk= X-Google-Smtp-Source: AK7set8Lv1MHJUhTN/6pW7SLKNr/QrWf4cLBWAE2JYbRhj/EMsHVq5uoo42XVRh7AwKGXJJ1ReeFYA== X-Received: by 2002:ac2:4c1b:0:b0:4dd:98c6:ee1 with SMTP id t27-20020ac24c1b000000b004dd98c60ee1mr6139664lfq.61.1679310601277; Mon, 20 Mar 2023 04:10:01 -0700 (PDT) Received: from localhost.localdomain (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id o18-20020ac24352000000b004caf992bba9sm1632814lfl.268.2023.03.20.04.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 04:09:59 -0700 (PDT) From: Marcus Folkesson To: buildroot@buildroot.org Date: Mon, 20 Mar 2023 12:09:43 +0100 Message-Id: <20230320110943.1606631-2-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230320110943.1606631-1-marcus.folkesson@gmail.com> References: <20230320110943.1606631-1-marcus.folkesson@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679310602; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Rhc8VauKrC330/NOSZMPXk2OZn4LRor1YlfbRqdK64I=; b=QuT8w9aeOlvT1JSbrOYaHa3DptI6sOXUrTy1aWbH0hbsrNTcT4Ik7wd960C90xddLM lj86jTzhh5/SI15EILcjkgsHLWxj69bMc31JW+hiH4dCHj+Lqp2fuCgEvtsdX7h0AgGu iDhz4EFYulNrjLajvUYK4UYhzS4rwVZmUzENK+oGTcuxk00pctUlovRZQl/U1nQBbuPJ FUvo0n8vp7Zed6n57DsKcFn/9AQY3yhZF5Cu6VSNsGj9uopYsqq150HYHESyL4/gdb6P NFBnHweFnM1t10bQvkKSKPWnSg5MfOH05Ff5jBUBivCQocAvn0aIEqUbEk3Q8b+M1Yv4 zkoQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QuT8w9ae Subject: [Buildroot] [RESEND PATCH v2 2/2] docs/manual: update pkg-kconfig doc about -show-fragment X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcus Folkesson , Thomas De Schampheleire Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Describe this new target. Signed-off-by: Marcus Folkesson --- docs/manual/adding-packages-kconfig.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/manual/adding-packages-kconfig.txt b/docs/manual/adding-packages-kconfig.txt index a35681775f..b67430c85f 100644 --- a/docs/manual/adding-packages-kconfig.txt +++ b/docs/manual/adding-packages-kconfig.txt @@ -45,9 +45,11 @@ This snippet creates the following make targets: * +foo-diff-config+, which outputs the differences between the current configuration and the one defined in the Buildroot configuration for - this kconfig package. The output is useful to identify the - configuration changes that may have to be propagated to - configuration fragments for example. + this kconfig package. The output is useful to identify + configuration changes. + +* +foo-show-fragment+, Similiar to +foo-diff-config+, but with an output + format more suitable to be used in fragment files. and ensures that the source configuration file is copied to the build directory at the right moment.