aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.vdsoinst
diff options
context:
space:
mode:
authorGravatar Masahiro Yamada <masahiroy@kernel.org> 2024-04-30 00:07:54 +0900
committerGravatar Masahiro Yamada <masahiroy@kernel.org> 2024-05-10 04:34:52 +0900
commit1c369b6c9492756c58ad4abb92a9433a59f31f7d (patch)
tree035d44e7c2c0ef3f43a977ffc4dd551c1bf44b94 /scripts/Makefile.vdsoinst
parentkbuild: add 'private' to target-specific variables (diff)
downloadlinux-1c369b6c9492756c58ad4abb92a9433a59f31f7d.tar.gz
linux-1c369b6c9492756c58ad4abb92a9433a59f31f7d.tar.bz2
linux-1c369b6c9492756c58ad4abb92a9433a59f31f7d.zip
kbuild: simplify generic vdso installation code
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 <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.vdsoinst')
-rw-r--r--scripts/Makefile.vdsoinst7
1 files 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