Skip to content

Readme for build arm version on google cloud

beyond2002 edited this page Dec 4, 2017 · 4 revisions

connect to google cloud instance

ssh -i ~/.ssh/beyond2002.pub [email protected]

prepare chef on Ubuntu 16.04:

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

run cookbook

sudo chef-client --local-mode jailhouse-arm.rb

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

edit and run build.sh

vim build.sh

text

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

change mode

chmod 775 build.sh

Clone this wiki locally