summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cookbooks/gnuradio/recipes/default.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/cookbooks/gnuradio/recipes/default.rb b/cookbooks/gnuradio/recipes/default.rb
index e772daf..758e00c 100644
--- a/cookbooks/gnuradio/recipes/default.rb
+++ b/cookbooks/gnuradio/recipes/default.rb
@@ -52,3 +52,45 @@ bash 'Install rtl-sdr' do
ldconfig
EOH
end
+
+bash 'Compile GNU Radio' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/gnuradio'
+ code <<-EOH
+ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
+ mkdir build && cd build
+ make clean
+ cmake -DENABLE_BAD_BOOST=ON ../
+ make clean
+ make
+ EOH
+end
+
+bash 'Install GNU Radio' do
+ cwd node[:workingdir] + '/gnuradio'
+ code <<-EOH
+ cd build
+ make install
+ ldconfig
+ EOH
+end
+
+bash 'Compile gr-osmosdr' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/gr-osmosdr'
+ code <<-EOH
+ cmake .
+ make clean
+ make
+ EOH
+end
+
+bash 'Install gr-osmosdr' do
+ cwd node[:workingdir] + '/gr-osmosdr'
+ code <<-EOH
+ make install
+ ldconfig
+ EOH
+end