Root/atusb/fw/atusb/Makefile

Source at commit ad2c72fa7f4f373716016dd0777f44b85c365209 created 13 years 3 months ago.
By Werner Almesberger, atusb: firmware update for the 2010-12-16 board series
1#
2# atusb/Makefile - Makefile for USB to SPI translator (for AT86RF230)
3#
4# Written 2010 by Werner Almesberger
5# Copyright 2010 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14MAIN = atusb
15OBJS = $(MAIN) usb descr version ep0
16
17F32XBASE = ../../../../f32xbase
18
19include $(F32XBASE)/fw/common/Makefile.system
20include $(F32XBASE)/fw/common/Makefile.common
21include ../common/Makefile.common
22
23CFLAGS += -I../common -I../include -D$(BOARD)
24LDFLAGS += --code-size $(PAYLOAD_SIZE) --code-loc $(PAYLOAD_START)
25
26USB_ID = $(shell \
27  ( echo '\#include "config.h"'; echo USB_VENDOR:USB_PRODUCT; ) | \
28  cpp -I../common -I../include | sed '/^ *$$/d;/^\#/d' )
29
30.PHONY: dfu
31
32dfu:
33        dfu-util -d $(USB_ID) -D $(MAIN).bin
34

Archive Download this file



interactive