Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# The Potato Processor Software Components
# (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net>
# Report bugs and issues on <https://github.com/skordal/potato/issues>
.PHONY: all clean
include ../common.mk
TARGET_LDFLAGS += -Wl,-Tbootloader.ld -Wl,--Map,bootloader.map
OBJECTS := main.o start.o
all: bootloader.elf bootloader.bin bootloader.coe
bootloader.elf: $(OBJECTS)
$(TARGET_LD) -o bootloader.elf $(TARGET_LDFLAGS) $(OBJECTS)
$(TARGET_SIZE) bootloader.elf
clean:
-$(RM) $(OBJECTS)
-$(RM) bootloader.elf bootloader.bin bootloader.coe
# Object file rules:
main.o: main.c ../../potato.h
$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<
start.o: ../start.S
$(TARGET_CC) -DCOPY_DATA_TO_RAM -c -o $@ $(TARGET_CFLAGS) $<
404e6bb26This file is pinned to the selected release. Download the original to open it in your design tool.