aboutsummaryrefslogtreecommitdiffstats
path: root/images/Makefile
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-25 13:42:53 -0700
committerJosh Blum <josh@joshknows.com>2011-03-25 13:42:53 -0700
commit8a14b6c26f88aadf9d077798a7888badfde95587 (patch)
tree8f9c73a483fab2d2580d233a2837abc609260aa0 /images/Makefile
parented020d7698994070edd1d6f6584e90ea3df3e0b6 (diff)
downloaduhd-8a14b6c26f88aadf9d077798a7888badfde95587.tar.gz
uhd-8a14b6c26f88aadf9d077798a7888badfde95587.tar.bz2
uhd-8a14b6c26f88aadf9d077798a7888badfde95587.zip
usrp2: modified firmware build rules to chain the dependencies (better for make -j4)
Diffstat (limited to 'images/Makefile')
-rw-r--r--images/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/images/Makefile b/images/Makefile
index 652b127d8..cadf4b71f 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -94,14 +94,18 @@ _usrp_n200_fw_bin = $(BUILT_IMAGES_DIR)/usrp_n200_fw.bin
_usrp_n210_fw_bin = $(BUILT_IMAGES_DIR)/usrp_n210_fw.bin
IMAGES_LIST += $(_usrp2_fw_bin) $(_usrp_n200_fw_bin) $(_usrp_n210_fw_bin)
-$(_usrp2_fw_bin) $(_usrp_n200_fw_bin) $(_usrp_n210_fw_bin): $(GLOBAL_DEPS)
+$(_usrp2_fw_bin): $(GLOBAL_DEPS)
cd $(_usrp2_fw_dir) && rm -rf build
cd $(_usrp2_fw_dir) && mkdir build
cd $(_usrp2_fw_dir)/build && cmake ../
cd $(_usrp2_fw_dir)/build && make
- cp $(_usrp2_fw_dir)/build/usrp2/usrp2_txrx_uhd.bin $(_usrp2_fw_bin)
- cp $(_usrp2_fw_dir)/build/usrp2p/usrp2p_txrx_uhd.bin $(_usrp_n200_fw_bin)
- cp $(_usrp2_fw_dir)/build/usrp2p/usrp2p_txrx_uhd.bin $(_usrp_n210_fw_bin)
+ cp $(_usrp2_fw_dir)/build/usrp2/usrp2_txrx_uhd.bin $@
+
+$(_usrp_n200_fw_bin): $(_usrp2_fw_bin)
+ cp $(_usrp2_fw_dir)/build/usrp2p/usrp2p_txrx_uhd.bin $@
+
+$(_usrp_n210_fw_bin): $(_usrp2_fw_bin)
+ cp $(_usrp2_fw_dir)/build/usrp2p/usrp2p_txrx_uhd.bin $@
endif