|
@@ -1,9 +1,10 @@
|
|
|
|
+BOARD ?= icebreaker
|
|
CROSS = riscv-none-embed-
|
|
CROSS = riscv-none-embed-
|
|
CC = $(CROSS)gcc
|
|
CC = $(CROSS)gcc
|
|
OBJCOPY = $(CROSS)objcopy
|
|
OBJCOPY = $(CROSS)objcopy
|
|
ICEPROG = iceprog
|
|
ICEPROG = iceprog
|
|
|
|
|
|
-CFLAGS=-Wall -Os -march=rv32i -mabi=ilp32 -ffreestanding -flto -nostartfiles -fomit-frame-pointer -Wl,--gc-section
|
|
|
|
|
|
+CFLAGS=-Wall -Os -march=rv32i -mabi=ilp32 -ffreestanding -flto -nostartfiles -fomit-frame-pointer -Wl,--gc-section -DBOARD_$(BOARD)
|
|
|
|
|
|
HEADERS=\
|
|
HEADERS=\
|
|
config.h \
|
|
config.h \
|