2 # Copyright 2003 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
33 FW_INCLUDES=-I$(top_srcdir)/usrp/firmware/include
35 # with EA = 0, the FX2 implements a portion of the 8051 "external memory"
36 # on chip. This memory is mapped like this:
38 # The bottom 8K of memory (0x0000 - 0x1fff) is used for both data and
39 # code accesses. There's also 512 bytes for data only from 0xe000 - 0xe1ff.
41 # We tell the linker to start the xdata segment at 0x1800, 6K up from
44 LINKOPTS = --code-loc 0x0000 --code-size 0x1800 --xram-loc 0x1800 --xram-size 0x0800
61 $(XCC) $(FW_INCLUDES) $(DEFINES) -c $< -o $@
63 $(LIBRARY): $(LIBOBJS)
66 for obj in $(LIBOBJS); do basename $$obj .rel >> $(LIBRARY) ; done
70 *.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib
73 *.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib