Firmwares/hello-world/Makefile
2018-09-26 08:07:48 +02:00

17 lines
415 B
Makefile

TARGET = hello
C_SRCS = $(wildcard *.c)
#HEADERS = $(wildcard *.h)
#CFLAGS += -O2
BOARD=freedom-e300-hifive1
LINK_TARGET=flash
RISCV_ARCH=rv32imac
RISCV_ABI=ilp32
LDFLAGS = -Wl,--wrap=printf -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=medany
TOOL_DIR?=/opt/riscv/FreedomStudio/20180122/SiFive/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin
BSP_BASE = ./bsp
include $(BSP_BASE)/env/common.mk