summaryrefslogtreecommitdiff
path: root/resources/scripts/download
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-12-08 00:12:47 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-12-09 16:50:29 +0300
commit584210bd1f2ff8e2f7a85b8fbc85013f16b7d7ef (patch)
tree093f43afa5d80096e7dc03681a36e244838f6466 /resources/scripts/download
parent2b761f2f8a4193457a73c4dff335029f70b4443e (diff)
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 <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources/scripts/download')
-rwxr-xr-xresources/scripts/download/u-boot2
1 files changed, 1 insertions, 1 deletions
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