summaryrefslogtreecommitdiff
path: root/cookbooks/gnuradio/recipes/default.rb
diff options
context:
space:
mode:
authorDamien Walsh <me@damow.net>2013-06-27 02:57:15 -0700
committerDamien Walsh <me@damow.net>2013-06-27 02:57:15 -0700
commit22d78b72515a0bbc6a20c872c60a35b2bbf830ea (patch)
treeb604d4c2123032ad14e4b42c9024c157e5e9f0ea /cookbooks/gnuradio/recipes/default.rb
parente4d9765a8d9527e7703407039aed246be1206af4 (diff)
parent2a97c01e22bcc0770e108008c095096742981175 (diff)
Merge pull request #10 from ibobbitt/masterHEADmaster
Adding support for hackrf (tested, builds OK).
Diffstat (limited to 'cookbooks/gnuradio/recipes/default.rb')
-rw-r--r--cookbooks/gnuradio/recipes/default.rb47
1 files changed, 47 insertions, 0 deletions
diff --git a/cookbooks/gnuradio/recipes/default.rb b/cookbooks/gnuradio/recipes/default.rb
index e936588..3bebda9 100644
--- a/cookbooks/gnuradio/recipes/default.rb
+++ b/cookbooks/gnuradio/recipes/default.rb
@@ -26,6 +26,15 @@ git 'Checkout rtl-sdr' do
group 'vagrant'
end
+git 'Checkout hackrf' do
+ repository node[:repos][:hackrf]
+ reference 'master'
+ action :checkout
+ destination node[:workingdir] + '/hackrf'
+ user 'vagrant'
+ group 'vagrant'
+end
+
git 'Checkout gr-osmosdr' do
repository node[:repos][:gr_osmosdr]
reference 'master'
@@ -64,6 +73,44 @@ bash 'Install rtl-sdr' do
EOH
end
+bash 'Compile libhackrf' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/hackrf/host/libhackrf'
+ code <<-EOH
+ cmake .
+ make clean
+ make
+ EOH
+end
+
+bash 'Install libhackrf' do
+ cwd node[:workingdir] + '/hackrf/host/libhackrf'
+ code <<-EOH
+ make install
+ ldconfig
+ EOH
+end
+
+bash 'Compile hackrf-tools' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/hackrf/host/hackrf-tools'
+ code <<-EOH
+ cmake .
+ make clean
+ make
+ EOH
+end
+
+bash 'Install hackrf-tools' do
+ cwd node[:workingdir] + '/hackrf/host/hackrf-tools'
+ code <<-EOH
+ make install
+ ldconfig
+ EOH
+end
+
bash 'Compile GNU Radio' do
user 'vagrant'
group 'vagrant'