From 28f9ee423f7fa14dc93adbdc4a4584a81089c55c Mon Sep 17 00:00:00 2001 From: Tim Cameron Ryan Date: Sun, 8 Nov 2015 22:46:56 -0800 Subject: [PATCH] Adds VM building. --- .travis.yml | 16 +++++++++++++--- target/vm/config.mk | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9211940..ae080e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ before_install: install: - yes | gcloud compute instances delete travis-instance --zone us-central1-b || true -- gcloud compute instances create travis-instance --zone us-central1-b --image ubuntu-14-04 --machine-type n1-highcpu-32 --boot-disk-size 64 --scopes compute-rw +- gcloud compute instances create travis-instance --zone us-central1-b --image ubuntu-14-04 --machine-type n1-highcpu-32 --boot-disk-size 200 --scopes compute-rw - | while [ 1 ]; do gcloud compute ssh travis-instance --zone us-central1-b --command 'exit 0' -- -o ConnectTimeout=10 > /dev/null 2>&1 && break @@ -53,10 +53,20 @@ script: sudo apt-add-repository -y ppa:terry.guo/gcc-arm-embedded sudo apt-get update -qq sudo apt-get install -y build-essential git-core g++ subversion libncurses-dev libssl-dev unzip gettext gcc-arm-none-eabi - cp -rf ~/openwrt-tessel /tmp/ramdisk/openwrt-tessel - cd /tmp/ramdisk/openwrt-tessel + + cd ~/openwrt-tessel git submodule update --init --recursive + cp -rf ~/openwrt-tessel /tmp/ramdisk/v2 + pushd /tmp/ramdisk/v2 make -j64 || make -j64 || make -j64 || make -j64 || make -j64 V=s + popd + mv /tmp/ramdisk/v2 ~/v2 + cp -rf ~/openwrt-tessel /tmp/ramdisk/vm + pushd /tmp/ramdisk/vm + git submodule update --init --recursive + make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm || make -j64 TARGET=vm V=s + popd + mv /tmp/ramdisk/vm ~/vm ' #after_script: diff --git a/target/vm/config.mk b/target/vm/config.mk index 1fcb168..59e3182 100644 --- a/target/vm/config.mk +++ b/target/vm/config.mk @@ -3,5 +3,6 @@ CONFIG_TARGET_x86_generic=y CONFIG_TARGET_x86_generic_Generic=y CONFIG_TARGET_ROOTFS_EXT4FS=y CONFIG_VDI_IMAGES=y +CONFIG_TARGET_ROOTFS_PARTSIZE=96 PACKAGES += kmod-usb-ohci-pci