4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-15 12:09:12 +08:00
Chasel 94952b18fc
[bsp][mm32f526x] 1.add mm32f526x bsp; (#9940)
[bsp][mm32f526x] 1.add a bsp for mm32f526x;
2025-02-03 23:29:27 +08:00

21 lines
488 B
Makefile

ifeq ($(shell uname), Linux)
# Linux-specific settings
toolchain=/home/mhy/gcc-arm-none-eabi-10.3-2021.10/bin
else
# Windows-specific settings
# toolchain=F:\work\TOOLS\sdk-toolchain-RISC-V-GCC-WCH\bin
ifndef toolchain
$(warning Please rewrite the toolchain in windows local directory")
exit 0
endif
endif
all:
scons -j 8 --exec-path=$(toolchain)
PHONY: clean
clean:
scons -c --exec-path=$(toolchain)
rm -f *.bin *.hex *.map > /dev/null 2>&1