aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-09-09 15:56:16 +0200
committerBad Diode <bd@badd10de.dev>2021-09-09 15:56:16 +0200
commita1bc2913625b45c6ac28b856b8ee2051489479b7 (patch)
treeb2225cfc55710080173f09853cd50f68773a9667 /Makefile
parent4eaa5313c9c591dffb6f52c2674009622cbdd28e (diff)
downloaduxnrpi-a1bc2913625b45c6ac28b856b8ee2051489479b7.tar.gz
uxnrpi-a1bc2913625b45c6ac28b856b8ee2051489479b7.zip
Add workarounds for working hardware RPI4
For now we need to disable compiler optimizations, since they seem to mess up the mempoke16 memory access.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 96c1b74..1fced4f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@
2.SUFFIXES: 2.SUFFIXES:
3.PHONY: clean run 3.PHONY: clean run
4 4
5RPI_VERSION ?= 3
6
5# Compiler. 7# Compiler.
6AS := aarch64-elf-as 8AS := aarch64-elf-as
7CC := aarch64-elf-gcc 9CC := aarch64-elf-gcc
@@ -21,7 +23,8 @@ OBJ_START = $(BUILD_DIR)/start.o
21OBJ_MAIN = $(BUILD_DIR)/main.o 23OBJ_MAIN = $(BUILD_DIR)/main.o
22SRC_LINK = $(SRC_DIR)/linker.ld 24SRC_LINK = $(SRC_DIR)/linker.ld
23 25
24CFLAGS := -Wall -ffreestanding -O2 -nostdlib -lgcc -mgeneral-regs-only -fstack-protector 26CFLAGS := -Wall -ffreestanding -O1 -nostdlib -lgcc -mgeneral-regs-only -fstack-protector
27CFLAGS += -DRPI_VERSION=$(RPI_VERSION)
25AFLAGS := 28AFLAGS :=
26LDFLAGS := 29LDFLAGS :=
27 30