[PATCH 3/4] kbuild: vdso_install: gracefully handle images without build ID

Thomas Weißschuh posted 4 patches 2 weeks ago
There is a newer version of this series
[PATCH 3/4] kbuild: vdso_install: gracefully handle images without build ID
Posted by Thomas Weißschuh 2 weeks ago
If the vDSO does not contains a build ID, skip the symlink step.
This will allow the removal of the explicit list of architectures.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 scripts/Makefile.vdsoinst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/Makefile.vdsoinst b/scripts/Makefile.vdsoinst
index aed153b3120b..3de70218b8d4 100644
--- a/scripts/Makefile.vdsoinst
+++ b/scripts/Makefile.vdsoinst
@@ -22,12 +22,15 @@ $$(dest): $(1) FORCE
 # Some architectures create .build-id symlinks
 ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),)
 build-id-file := $$(shell $(READELF) -n $(1) 2>/dev/null | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p')
+
+ifneq ($$(build-id-file),)
 link := $(install-dir)/.build-id/$$(build-id-file).debug
 
 __default: $$(link)
 $$(link): $$(dest) FORCE
 	$$(call cmd,symlink)
 endif
+endif
 
 endef
 

-- 
2.53.0

Re: [PATCH 3/4] kbuild: vdso_install: gracefully handle images without build ID
Posted by Nicolas Schier 3 days, 13 hours ago
On Fri, 20 Mar 2026 17:36:55 +0100, Thomas Weißschuh <linux@weissschuh.net> wrote:
> If the vDSO does not contains a build ID, skip the symlink step.

s/contains/contain/

Reviewed-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas