Attempt to get mailboxes up
[rpi-open-firmware.git] / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index 898bf05..d7123a3
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ SRCS = \
        romstage.c \
        sdram.c \
        arm_loader.c \
+       arm_monitor.c \
        trap.c \
        lib/xprintf.c \
        lib/panic.c \
@@ -34,13 +35,14 @@ default: $(TARGET_BOOTCODE)
 
 OBJ := $(addprefix $(TARGET_BUILD_DIR)/, $(addsuffix .o, $(basename $(SRCS))))
 
-CROSS_COMPILE = /Developer/vc4-toolchain/prefix/bin/vc4-elf-
+# the cross compiler should already be in your path
+CROSS_COMPILE = vc4-elf-
 CC = $(CROSS_COMPILE)gcc
 AS = $(CC)
 OBJCOPY = $(CROSS_COMPILE)objcopy
 LINKFLAGS = -nostdlib -nostartfiles
-CFLAGS = -c -nostdlib -std=c11
-ASFLAGS = -c -nostdlib -x assembler-with-cpp
+CFLAGS = -c -nostdlib -std=c11 -fsingle-precision-constant -Wdouble-promotion -D__VIDEOCORE4__ -I./vc4_include/
+ASFLAGS = -c -nostdlib -x assembler-with-cpp -D__VIDEOCORE4__ -I./vc4_include/
 
 HEADERS := \
        $(shell find . -type f -name '*.h') \
@@ -78,4 +80,4 @@ $(TARGET_BOOTCODE): create_build_directory $(OBJ)
 
 clean:
        @echo $(ERROR_COLOR)CLEAN$(NO_COLOR)
-       @-rm -rf ./$(BUILD_DIR)
\ No newline at end of file
+       @-rm -rf ./$(BUILD_DIR)
This page took 0.02431 seconds and 4 git commands to generate.