From 74fe5e24beb14b00ce3d69e5a3010c520d4bf8e5 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 4 Dec 2021 13:41:35 +0900 Subject: Initial: vram write test --- common.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 common.mk (limited to 'common.mk') diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..19a7dcd --- /dev/null +++ b/common.mk @@ -0,0 +1,14 @@ +TOOLPRE:=arm-none-eabi- +CC:=$(TOOLPRE)gcc -ffreestanding -march=armv5te -mabi=aapcs-linux -mthumb +LD:=$(TOOLPRE)ld +#CC:=clang -target arm-none-eabi -ffreestanding -march=armv5te -mabi=aapcs-linux -mthumb +#LD:=ld.lld -m armelf +CFLAGS:=-O2 -Wall -Wextra +.PHONY: all clean +LDFLAGS:=-Ttext 0xa0200000 -e start + +$(TARGET): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $^ + +clean: + rm -f *.o $(TARGET) -- cgit v1.2.3