Revision b96088b6 firmware/fx2/src/usrp1/Makefile.am
| b/firmware/fx2/src/usrp1/Makefile.am | ||
|---|---|---|
| 19 | 19 |
# Boston, MA 02110-1301, USA. |
| 20 | 20 |
# |
| 21 | 21 |
|
| 22 |
firmware2dir = $(prefix)/share/usrp/rev2
|
|
| 23 |
firmware2_DATA = std.ihx
|
|
| 22 |
#firmwaredir = $(prefix)/share/uhd/images
|
|
| 23 |
#firmware_DATA = usrp1_fw.ihx
|
|
| 24 | 24 |
|
| 25 |
# we put the same stuff in the rev4 directory
|
|
| 26 |
firmware4dir = $(prefix)/share/usrp/rev4
|
|
| 27 |
firmware4_DATA = std.ihx
|
|
| 25 |
#eepromdir = $(firmwaredir)
|
|
| 26 |
#eepromfile = eeprom_boot.ihx
|
|
| 27 |
#eeprom_DATA = usrp1_eeprom.bin
|
|
| 28 | 28 |
|
| 29 | 29 |
EXTRA_DIST = \ |
| 30 | 30 |
edit-gpif \ |
| ... | ... | |
| 85 | 85 |
|
| 86 | 86 |
STARTUP = _startup.rel |
| 87 | 87 |
|
| 88 |
noinst_SCRIPTS = \ |
|
| 89 |
burn-usrp2-eeprom \ |
|
| 90 |
burn-usrp4-eeprom |
|
| 91 |
|
|
| 92 |
|
|
| 93 | 88 |
.c.rel: |
| 94 | 89 |
$(XCC) $(FW_INCLUDES) $(DEFINES) \ |
| 95 | 90 |
-c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< |
| ... | ... | |
| 107 | 102 |
eeprom_boot.ihx: $(EEPROM_BOOT_OBJS) $(LIBDEP) |
| 108 | 103 |
$(XCC) $(LINKOPTS) -o $@ $(EEPROM_BOOT_OBJS) |
| 109 | 104 |
|
| 110 |
burn-usrp2-eeprom: eeprom_boot.ihx |
|
| 111 |
$(PYTHON) $(srcdir)/../common/build_eeprom.py -r2 eeprom_boot.ihx > $@ |
|
| 112 |
chmod +x $@ |
|
| 113 |
|
|
| 114 |
burn-usrp4-eeprom: eeprom_boot.ihx |
|
| 115 |
$(PYTHON) $(srcdir)/../common/build_eeprom.py -r4 eeprom_boot.ihx > $@ |
|
| 116 |
chmod +x $@ |
|
| 117 |
|
|
| 118 |
|
|
| 119 |
BLINK_LEDS_OBJS = blink_leds.rel usrp_common.rel board_specific.rel spi.rel $(STARTUP) |
|
| 120 |
|
|
| 121 |
blink_leds.ihx: $(BLINK_LEDS_OBJS) $(LIBDEP) |
|
| 122 |
$(XCC) $(LINKOPTS) -o $@ $(BLINK_LEDS_OBJS) |
|
| 123 |
|
|
| 124 |
|
|
| 125 |
CHECK_MDELAY_OBJS = check_mdelay.rel usrp_common.rel board_specific.rel spi.rel $(STARTUP) |
|
| 126 |
|
|
| 127 |
check_mdelay.ihx: $(CHECK_MDELAY_OBJS) $(LIBDEP) |
|
| 128 |
$(XCC) $(LINKOPTS) -o $@ $(CHECK_MDELAY_OBJS) |
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
CHECK_UDELAY_OBJS = check_udelay.rel usrp_common.rel board_specific.rel spi.rel $(STARTUP) |
|
| 133 |
|
|
| 134 |
check_udelay.ihx: $(CHECK_UDELAY_OBJS) $(LIBDEP) |
|
| 135 |
$(XCC) $(LINKOPTS) -o $@ $(CHECK_UDELAY_OBJS) |
|
| 136 |
|
|
| 105 |
usrp1_eeprom.bin: eeprom_boot.bin |
|
| 106 |
$(PYTHON) ../common/build_eeprom.py -r4 $< $@ |
|
| 137 | 107 |
|
| 108 |
eeprom_boot.bin: eeprom_boot.ihx |
|
| 109 |
objcopy -I ihex -O binary $< $@ |
|
| 138 | 110 |
|
| 139 | 111 |
USRP_OBJS = \ |
| 140 | 112 |
vectors.rel \ |
| ... | ... | |
| 146 | 118 |
$(XCC) $(LINKOPTS) -o $@ $(USRP_OBJS) |
| 147 | 119 |
|
| 148 | 120 |
CLEANFILES = \ |
| 149 |
*.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib \ |
|
| 150 |
usrp_gpif.c usrp_gpif_inline.h \ |
|
| 151 |
burn-usrp2-eeprom \ |
|
| 152 |
burn-usrp4-eeprom |
|
| 121 |
*.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib *.bin \ |
|
| 122 |
usrp_gpif.c usrp_gpif_inline.h |
|
| 153 | 123 |
|
| 154 | 124 |
DISTCLEANFILES = \ |
| 155 |
*.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib |
|
| 125 |
*.ihx *.lnk *.lst *.map *.mem *.rel *.rst *.sym *.asm *.lib *.bin
|
|
| 156 | 126 |
|
| 157 | 127 |
# build gpif stuff |
| 158 | 128 |
|
| 159 |
all: usrp_gpif.c |
|
| 129 |
all: usrp_gpif.c std.ihx usrp1_eeprom.bin
|
|
| 160 | 130 |
|
| 161 | 131 |
usrp_gpif.c usrp_gpif_inline.h : gpif.c |
| 162 | 132 |
srcdir=$(srcdir) $(PYTHON) $(srcdir)/edit-gpif $(srcdir)/gpif.c usrp_gpif.c usrp_gpif_inline.h |
| 163 | 133 |
|
| 164 |
|
|
| 165 | 134 |
# dependencies |
| 166 | 135 |
|
| 167 | 136 |
usrp_main.rel: usrp_gpif_inline.h |
| 137 |
|
|
| 168 | 138 |
#usrp_main.rel: fpga.h usrp_common.h ../../include/usrp_commands.h usrp_gpif_inline.h ../../include/usrp_config.h usrp_rev2_regs.h ../../include/fx2regs.h |
| 169 | 139 |
#usrp_common.rel: usrp_common.h ../../include/usrp_commands.h ../../include/usrp_config.h usrp_rev2_regs.h ../../include/fx2regs.h |
| 170 | 140 |
#fpga.rel: usrp_common.h ../../include/usrp_commands.h fpga.h ../../include/usrp_config.h usrp_rev2_regs.h ../../include/fx2regs.h |
Also available in: Unified diff