1 |
61 |
csantifort |
# ----------------------------------------------------------------
|
2 |
|
|
# //
|
3 |
|
|
# Makefile for the boot-loader application. //
|
4 |
|
|
# //
|
5 |
|
|
# This file is part of the Amber project //
|
6 |
|
|
# http://www.opencores.org/project,amber //
|
7 |
|
|
# //
|
8 |
|
|
# Description //
|
9 |
|
|
# Simple makefile that defines the sources and target. //
|
10 |
|
|
# Uses the common.mk common makefile script. //
|
11 |
|
|
# //
|
12 |
|
|
# Author(s): //
|
13 |
|
|
# - Conor Santifort, csantifort.amber@gmail.com //
|
14 |
|
|
# //
|
15 |
|
|
#/ ///////////////////////////////////////////////////////////////
|
16 |
|
|
# //
|
17 |
|
|
# Copyright (C) 2010 Authors and OPENCORES.ORG //
|
18 |
|
|
# //
|
19 |
|
|
# This source file may be used and distributed without //
|
20 |
|
|
# restriction provided that this copyright statement is not //
|
21 |
|
|
# removed from the file and that any derivative work contains //
|
22 |
|
|
# the original copyright notice and the associated disclaimer. //
|
23 |
|
|
# //
|
24 |
|
|
# This source file is free software; you can redistribute it //
|
25 |
|
|
# and/or modify it under the terms of the GNU Lesser General //
|
26 |
|
|
# Public License as published by the Free Software Foundation; //
|
27 |
|
|
# either version 2.1 of the License, or (at your option) any //
|
28 |
|
|
# later version. //
|
29 |
|
|
# //
|
30 |
|
|
# This source is distributed in the hope that it will be //
|
31 |
|
|
# useful, but WITHOUT ANY WARRANTY; without even the implied //
|
32 |
|
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
|
33 |
|
|
# PURPOSE. See the GNU Lesser General Public License for more //
|
34 |
|
|
# details. //
|
35 |
|
|
# //
|
36 |
|
|
# You should have received a copy of the GNU Lesser General //
|
37 |
|
|
# Public License along with this source; if not, download it //
|
38 |
|
|
# from http://www.opencores.org/lgpl.shtml //
|
39 |
|
|
# //
|
40 |
|
|
# ----------------------------------------------------------------
|
41 |
|
|
# Assembly source files
|
42 |
|
|
|
43 |
|
|
SRC = boot-loader-ethmac.c line-buffer.c timer.c print.c elfsplitter.c utilities.c \
|
44 |
78 |
csantifort |
serial.c ethmac.c packet.c tcp.c udp.c telnet.c start.S ../mini-libc/memcpy.c
|
45 |
61 |
csantifort |
DEP = address_map.h boot-loader-ethmac.h line-buffer.h timer.h utilities.h \
|
46 |
78 |
csantifort |
serial.h ethmac.h tcp.h udp.h telnet.h packet.h elfsplitter.h
|
47 |
61 |
csantifort |
TGT = boot-loader-ethmac.elf
|
48 |
|
|
LDS = sections.lds
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
# Needs to fit into the boot memory on the FPGA - 8kBytes
|
52 |
|
|
# so size is important
|
53 |
|
|
MIN_SIZE = 1
|
54 |
|
|
CHANGE_ADDRESS = 1
|
55 |
|
|
|
56 |
|
|
all : debug
|
57 |
|
|
../tools/check_mem_size.sh $(MEM) "@000040"
|
58 |
78 |
csantifort |
|
59 |
61 |
csantifort |
include ../include/common.mk
|