From 5c749c9a6f436b14b538b9355c20ef258cc43a37 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 8 Dec 2017 03:03:50 +0100 Subject: standalone-tools: specify srctree for out of tree builds When the result directory is not the same as the source directory, shelling out to the script occurs at the wrong path. This fixes it by anchoring it to $(srctree). Suggested-by: Nathan Chancellor --- standalone-kernel/patch-kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone-kernel/patch-kernel.sh b/standalone-kernel/patch-kernel.sh index dfe45e7..e42ed6c 100755 --- a/standalone-kernel/patch-kernel.sh +++ b/standalone-kernel/patch-kernel.sh @@ -15,4 +15,4 @@ fi cp fetch.sh "$K/scripts/fetch-latest-wireguard.sh" chmod +x "$K/scripts/fetch-latest-wireguard.sh" -[[ $(< "$K/scripts/Kbuild.include") == *fetch-latest-wireguard.sh* ]] || echo '$(shell scripts/fetch-latest-wireguard.sh)' >> "$K/scripts/Kbuild.include" +[[ $(< "$K/scripts/Kbuild.include") == *fetch-latest-wireguard.sh* ]] || echo '$(shell cd "$(srctree)" && ./scripts/fetch-latest-wireguard.sh)' >> "$K/scripts/Kbuild.include" -- cgit v1.2.3-59-g8ed1b