Skip to contentSkip to conversation

kbuild: simplify generic vdso installation code

PATCH Applied Masahiro Yamada 2 participants 2 messages Apr 29, 2024 – May 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 scripts/Makefile.vdsoinst | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
scripts/Makefile.vdsoinst +3 -4
index c477d17b0aa5..bf72880c50d0 100644
@@ -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
Signature · 1 line
2.40.1
#1 lore raw
This patch was applied to riscv/linux.git (fixes) by Masahiro Yamada <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (fixes)
by Masahiro Yamada <[email protected]>:

Quoted 9 lines · On Tue, 30 Apr 2024 00:07:54 +0900 you wrote:

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.

[...]

Here is the summary with links:
- kbuild: simplify generic vdso installation code

    https://git.kernel.org/riscv/c/1c369b6c9492

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html