-
Notifications
You must be signed in to change notification settings - Fork 0
Readme for build arm version on google cloud
ssh -i ~/.ssh/beyond2002.pub [email protected]
sudo apt-get update
sudo apt-get -y install curl
curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk -c stable -v 2.4.17
sudo chef-client --local-mode jailhouse-arm.rb
apt_update 'Update the apt cache daily' do
frequency 86_400
action :periodic
end
package %w(git gcc-arm-linux-gnueabihf u-boot-tools python-mako device-tree-compiler build-essential libncurses5 libncurses5-dev)
directory '/home/beyond2002/project' do
owner 'root'
group 'root'
mode '0775'
action :create
end
#git '/home/beyond2002/project/bananian' do
# repository 'https://github.com/beyond2002/bananian.git'
# revision 'master'
# action :sync
#end
git '/home/beyond2002/project/jailhouse' do
repository 'https://github.com/beyond2002/jailhouse.git'
revision 'master'
action :sync
end
#git '/home/beyond2002/project/freertos-cell' do
# repository 'https://github.com/beyond2002/freertos-cell.git'
# revision 'master'
# action :sync
#end
#git '/home/beyond2002/project/linux-stable' do
# repository 'https://github.com/beyond2002/linux-stable.git'
# revision 'v4.3.3'
# action :sync
#end
bash 'build_all' do
cwd '/home/beyond2002/project/jailhouse/ci'
user 'root'
group 'root'
code <<-EOH
cd /home/beyond2002/project/jailhouse/ci
wget http://www.kiszka.org/downloads/travis-ci/kernel-build.tar.xz
tar xJf kernel-build.tar.xz
cd ..
./ci/build-all-arm.sh
EOH
end
vim build.sh
sudo apt-get update
sudo apt-get -y install curl
curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk -c stable -v 2.4.17
sudo chef-client --local-mode jailhouse-arm.rb
chmod 775 build.sh