]> Gentwo Git Trees - linux/.git/commit
kbuild: install-extmod-build: Fix when given dir outside the build dir
authorJames Le Cuirot <chewi@gentoo.org>
Thu, 16 Oct 2025 09:14:17 +0000 (10:14 +0100)
committerNathan Chancellor <nathan@kernel.org>
Sat, 25 Oct 2025 20:59:20 +0000 (21:59 +0100)
commit5ff90d427ef841fa48608d0c19a81c48d6126d46
treecc14c96ef3446a2db7a6334320fe6564d439beda
parentdfab67879bed6800cc512e320167b969ebc6d5a9
kbuild: install-extmod-build: Fix when given dir outside the build dir

Commit b5e395653546 ("kbuild: install-extmod-build: Fix build when
specifying KBUILD_OUTPUT") tried to address the "build" variable
expecting a relative path by using `realpath --relative-base=.`, but
this only works when the given directory is below the current directory.
`realpath --relative-to=.` will return a relative path in all cases.

Fixes: b5e395653546 ("kbuild: install-extmod-build: Fix build when specifying KBUILD_OUTPUT")
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20251016091417.9985-1-chewi@gentoo.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/package/install-extmod-build