]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kbuild: vdso_install: split out the readelf invocation
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 31 Mar 2026 17:50:19 +0000 (19:50 +0200)
committerNicolas Schier <nsc@kernel.org>
Thu, 2 Apr 2026 15:50:25 +0000 (17:50 +0200)
Split up the logic as some upcoming changes to the readelf invocation
would create a very long line otherwise.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260331-kbuild-vdso-install-v2-1-606d0dc6beca@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>
scripts/Makefile.vdsoinst

index ac85f9a4a56964d5ee2b45b8cf9f44a20c806141..214c561651cf5458c0279f174508187bdde03ae3 100644 (file)
@@ -21,7 +21,8 @@ $$(dest): $(1) FORCE
 
 # Some architectures create .build-id symlinks
 ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),)
-link := $(install-dir)/.build-id/$$(shell $(READELF) -n $(1) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p').debug
+build-id-file := $$(shell $(READELF) -n $(1) | sed -n 's@^.*Build ID: \(..\)\(.*\)@\1/\2@p')
+link := $(install-dir)/.build-id/$$(build-id-file).debug
 
 __default: $$(link)
 $$(link): $$(dest) FORCE