diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-06-07 13:04:51 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-06-07 13:04:51 -0700 |
commit | 9fefb30f210f86c8c5964ca8ee80f63ad8856d02 (patch) | |
tree | 08c6851146d43cb045853c6ecb5069763a20e688 /images/Makefile | |
parent | 265daa586730b95d803a694548479cb790ea80fd (diff) | |
download | uhd-9fefb30f210f86c8c5964ca8ee80f63ad8856d02.tar.gz uhd-9fefb30f210f86c8c5964ca8ee80f63ad8856d02.tar.bz2 uhd-9fefb30f210f86c8c5964ca8ee80f63ad8856d02.zip |
OctoClock support
Diffstat (limited to 'images/Makefile')
-rw-r--r-- | images/Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile index 562aa76c0..2e3bcfd26 100644 --- a/images/Makefile +++ b/images/Makefile @@ -1,5 +1,5 @@ # -# Copyright 2010-2011 Ettus Research LLC +# Copyright 2010-2013 Ettus Research LLC # # 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 @@ -52,6 +52,12 @@ ifeq ($(shell xtclsh -h > /dev/null 2>&1 && echo $$?),0) HAS_XTCLSH=1 endif +ifeq ($(shell avr-gcc --version > /dev/null 2>&1 && echo $$?),0) + ifeq ($(shell avr-objcopy --version > /dev/null 2>&1 && echo $$?),0) + HAS_AVR_UTILS=1 + endif +endif + ######################################################################## # USRP1 and B100 firmware ######################################################################## @@ -277,6 +283,22 @@ $(_usrp_e110_fpga_bin): $(GLOBAL_DEPS) endif ######################################################################## +# OctoClock firmware +######################################################################## + +ifdef HAS_AVR_UTILS + +_octoclock_fw_dir = $(TOP_FW_DIR)/octoclock +_octoclock_fw_bin = $(BUILT_IMAGES_DIR)/octoclock_fw.hex +IMAGES_LIST += $(_octoclock_fw_bin) + +$(_octoclock_fw_bin): $(GLOBAL_DEPS) + cd $(_octoclock_fw_dir) && make -f Makefile clean + cd $(_octoclock_fw_dir) && make -f Makefile all + cp $(TOP_FW_DIR)/octoclock/octoclock_fw.hex $@ +endif + +######################################################################## # Build rules ######################################################################## images: $(IMAGES_LIST) |