diff options
author | Bad Diode <bd@badd10de.dev> | 2021-09-09 15:56:16 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-09-09 15:56:16 +0200 |
commit | a1bc2913625b45c6ac28b856b8ee2051489479b7 (patch) | |
tree | b2225cfc55710080173f09853cd50f68773a9667 /Makefile | |
parent | 4eaa5313c9c591dffb6f52c2674009622cbdd28e (diff) | |
download | uxnrpi-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,8 @@ | |||
2 | .SUFFIXES: | 2 | .SUFFIXES: |
3 | .PHONY: clean run | 3 | .PHONY: clean run |
4 | 4 | ||
5 | RPI_VERSION ?= 3 | ||
6 | |||
5 | # Compiler. | 7 | # Compiler. |
6 | AS := aarch64-elf-as | 8 | AS := aarch64-elf-as |
7 | CC := aarch64-elf-gcc | 9 | CC := aarch64-elf-gcc |
@@ -21,7 +23,8 @@ OBJ_START = $(BUILD_DIR)/start.o | |||
21 | OBJ_MAIN = $(BUILD_DIR)/main.o | 23 | OBJ_MAIN = $(BUILD_DIR)/main.o |
22 | SRC_LINK = $(SRC_DIR)/linker.ld | 24 | SRC_LINK = $(SRC_DIR)/linker.ld |
23 | 25 | ||
24 | CFLAGS := -Wall -ffreestanding -O2 -nostdlib -lgcc -mgeneral-regs-only -fstack-protector | 26 | CFLAGS := -Wall -ffreestanding -O1 -nostdlib -lgcc -mgeneral-regs-only -fstack-protector |
27 | CFLAGS += -DRPI_VERSION=$(RPI_VERSION) | ||
25 | AFLAGS := | 28 | AFLAGS := |
26 | LDFLAGS := | 29 | LDFLAGS := |
27 | 30 | ||