summaryrefslogtreecommitdiff
path: root/bsp/mm32f526x/Makefile
blob: 17a4c60011156bc3532e585e3ce1b89e27cf7684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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