Correct typo
[rpi-open-firmware.git] / arm_chainloader / Makefile
old mode 100755 (executable)
new mode 100644 (file)
index 05b8945..594403c
@@ -3,9 +3,29 @@ TARGET_ARM_CHAINLOADER = arm_chainloader.bin
 
 SRCS = \
        start.s \
+       lib_armv6/arm_bcopy.s \
+       lib_armv6/arm_bzero.s \
+       lib_armv6/arm_locore.s \
+       lib_armv6/arm_strlen.s \
+       lib_armv6/arm_memcmp.s \
+       lib_armv6/string_misc.c \
        drivers/uart.c \
+       drivers/cprman.cc \
+       drivers/libfdt/fdt.c \
+       drivers/libfdt/fdt_ro.c \
+       drivers/libfdt/fdt_wip.c \
+       drivers/libfdt/fdt_rw.c \
+       drivers/libfdt/fdt_strerror.c \
+       drivers/fatfs/ff.c \
+       drivers/sdhost_impl.cc \
+       drivers/mbr_disk.cc \
+       drivers/mailbox.cc \
        ../lib/xprintf.c \
-       firmware_rendezvous.c \
+       ../lib/panic.c \
+       ../lib/udelay.c \
+       ../lib/cxx_runtime.c \
+       ../lib/tlsf/tlsf.c \
+       loader.cc \
        main.c
 
 ARCH = armv6zk
@@ -27,11 +47,15 @@ OBJ := $(addprefix $(TARGET_BUILD_DIR)/, $(addsuffix .o, $(basename $(SRCS))))
 
 CROSS_COMPILE = arm-none-eabi-
 CC = $(CROSS_COMPILE)gcc
+CXX = $(CROSS_COMPILE)gcc
 AS = $(CC)
 OBJCOPY = $(CROSS_COMPILE)objcopy
 LINKFLAGS = -nostdlib -march=$(ARCH) -Wl,--build-id=none -T linker.lds
-COMMON_FLAGS = -c -nostdlib -nostartfiles -ffreestanding -march=$(ARCH) -I../ -I./ -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s
+COMMON_FLAGS = -c -nostdlib -nostartfiles -ffreestanding -march=$(ARCH) -I../ -I./ -I./drivers/libfdt/ \
+ -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s
+
 CFLAGS = $(COMMON_FLAGS) -std=c11 
+CXXFLAGS = $(COMMON_FLAGS) -std=c++11 -fno-exceptions -fno-rtti
 ASFLAGS = $(COMMON_FLAGS) -x assembler-with-cpp
 
 HEADERS := \
@@ -54,6 +78,11 @@ $(TARGET_BUILD_DIR)/%.o: %.c $(HEADERS)
        @echo $(WARN_COLOR)CC  $(NO_COLOR) $@
        @$(CC) $(CFLAGS) $< -o $@
 
+$(TARGET_BUILD_DIR)/%.o: %.cc $(HEADERS)
+       $(CREATE_SUBDIR)
+       @echo $(WARN_COLOR)CXX $(NO_COLOR) $@
+       @$(CXX) $(CXXFLAGS) $< -o $@
+
 $(TARGET_BUILD_DIR)/%.o: %.s $(HEADERS)
        $(CREATE_SUBDIR)
        @echo $(WARN_COLOR)AS  $(NO_COLOR) $@
@@ -69,4 +98,4 @@ $(TARGET_ARM_CHAINLOADER): 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.023189 seconds and 4 git commands to generate.