]> www.infradead.org Git - users/hch/misc.git/commitdiff
kbuild: scripts/gdb: bring the "abspath" back
authorJoel Granados <j.granados@samsung.com>
Wed, 26 Jun 2024 12:06:16 +0000 (14:06 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 Jun 2024 19:20:32 +0000 (04:20 +0900)
Use the "abspath" call when symlinking the gdb python scripts in
scripts/gdb/linux. This call is needed to avoid broken links when
running the scripts_gdb target on a build directory located directly
under the source tree (e.g., O=builddir).

Fixes: 659bbf7e1b08 ("kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src)")
Signed-off-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/gdb/linux/Makefile

index fd1402c0a1a18fb7176260d08989413411252c04..fcd32fcf3ae0ba9d68ed4de8e638efae90767d91 100644 (file)
@@ -5,7 +5,7 @@ ifdef building_out_of_srctree
 symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py))
 
 quiet_cmd_symlink = SYMLINK $@
-      cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(src)/%,$@) $@
+      cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(src))/%,$@) $@
 
 always-y += $(symlinks)
 $(addprefix $(obj)/, $(symlinks)): FORCE