From 584210bd1f2ff8e2f7a85b8fbc85013f16b7d7ef Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Thu, 8 Dec 2022 00:12:47 +0300 Subject: download/u-boot: Change to download target before running extra.sh The U-Boot download script does its work from the repository root instead going into the newly created dirs, unlike the coreboot counterpart. It should run the board-specific extra.sh files with the downloaded paths as their working directory. Do so by a subshell. Signed-off-by: Alper Nebi Yasak --- resources/scripts/download/u-boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/scripts/download') diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot index d388dd39..1af513a4 100755 --- a/resources/scripts/download/u-boot +++ b/resources/scripts/download/u-boot @@ -181,7 +181,7 @@ downloadfor() { # extra.sh on a per-board basis # In fact, extra.sh can be used for anything you want. if [ -f "resources/u-boot/${board}/extra.sh" ]; then - "resources/u-boot/${board}/extra.sh" || touch build_error + ( cd "${ubtree}" && "../../resources/u-boot/${board}/extra.sh"; ) || touch build_error if [ -f build_error ]; then return 1 fi -- cgit v1.2.1