From patchwork Sat Feb 17 05:55:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 202573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp165047dyc; Fri, 16 Feb 2024 21:55:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqB8DQ/n7JD0cjjUNCNYw+RI5i6i/+3U3c1Vy/8PAUlcokZ15Btt153/XWuhR9lqfF+Uatp3mRbmHPEvAmh5n+61XVgA== X-Google-Smtp-Source: AGHT+IFhiGjJ1kL5GJfXr502gOrvVIlB+IcxKGXtbzK+KkxzDZGaw848tL38M3icb2PdKaCPIq44 X-Received: by 2002:a05:620a:178f:b0:787:23ba:7c4b with SMTP id ay15-20020a05620a178f00b0078723ba7c4bmr9403230qkb.11.1708149339065; Fri, 16 Feb 2024 21:55:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708149339; cv=pass; d=google.com; s=arc-20160816; b=uCv5sv72geWPZeGqzykUnepdt7e53ixsrepHWTwcS60P3V9F4XpdxzO50pn02S2Ao7 5euwA7DJkQz0ehv5fJbPO1pRvhd9QO2aYgSJGm69yi0d7epkE0+SkzvuFzo5h+7VVCS/ l3MnVjmQczCWBgcLCIHkO08zYedcDzTcuPq6mDYhtmVlRf1AwK7lQ5ORQZaYQ35I00ht +PPhSZ0QXglqxkdjP7HEXk3WracjvCvXngE+v4hAr/0Kbyjhl5ZJmZ8+OjuPY+f2/CQ2 IKLlJYoxw43OeWatiQDKmIIfaM53l0JmJFCCP83hVDIsYACtP8ROEbrHdxVkGNzjy+Ap 2STQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Y2NI9c56gsEZ5/XBEWe36/VszcTibBH1pnKSLSiooDg=; fh=NH7n+QbPRtP0TU4Jk5n6iEs/vA2hk142/DRvIwUSBjY=; b=BQAuPK7yIz8SKQOmVTC6o55UICznZbP0bL83NxcV9ePdwui73O0vmVF2RVs5rSVwrD 5At2aae0/9KutV0foYIHloNb38U0hZQ5A15kednd/JGH2CHV8iX5WAfxP98dy50smFng rs46TTypwGnCIq4S23EK5REiS0ohjb+lmiIKXob5Zv/xvVR5CByl6DDfBUPMcVospUSJ ZjX23O/zd5feI7VuUQBQl+x0Ph2p/klwlpRLsR4cBHP5i9C8VPriR823CpyL2JNblrPT qGLRXlNosLqK4tiGZhW8RJ0xMFBNO13HumIcSCdv576K7msMdgYkYQJkkQvxHPXs+iZB eD0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQ1ZkXyf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69696-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69696-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s13-20020a05620a29cd00b007875238b58csi558836qkp.432.2024.02.16.21.55.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 21:55:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69696-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQ1ZkXyf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69696-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69696-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD0301C211E1 for ; Sat, 17 Feb 2024 05:55:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7FFC1CD27; Sat, 17 Feb 2024 05:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uQ1ZkXyf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D82D61CD03; Sat, 17 Feb 2024 05:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708149312; cv=none; b=PjnZaCIMakIAmRIML+qQTyfz/eKscBoF4z+sq3TKqiZ7RDGjYRSP9hBY6G2KS/X5F/SIa4so3YixHrUEzUdjWtfkTv3x0bO7M2u1UZ5tzG6kCVB4rEoXQDuVGxf7X2ii/YQ+lSBfFDIvBMEd4RGcw8QfYf5vZvvSIMVXE+QgGVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708149312; c=relaxed/simple; bh=zRUd7yREBkG9fojxxpCwFR+ZH4UPtylxuQpNSInrd68=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HNa4zHUtq7dmRe/2OikHNdlzktRz1XnMPd2pdMJdhG1FO2+EUz4PLhD0nbNABOopGh/acX82VVu6H4XhiQ/T893EokADftqk7smeUngD+s809xA02qAN+npncmULMXBf8qXUz/2bT5AcXgsX7IYN4mKhFuDbCQ61HT8qWbiC8ao= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uQ1ZkXyf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8D62C433F1; Sat, 17 Feb 2024 05:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708149311; bh=zRUd7yREBkG9fojxxpCwFR+ZH4UPtylxuQpNSInrd68=; h=From:To:Cc:Subject:Date:From; b=uQ1ZkXyfKjkIl/6pdVqjIvudxuvRkWyWIwOXR/WWo0YsF6v6M7SJL+fae1/uDSQvs WZDiQ9uHCPFPVQxZyB7d/x5mwp2AVUDTeGlCP+3h6eSe1Y0LucWaoQU8sxuAx+OGm/ RqFMmNTyWTq4odftpgr/xigJNpCUYM7A9KU2q7l4BmKEL3xO1uJjUfpjS21xkFctgf PeUSlVnTzhYcLwV6hRQGwUYL3lXbFbnf7Jis5Ppuae7pYtZKz5cGsM1s/QmfG1S0OJ oR2C/CTzB9yTT2Dv4aj/4rX/pv6zkS47Rjo9K4iVtavrKTpLv55g4o2VaRBg+VXXXX Bcrq0zmq1DyPw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Andy Lutomirski , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Nathan Chancellor , Nicolas Schier , Paolo Bonzini , Sean Christopherson , Thomas Gleixner , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org Subject: [PATCH 1/2] kbuild: change tool coverage variables to take the path relative to $(obj) Date: Sat, 17 Feb 2024 14:55:03 +0900 Message-Id: <20240217055504.2059803-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791124401076797489 X-GMAIL-MSGID: 1791124401076797489 Commit 54b8ae66ae1a ("kbuild: change *FLAGS_.o to take the path relative to $(obj)") changed the syntax of per-file compiler flags. The situation is the same for the following variables: OBJECT_FILES_NON_STANDARD_.o GCOV_PROFILE_.o KASAN_SANITIZE_.o KMSAN_SANITIZE_.o KMSAN_ENABLE_CHECKS_.o UBSAN_SANITIZE_.o KCOV_INSTRUMENT_.o KCSAN_SANITIZE_.o KCSAN_INSTRUMENT_BARRIERS_.o The is the filename of the target with its directory and suffix stripped. This syntax comes into a trouble when two files with the same basename appear in one Makefile, for example: obj-y += dir1/foo.o obj-y += dir2/foo.o OBJECT_FILES_NON_STANDARD_foo.o := y OBJECT_FILES_NON_STANDARD_foo.o is applied to both dir1/foo.o and dir2/foo.o. This syntax is not flexbile enough to handle cases where one of them is a standard object, but the other is not. It is more sensible to use the relative path to the Makefile, like this: obj-y += dir1/foo.o OBJECT_FILES_NON_STANDARD_dir1/foo.o := y obj-y += dir2/foo.o OBJECT_FILES_NON_STANDARD_dir2/foo.o := y To maintain the current behavior, I made adjustments to two Makefiles: - arch/x86/entry/vdso/Makefile, which compiles vclock_gettime.o and vdso32/vclock_gettime.o - arch/x86/kvm/Makefile, which compiles vmx/vmenter.o and svm/vmenter.o Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier Acked-by: Sean Christopherson --- arch/x86/entry/vdso/Makefile | 2 ++ arch/x86/kvm/Makefile | 3 ++- scripts/Makefile.build | 2 +- scripts/Makefile.lib | 16 ++++++++-------- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index 7a97b17f28b7..148adfdb2325 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -9,7 +9,9 @@ include $(srctree)/lib/vdso/Makefile # Sanitizer runtimes are unavailable and cannot be linked here. KASAN_SANITIZE := n KMSAN_SANITIZE_vclock_gettime.o := n +KMSAN_SANITIZE_vdso32/vclock_gettime.o := n KMSAN_SANITIZE_vgetcpu.o := n +KMSAN_SANITIZE_vdso32/vgetcpu.o := n UBSAN_SANITIZE := n KCSAN_SANITIZE := n diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile index 475b5fa917a6..a88bb14266b6 100644 --- a/arch/x86/kvm/Makefile +++ b/arch/x86/kvm/Makefile @@ -4,7 +4,8 @@ ccflags-y += -I $(srctree)/arch/x86/kvm ccflags-$(CONFIG_KVM_WERROR) += -Werror ifeq ($(CONFIG_FRAME_POINTER),y) -OBJECT_FILES_NON_STANDARD_vmenter.o := y +OBJECT_FILES_NON_STANDARD_vmx/vmenter.o := y +OBJECT_FILES_NON_STANDARD_svm/vmenter.o := y endif include $(srctree)/virt/kvm/Makefile.kvm diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 4971f54c855e..256db2a0e984 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -214,7 +214,7 @@ endif # CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT # 'OBJECT_FILES_NON_STANDARD_foo.o := 'y': skip objtool checking for a file # 'OBJECT_FILES_NON_STANDARD_foo.o := 'n': override directory skip for a file -is-standard-object = $(if $(filter-out y%, $(OBJECT_FILES_NON_STANDARD_$(basetarget).o)$(OBJECT_FILES_NON_STANDARD)n),y) +is-standard-object = $(if $(filter-out y%, $(OBJECT_FILES_NON_STANDARD_$(target-stem).o)$(OBJECT_FILES_NON_STANDARD)n),y) $(obj)/%.o: objtool-enabled = $(if $(is-standard-object),$(if $(delay-objtool),$(is-single-obj-m),y)) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index b35d39022a30..328c0d77ed48 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -154,7 +154,7 @@ _cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(target-stem).lds) # ifeq ($(CONFIG_GCOV_KERNEL),y) _c_flags += $(if $(patsubst n%,, \ - $(GCOV_PROFILE_$(basetarget).o)$(GCOV_PROFILE)$(CONFIG_GCOV_PROFILE_ALL)), \ + $(GCOV_PROFILE_$(target-stem).o)$(GCOV_PROFILE)$(CONFIG_GCOV_PROFILE_ALL)), \ $(CFLAGS_GCOV)) endif @@ -165,29 +165,29 @@ endif ifeq ($(CONFIG_KASAN),y) ifneq ($(CONFIG_KASAN_HW_TAGS),y) _c_flags += $(if $(patsubst n%,, \ - $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)y), \ + $(KASAN_SANITIZE_$(target-stem).o)$(KASAN_SANITIZE)y), \ $(CFLAGS_KASAN), $(CFLAGS_KASAN_NOSANITIZE)) endif endif ifeq ($(CONFIG_KMSAN),y) _c_flags += $(if $(patsubst n%,, \ - $(KMSAN_SANITIZE_$(basetarget).o)$(KMSAN_SANITIZE)y), \ + $(KMSAN_SANITIZE_$(target-stem).o)$(KMSAN_SANITIZE)y), \ $(CFLAGS_KMSAN)) _c_flags += $(if $(patsubst n%,, \ - $(KMSAN_ENABLE_CHECKS_$(basetarget).o)$(KMSAN_ENABLE_CHECKS)y), \ + $(KMSAN_ENABLE_CHECKS_$(target-stem).o)$(KMSAN_ENABLE_CHECKS)y), \ , -mllvm -msan-disable-checks=1) endif ifeq ($(CONFIG_UBSAN),y) _c_flags += $(if $(patsubst n%,, \ - $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \ + $(UBSAN_SANITIZE_$(target-stem).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \ $(CFLAGS_UBSAN)) endif ifeq ($(CONFIG_KCOV),y) _c_flags += $(if $(patsubst n%,, \ - $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)$(CONFIG_KCOV_INSTRUMENT_ALL)), \ + $(KCOV_INSTRUMENT_$(target-stem).o)$(KCOV_INSTRUMENT)$(CONFIG_KCOV_INSTRUMENT_ALL)), \ $(CFLAGS_KCOV)) endif @@ -197,12 +197,12 @@ endif # ifeq ($(CONFIG_KCSAN),y) _c_flags += $(if $(patsubst n%,, \ - $(KCSAN_SANITIZE_$(basetarget).o)$(KCSAN_SANITIZE)y), \ + $(KCSAN_SANITIZE_$(target-stem).o)$(KCSAN_SANITIZE)y), \ $(CFLAGS_KCSAN)) # Some uninstrumented files provide implied barriers required to avoid false # positives: set KCSAN_INSTRUMENT_BARRIERS for barrier instrumentation only. _c_flags += $(if $(patsubst n%,, \ - $(KCSAN_INSTRUMENT_BARRIERS_$(basetarget).o)$(KCSAN_INSTRUMENT_BARRIERS)n), \ + $(KCSAN_INSTRUMENT_BARRIERS_$(target-stem).o)$(KCSAN_INSTRUMENT_BARRIERS)n), \ -D__KCSAN_INSTRUMENT_BARRIERS__) endif From patchwork Sat Feb 17 05:55:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 202574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp165082dyc; Fri, 16 Feb 2024 21:55:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhgH9k7gfJ0rTMo+6gM/hOJ4fJ0+tqRYbkuXXmjcsSyvC/bSg91/Yn7mtmeR5t2lYq9s6jTOPBRzfugCOjvCo9kiOf0A== X-Google-Smtp-Source: AGHT+IF2OLSeJ6NTkAs9ox0sZc/m5aksk8rJeucVz6eUjn6EmGwNhDA7eXhuRUe6bcWvyBv5nYPX X-Received: by 2002:a17:906:368a:b0:a3d:bb68:be30 with SMTP id a10-20020a170906368a00b00a3dbb68be30mr3283464ejc.6.1708149349458; Fri, 16 Feb 2024 21:55:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708149349; cv=pass; d=google.com; s=arc-20160816; b=RDmfJsy8yPRNroeujheStvP4JIey9qhVRtfywsWKnImKq0IDV139Dp0AJFRhKCTjjc XAqZ6+N52Dk0nxGAMc4GWCZtt5z7qtjmsu8CoPxmASILVx+tjzA3J/tXmeeaUUtCvxDe B6OyoLV6RBhtNJXu4Cgss5TJOXeIXqgLoozgnkzFJn4TV4OZoX/cjwHSPGNqvbpJRi2a GQoeWou3oOI4M2Lo/MEPiwACCoh440YatjKQVfTpgzXzmVGf8/1oFcUqklH3KyVUYkFc Sv1lB+KmkOLbqSBTTvGEdwjvHI+fX/DjjTGUzk/OupryNKC+sMAK47yuHC5MBPLd3bJp Jivw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Orc6EXcB/Pb+sv5sGv+BHUs758u9209SSLVv7GgCFo4=; fh=iJuIpJBHEcgPRPi7glJXtqQesQubWKTFhpQuYX4gEPg=; b=ni/xMO5kmnkFZGqsx5h5xNg8vHIVLaK4t2hCA4J9jodV1kKw9k+ZnDxMcV8Y8dpu1z yKHHwgluqmx2HaUQq7MK+y5WZzhUSbpJY2Q8TftOHll09sdXx1QpGgJIw1CBrszq1H+F FVmyfqsTZxN8Uarzq/VmdpLrfxqK5ARIUUn+QCQGq4bRBN3RkFfFDwbOaX0SXBxnDaHV HSy/O41VOQ4x0WszpZI2FbTVQrgq2BlpT+ZDTpXDr94yiXTtFc3k4z28E7YkChWSdXwy q2N48NZ7EqimvH2tL25oKl9OFsz10uSNz+ZdBUCZY8ocE/rr5FxgY9/YHgAR3tuRykNp Hvug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=trsTAFym; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69697-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69697-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p18-20020a1709060e9200b00a3d4883480csi546410ejf.84.2024.02.16.21.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 21:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69697-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=trsTAFym; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69697-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69697-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D8F861F22210 for ; Sat, 17 Feb 2024 05:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E2551CF8D; Sat, 17 Feb 2024 05:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="trsTAFym" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C56FD1CD0A; Sat, 17 Feb 2024 05:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708149313; cv=none; b=nfyvF2Yp0JnpPtRa6gqBZehFlb0D1FKXmKCA0hlXO12O63uB2P4k04p2OlTjVjjEN7EjmvBE9I0YkjorOPafadOMIAthx3NdMDZc3kE+90Iqi1Kpp3pnhy1bZVx5QBf61DzOLsmhmXZ9uzPoct2AU3isp0TP67YzEqexipmlwx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708149313; c=relaxed/simple; bh=Ear6O+72d1ABDax2WCP/0I/ogBxwZJuvcTt9vAe3Ybc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WCBQNa3IJwV7FhsDEog9QLm4n6W4fwujxK5Xv0sPC4yVDCyXNzUZThaNoNYk2Gh9Vsr4uBEvMmJCIdcNZOXlmtpVKCM+MrHGxpbZdN9Br4+fqG6bNH8bw0IjQ9PS/Ylqz8i6sM7/6hO62uTiFgKV2vEYaafOn9C1nTvcQqGB9jQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=trsTAFym; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024FEC433C7; Sat, 17 Feb 2024 05:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708149313; bh=Ear6O+72d1ABDax2WCP/0I/ogBxwZJuvcTt9vAe3Ybc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=trsTAFymcnJ+cLIqtPon8OGRgd5rGz1eElds51+gjS3vOc3KHa2i3Yl4gaQgF7f4Z 6QEGkpHgErBUIBS63eMzVJWS5bYq2sOewfdcV3RkE7vI/IdjxPmoh9uyx6Zdbf4owx AsUq8tmZ4eSSaqetbvAdKJaH3bMoXfocDszFR3TAe6TT6AikDTduADqV6zEOIvrvLf 5DnjYUNUjkx2PKHU5EY5uuE3utm5yIAJoSmG3yBrkXdU+fqsAIuTGC9iAhu6aHmUIL 6dslWxdFvTf1VgTWeDUmfKOPrWZ8fzNXSklcYlSxwt8ThSrdiI6xYhpsmCucEzdTpX PSvGSmNvmBBwQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kbuild: change DTC_FLAGS_.o to take the path relative to $(obj) Date: Sat, 17 Feb 2024 14:55:04 +0900 Message-Id: <20240217055504.2059803-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240217055504.2059803-1-masahiroy@kernel.org> References: <20240217055504.2059803-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791124412353727423 X-GMAIL-MSGID: 1791124412353727423 For the same rationale as commit 54b8ae66ae1a ("kbuild: change *FLAGS_.o to take the path relative to $(obj)"). Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 328c0d77ed48..56f7fe2b476d 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -368,7 +368,7 @@ DTC_FLAGS += -Wnode_name_chars_strict \ -Wunique_unit_address endif -DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) +DTC_FLAGS += $(DTC_FLAGS_$(target-stem)) # Set -@ if the target is a base DTB that overlay is applied onto DTC_FLAGS += $(if $(filter $(patsubst $(obj)/%,%,$@), $(base-dtb-y)), -@)