Add initial support for external DRAM init on the Raptor Versa ECP5-85 board
[gram.git] / libgram / Makefile
index 6093828e83e2efc45dbe07480b9913082fb89418..4cb7a197360bc1b84a3597c63f0fa0d41d26cdf7 100644 (file)
@@ -1,6 +1,6 @@
 OBJS := src/init.o src/dfii.o src/calibration.o
 
-TRIPLE := riscv64-unknown-elf-
+TRIPLE :=
 
 CC := $(TRIPLE)gcc
 AS := $(TRIPLE)as
@@ -8,7 +8,7 @@ OBJCOPY := $(TRIPLE)objcopy
 AR := $(TRIPLE)ar
 LD := $(TRIPLE)ld
 
-CFLAGS += -fvisibility=hidden -nostdlib -Os -Iinclude -std=c99 -Wall -Werror -pedantic
+CFLAGS += -fvisibility=hidden -nostdlib -O0 -g -Iinclude -std=c99 -Wall -Wno-error -pedantic -DGRAM_RW_FUNC
 LDFLAGS += -nostdlib
 
 ifeq ($(TRIPLE),riscv64-unknown-elf-)