Files
mkrtos-real/mkrtos_script/build_qemu_aarch64.sh

22 lines
842 B
Bash
Raw Normal View History

2024-03-31 16:06:11 +00:00
#!/bin/bash
2024-10-17 23:31:20 +08:00
export TOOLCHAIN=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/
export TOOLCHAIN_LIB=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/lib/gcc/aarch64-none-elf/11.3.1
2024-09-22 16:06:39 +08:00
# export TOOLCHAIN=/home/toolchains/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/
# export TOOLCHAIN_LIB=/home/toolchains/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/lib/gcc/aarch64-none-elf/10.3.1
2024-10-17 23:31:20 +08:00
# export TOOLCHAIN=/home/zhangzheng/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/
# export TOOLCHAIN_LIB=/home/zhangzheng/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/lib/gcc/aarch64-none-elf/10.3.1
2024-09-22 16:06:39 +08:00
2024-03-31 16:06:11 +00:00
export BOARD=aarch64_qemu
2024-04-04 16:51:29 +00:00
export CROSS_COMPILE_NAME=aarch64-none-elf-
if [ -z "$1" ]; then
export MKRTOS_TEST_MODE="normal"
else
export MKRTOS_TEST_MODE=$1
fi
2024-03-31 16:06:11 +00:00
set -e -x
2024-03-31 16:06:11 +00:00
cmake -G Ninja -B build/$KNL .
cd build/$KNL && ninja