Skip to content

Commit 726d112

Browse files
dlechtrini
authored andcommitted
scripts/Makefile.autoconf: use abs_srctree for out-of-tree symlink
Replace usage of $(srctree) with $(abs_srctree) when creating a symlink to include/asm/arch in out of tree builds. When building_out_of_srctree is true, $(srctree) is just "..", so the created symlink was broken, for example: build-mt8365_evk/include/asm/arch -> ../arch/arm/include/asm/arch-mediatek Which would resolve to a non-existent path: build-mt8365_evk/include/asm/arch/arm/include/asm/arch-mediatek To fix, we need to use the absolute path to the source tree since we don't know where the build tree is located relative to the source tree. Fixes: bd3f9ee ("kbuild: Bump the build system to 6.1") Signed-off-by: David Lechner <dlechner@baylibre.com> Tested-by: Sean Anderson <sean.anderson@linux.dev>
1 parent 75a5404 commit 726d112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.autoconf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ifdef building_out_of_srctree
138138
else \
139139
dest=arch/$(ARCH)/include/asm/arch-$(if $(SOC),$(SOC),$(CPU)); \
140140
fi; \
141-
ln -fsn $(srctree)/$$dest include/asm/arch
141+
ln -fsn $(abs_srctree)/$$dest include/asm/arch
142142
else
143143
$(Q)if [ -d arch/$(ARCH)/mach-$(SOC)/include/mach ]; then \
144144
dest=../../mach-$(SOC)/include/mach; \

0 commit comments

Comments
 (0)