Skip to content

Commit e61bb3a

Browse files
author
Herton R. Krzesinski
committed
kbuild: scripts/gdb: bring the "abspath" back
JIRA: https://issues.redhat.com/browse/RHEL-107194 commit a11aaf6 Author: Joel Granados <j.granados@samsung.com> Date: Wed Jun 26 14:06:16 2024 +0200 kbuild: scripts/gdb: bring the "abspath" back 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: 659bbf7 ("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> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
1 parent 80dc8c4 commit e61bb3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/linux/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ifdef building_out_of_srctree
55
symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py))
66

77
quiet_cmd_symlink = SYMLINK $@
8-
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(src)/%,$@) $@
8+
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(src))/%,$@) $@
99

1010
always-y += $(symlinks)
1111
$(addprefix $(obj)/, $(symlinks)): FORCE

0 commit comments

Comments
 (0)