Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3 -4
+3 -4
scripts/Makefile.vdsoinst
··· 13 13 14 14 define gen_install_rules 15 15 16 - src := $$(firstword $$(subst :,$(space),$(1))) 17 - dest := $(install-dir)/$$(or $$(word 2,$$(subst :,$(space),$(1))),$$(patsubst %.dbg,%,$$(notdir $(1)))) 16 + dest := $(install-dir)/$$(patsubst %.dbg,%,$$(notdir $(1))) 18 17 19 18 __default: $$(dest) 20 - $$(dest): $$(src) FORCE 19 + $$(dest): $(1) FORCE 21 20 $$(call cmd,install) 22 21 23 22 # Some architectures create .build-id symlinks 24 23 ifneq ($(filter arm sparc x86, $(SRCARCH)),) 25 - link := $(install-dir)/.build-id/$$(shell $(READELF) -n $$(src) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug 24 + link := $(install-dir)/.build-id/$$(shell $(READELF) -n $(1) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug 26 25 27 26 __default: $$(link) 28 27 $$(link): $$(dest) FORCE