Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a11aaf6

Browse files
Joelgranadosmasahir0y
authored andcommitted
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>
1 parent 7ed9d13 commit a11aaf6

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)