Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1447982lqa; Mon, 29 Apr 2024 08:43:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9Z9Dc3iuOcQYuFxsC/1ytKCYfPtKusJkoN/wfWoLOTaat6dqhLggVFtyejHrmwTlZ0/p3aCgPxVh8mqlPM56Fn0N66g4LFsHdKvDl6w== X-Google-Smtp-Source: AGHT+IEmWrjDrt4//eRpMeDbz8KG56JwOzqu2XlTab4HQj6dPZ/bzkxVI5w58mF3qx+XXG69xG9f X-Received: by 2002:a05:6a21:998c:b0:1ac:efbd:dc46 with SMTP id ve12-20020a056a21998c00b001acefbddc46mr12945192pzb.2.1714405383586; Mon, 29 Apr 2024 08:43:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714405383; cv=pass; d=google.com; s=arc-20160816; b=eC8LY59gxrHsDPQSrXllPHNPJubtuS4VoSR8Tt5r6bl3Zs/argRxw/FDgPexpykrdB jIePZwoPPUpTkFlUtyv+JaF6GVublHsvTEBs2hVjsX1Q9quH6hXrYfbW4VB0ADcnipZd w/dvgsaEmEPTJ/xnJU071MqG6pnR+lJCHLMuvTlwdOP3T522GjNH8SlKRsVzqX8lqKmv X9clB+VrEnE6q6PV/5vrRqrDN/P28xWPttKm5xUOgz3zbZOYXuRYN6R1WNLbx3YxREQn YcQxY1mHDfW1uYJLfnOZEraICJuovJZW7JZFwUm0VkDzoJ0wLE01wJ1H70PDyqEkmZ8x tQpg== 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=uWia0BT/5pdX3RFYvjk6zvUUGtZ/GWizxmyg5MN6Prw=; fh=otrL/WyFidBU7s2ThmbEfxUewIJ05prI9dXNHSyuzEk=; b=t1xDqe1dMv0De8pl8KpDpLglktzlAvRdp3DgNhsgMg4wEXhJRJgh5z39wmxkGqMHxA hPYGMnubjU8SE6nHUxlZibAgkQbrmi9itp7FEQ3IhKRNcQYkStGPy5Cqx2I3luMDpnx+ tryaYC3GNkDSEGsmwoNGul5oMv81FFHJMls6ZGPsN+z1RUFGEpsAQNPrn66JhtG4mMPz TZbcsyx1OyoxdQQ7/py8KoHOABPlDgvNUQ2tswfilrBn3RhaiGnuAdHFKEvRbgxmAGnn ZkG4rQodxucgLtX50kBT7K0gGjqK+czBLQuoE22+nTwrxUkKbc3z4aBd/8TZB8VHUG04 xpjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Atfc3Nfz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162552-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e18-20020a170902ef5200b001eb7766e66asi3564515plx.530.2024.04.29.08.43.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162552-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Atfc3Nfz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162552-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162552-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AAAD7B29769 for ; Mon, 29 Apr 2024 15:18:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2CED824AE; Mon, 29 Apr 2024 15:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Atfc3Nfz" 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 D516A846B; Mon, 29 Apr 2024 15:08:12 +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=1714403292; cv=none; b=E2sGar/NSnEwTu8MWKjRC86oT+imuSPBWvJJ9WJ3kFDn6EypvQLZHcsQ9yQytPXzGZw2qHYkPd6EGDHOasRNruzaWbTnBRFhiPd0MUsE/Nsl/8wo1rz/jiZ7hNYbMvaqVmcJOvUhCClX5rClzVKZJC/8uq9q5UTihZ9nGx0S9oQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714403292; c=relaxed/simple; bh=U0cAz+c9sTGbDIN3OBVNFjWl2jR+Tx695VgOjeNXMmQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=S362oP1ZB8GVMVRocTJCGe/FyOwVw8nj0QKKxJ5M+1smAER7cy8q2m3syxen08+26MvkAMxHqUrKu5B45jlop2lysF/1Nc3/DZV4LJE3MmPEzHRgJOdisfJaC4Vzw01PFS1r4Bb7CqoL/krZjrI8A8Mg+onib9enPxYE4Sv2cz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Atfc3Nfz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26533C113CD; Mon, 29 Apr 2024 15:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714403292; bh=U0cAz+c9sTGbDIN3OBVNFjWl2jR+Tx695VgOjeNXMmQ=; h=From:To:Cc:Subject:Date:From; b=Atfc3NfzTJ0OgbfSIei9mdm6zGOQ0nWCB3W3v7O49/nIzWMtgDe6S+rNhQcsULzI+ hsNWHp0/7gKUOwqBW55Qg8tTl8Ueu7xCCD2o8FX/AU5N29e0J1uEp6DDjhVRYbJs3Z EdQH94mjgh4c45zOtLcN9UH6zzvGC3s9DTGeusD9P16wyERTHdZ/nfxmhEikYg/e55 bPier0zvkjSbn5Y+Ysef1f/1zjuA6D3gtncGaTpz1waZ4VXEm5aqg89qL8UigToxGC IrR/DqsXI0f+b7xc6pCIdEvGTWzDfTA/xccF3Hz+GKWs1jTlQHxjqm9g74Oyz+FSLT NaS2CeOdGvP2g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Albert Ou , Nathan Chancellor , Nicolas Schier , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org Subject: [PATCH] kbuild: simplify generic vdso installation code Date: Tue, 30 Apr 2024 00:07:54 +0900 Message-Id: <20240429150754.3178262-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 Content-Transfer-Encoding: 8bit With commit 4b0bf9a01270 ("riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/") applied, all debug VDSO files are installed in $(MODLIB)/vdso/. Simplify the installation rule. Signed-off-by: Masahiro Yamada --- scripts/Makefile.vdsoinst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/Makefile.vdsoinst b/scripts/Makefile.vdsoinst index c477d17b0aa5..bf72880c50d0 100644 --- a/scripts/Makefile.vdsoinst +++ b/scripts/Makefile.vdsoinst @@ -13,16 +13,15 @@ install-dir := $(MODLIB)/vdso define gen_install_rules -src := $$(firstword $$(subst :,$(space),$(1))) -dest := $(install-dir)/$$(or $$(word 2,$$(subst :,$(space),$(1))),$$(patsubst %.dbg,%,$$(notdir $(1)))) +dest := $(install-dir)/$$(patsubst %.dbg,%,$$(notdir $(1))) __default: $$(dest) -$$(dest): $$(src) FORCE +$$(dest): $(1) FORCE $$(call cmd,install) # Some architectures create .build-id symlinks ifneq ($(filter arm sparc x86, $(SRCARCH)),) -link := $(install-dir)/.build-id/$$(shell $(READELF) -n $$(src) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug +link := $(install-dir)/.build-id/$$(shell $(READELF) -n $(1) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug __default: $$(link) $$(link): $$(dest) FORCE -- 2.40.1