Skip to content

Commit f902cda

Browse files
committed
build.sh: fix build fail because of incorrect access to edk2/workspace
Signed-off-by: Piotr Król <[email protected]>
1 parent 4dbc691 commit f902cda

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ function build_odroid_h4 {
227227
DEFCONFIG="configs/config.hardkernel_odroid_h4"
228228
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
229229

230+
# Without following sequence workspce would be created by docker with root
231+
# privilidges and build will fail.
232+
# Target directory
233+
TARGET_DIR="payloads/external/edk2/workspace/Dasharo"
234+
mkdir -p "$TARGET_DIR"
235+
chown -R $(id -u):$(id -g) "$TARGET_DIR"
236+
chmod -R 755 "$TARGET_DIR"
237+
230238
# checkout several submodules needed by these boards (some others are checked
231239
# out by coreboot's Makefile)
232240
git submodule update --init --force --checkout \
@@ -265,6 +273,14 @@ function build_odroid_h4_btg {
265273
DEFCONFIG="configs/config.hardkernel_odroid_h4_btg"
266274
FW_VERSION=$(cat ${DEFCONFIG} | grep CONFIG_LOCALVERSION | cut -d '=' -f 2 | tr -d '"')
267275

276+
# Without following sequence workspce would be created by docker with root
277+
# privilidges and build will fail.
278+
# Target directory
279+
TARGET_DIR="payloads/external/edk2/workspace/Dasharo"
280+
mkdir -p "$TARGET_DIR"
281+
chown -R $(id -u):$(id -g) "$TARGET_DIR"
282+
chmod -R 755 "$TARGET_DIR"
283+
268284
# checkout several submodules needed by these boards (some others are checked
269285
# out by coreboot's Makefile)
270286
git submodule update --init --force --checkout \

0 commit comments

Comments
 (0)