1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2025-04-21 12:27:27 +03:00

fw/boot/ - The boot loader, fresh from IDBG. Needs major cleanup.

This commit is contained in:
Werner Almesberger
2010-08-13 08:47:40 -03:00
parent bdfe058079
commit e23181e40b
7 changed files with 734 additions and 0 deletions

26
fw/boot/Makefile Normal file
View File

@@ -0,0 +1,26 @@
#
# boot/Makefile - Makefile for DFU-capable boot loader
#
# Written 2008, 2010 by Werner Almesberger
# Copyright 2008, 2010 Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
MAIN=boot
OBJS=$(MAIN) uart usb dfu version
include ../common/Makefile.system
include ../common/Makefile.common
CFLAGS += -I../include # -DLOW_SPEED
LDFLAGS += --code-size $(PAYLOAD_START)
uart.rel: ../common/uart.c
$(CC) $(CFLAGS) $(DEFINE_UART_SPEED) -o $@ -c $<
usb.rel: ../common/usb.c
$(CC) $(CFLAGS) -o $@ -c $<