initial commit
This commit is contained in:
18
fw/hello-world/Makefile
Normal file
18
fw/hello-world/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
TARGET = hello
|
||||
C_SRCS = $(wildcard *.c)
|
||||
HEADERS = $(wildcard *.h)
|
||||
CFLAGS += -O0 -g
|
||||
|
||||
BOARD=tgfs-vp
|
||||
LINK_TARGET=flash
|
||||
RISCV_ARCH:=rv32i
|
||||
RISCV_ABI:=ilp32
|
||||
LDFLAGS := -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI)
|
||||
|
||||
compiler := $(shell which riscv32-unknown-elf-gcc)
|
||||
TOOL_DIR=$(dir $(compiler))
|
||||
|
||||
TRIPLET=riscv32-unknown-elf
|
||||
BSP_BASE = ../bsp
|
||||
include $(BSP_BASE)/env/common-gcc.mk
|
Reference in New Issue
Block a user