summaryrefslogtreecommitdiff
path: root/cookbooks/gnuradio/recipes/default.rb
diff options
context:
space:
mode:
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'