Skip to content

Commit a3bd834

Browse files
committed
fix build script to set zephyr envvars
1 parent 0a20f67 commit a3bd834

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/scripts/build-zephyr.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ cd $LOCAL_CHIPYARD_DIR/software/zephyrproject/zephyr/
1313
west init -l .
1414
west config manifest.file west-riscv.yml
1515
west update
16+
17+
# set environment variables for Zephyr
18+
export ZEPHYR_BASE=$LOCAL_CHIPYARD_DIR/software/zephyrproject/zephyr
19+
export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
20+
export CROSS_COMPILE=$RISCV/bin/riscv64-unknown-elf-
21+
22+
23+
# Build hello world
1624
west build -p -b chipyard_riscv64 samples/chipyard/hello_world/

0 commit comments

Comments
 (0)