From nobody Sat Apr 18 02:47:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBFDCC43334 for ; Tue, 19 Jul 2022 02:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234537AbiGSCh7 (ORCPT ); Mon, 18 Jul 2022 22:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbiGSCh6 (ORCPT ); Mon, 18 Jul 2022 22:37:58 -0400 Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128A322BDA; Mon, 18 Jul 2022 19:37:56 -0700 (PDT) Received: from grover.jp (133-32-177-133.west.xps.vectant.ne.jp [133.32.177.133]) (authenticated) by conuserg-08.nifty.com with ESMTP id 26J2bJ4H004522; Tue, 19 Jul 2022 11:37:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 26J2bJ4H004522 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1658198239; bh=HQK6QEDJxQcORRIWR/HJ2dPOwcOH2XLZjLHhiFJZjLc=; h=From:To:Cc:Subject:Date:From; b=136eVUOFw7hnvltqX0qb8mAv8hsb5qD3E5F5G99GR4eflY3VlUd6kIAU0PRMVrnMW 6biWEwuhmOWrkUJ0s1FGlsmq7ueWmaWZnvHY4TmEwoZHBTT9uUhS8mIH7OVW0BfsAy EZV0eiazj1AjM8X29LjcSy8jo9/NE2+vKKzedFuwabxHy3zFh7powUjwo+9hqNEahE C0B6S15AYGF3qNkW3chx+rmvbnceYg2f7R2JU7MKK0qDLHaXUYRQUPArdkX2BxiTbT N0RMxmgGcjq68wW+T5HUQSyD5GSkuYDCu4iqR6mZLbbTY4GR7kNCcRlHolV3S43GKv STyuVN8/cOp6Q== X-Nifty-SrcIP: [133.32.177.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kconfig: shorten the temporary directory name for cc-option Date: Tue, 19 Jul 2022 11:35:39 +0900 Message-Id: <20220719023539.2199045-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The cc-option macro creates the temporary directory, .tmp_$$$$, which is expanded into .tmp_, but the second is redundant. ( is the process ID of the sub-shell) If it were the Makefile code, .tmp_$$$$ would be the correct code. (see the TMPOUT macro in scripts/Malefile.compiler) In Makefile, '$$' is an escape sequence of '$'. Make expands '$$$$' into '$$', then shell expands it into the process ID. This does not apply to Kconfig because Kconfig requires variable references to be enclosed by curly braces, like ${variable}. The '$' that is not followed by '{' loses its special function. Signed-off-by: Masahiro Yamada Tested-by: Nicolas Schier --- scripts/Kconfig.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kconfig.include b/scripts/Kconfig.include index 0496efd6e117..c1f4222d223d 100644 --- a/scripts/Kconfig.include +++ b/scripts/Kconfig.include @@ -25,7 +25,7 @@ failure =3D $(if-success,$(1),n,y) =20 # $(cc-option,) # Return y if the compiler supports , n otherwise -cc-option =3D $(success,mkdir .tmp_$$$$; trap "rm -rf .tmp_$$$$" EXIT; $(C= C) -Werror $(CLANG_FLAGS) $(1) -c -x c /dev/null -o .tmp_$$$$/tmp.o) +cc-option =3D $(success,mkdir .tmp_$$; trap "rm -rf .tmp_$$" EXIT; $(CC) -= Werror $(CLANG_FLAGS) $(1) -c -x c /dev/null -o .tmp_$$/tmp.o) =20 # $(ld-option,) # Return y if the linker supports , n otherwise --=20 2.34.1