diff --git a/Ubiquitous/XiZi_IIoT/generate.sh b/Ubiquitous/XiZi_IIoT/generate.sh new file mode 100755 index 000000000..717a90c01 --- /dev/null +++ b/Ubiquitous/XiZi_IIoT/generate.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +rm -rf .config +if [ "$1" == "m0" ]; then + make BOARD=cortex-m0-emulator distclean + make BOARD=cortex-m0-emulator menuconfig + make BOARD=cortex-m0-emulator + qemu-system-arm -machine microbit -nographic -kernel build/XiZi-cortex-m0-emulator.elf +elif [ "$1" == "m3" ]; then + make BOARD=cortex-m3-emulator distclean + make BOARD=cortex-m3-emulator menuconfig + make BOARD=cortex-m3-emulator + qemu-system-arm -machine lm3s6965evb -nographic -kernel build/XiZi-cortex-m3-emulator.elf +elif [ "$1" == "arm" ]; then + make BOARD=hc32f4a0 distclean + make BOARD=hc32f4a0 menuconfig + make BOARD=hc32f4a0 + +else + echo "Invalid input. Please provide as an argument." +fi