diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2018-02-23 16:36:23 +0530 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2018-02-26 09:17:19 +0000 |
commit | 367e914adcb32063c187e5030037e936a38a932e (patch) | |
tree | 1def563515f711dede803c02133f3b8f54e28414 /lt-qcom-linux-aosp | |
parent | e0b35851f9f6a46bdc4e20a9f7884352609bf8a1 (diff) |
lt-qcom: build boot.img for android boot testing
Change-Id: I30ed2aa507679c8feb4a27afc9c3ae6544758ebc
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'lt-qcom-linux-aosp')
-rw-r--r-- | lt-qcom-linux-aosp/lava-job-definitions/dragonboard410c/template-boot.yaml | 93 | ||||
-rw-r--r-- | lt-qcom-linux-aosp/package-aosp-bootimage.sh | 6 | ||||
-rw-r--r-- | lt-qcom-linux-aosp/submit_for_testing.sh | 33 |
3 files changed, 132 insertions, 0 deletions
diff --git a/lt-qcom-linux-aosp/lava-job-definitions/dragonboard410c/template-boot.yaml b/lt-qcom-linux-aosp/lava-job-definitions/dragonboard410c/template-boot.yaml new file mode 100644 index 00000000..b47fc012 --- /dev/null +++ b/lt-qcom-linux-aosp/lava-job-definitions/dragonboard410c/template-boot.yaml @@ -0,0 +1,93 @@ +device_type: db410c-android +job_name: db410c-android + +timeouts: + job: + minutes: 540 + action: + minutes: 15 + connection: + minutes: 2 +priority: medium +visibility: public + + +protocols: + lava-lxc: + name: lxc-db410c-test + distribution: ubuntu + release: xenial + arch: amd64 + verbose: true + +actions: +- deploy: + namespace: tlxc + timeout: + minutes: 15 + to: lxc + packages: + - wget + - unzip + os: debian + +- boot: + namespace: tlxc + prompts: + - root@(.*):/# + - :/ + timeout: + minutes: 5 + method: lxc + +- test: + namespace: tlxc + timeout: + minutes: 10 + definitions: + - from: inline + name: install-google-fastboot + path: inline/install-google-fastboot.yaml + repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: install-fastboot + description: Install fastboot provided by google + run: + steps: + - wget https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip + - unzip platform-tools_r26.0.0-linux.zip + - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot + - ln -s `pwd`/platform-tools/adb /usr/bin/adb + - fastboot --version + +- deploy: + timeout: + minutes: 15 + to: fastboot + namespace: droid + images: + boot: + url: ${DOWNLOAD_URL}/boot-db410c.img + system: + url: ${REFERENCE_BUILD_URL}/system.img + userdata: + url: ${REFERENCE_BUILD_URL}/userdata.img + cache: + url: ${REFERENCE_BUILD_URL}/cache.img + os: debian + protocols: + lava-lxc: + - action: fastboot-deploy + request: pre-power-command + timeout: + minutes: 2 + +- boot: + namespace: droid + prompts: + - root@(.*):/# + - :/ + timeout: + minutes: 15 + method: fastboot diff --git a/lt-qcom-linux-aosp/package-aosp-bootimage.sh b/lt-qcom-linux-aosp/package-aosp-bootimage.sh new file mode 100644 index 00000000..12c044f3 --- /dev/null +++ b/lt-qcom-linux-aosp/package-aosp-bootimage.sh @@ -0,0 +1,6 @@ +#!/bin/bash -xe + +cat ${WORKSPACE}/linux/arch/${ARCH}/boot/Image.gz ${WORKSPACE}/linux/arch/${ARCH}/boot/dts/qcom/apq8016-sbc.dtb > Image.gz-dtb +wget -q https://android-git.linaro.org/platform/system/core.git/plain/mkbootimg/mkbootimg -O mkbootimg +wget -q ${REFERENCE_BUILD_URL}/ramdisk.img -O ramdisk.img +python mkbootimg --kernel Image.gz-dtb --ramdisk ramdisk.img --output boot-db410c.img --pagesize 2048 --base 0x80000000 --cmdline 'androidboot.selinux=permissive firmware_class.path=/system/vendor/firmware/' diff --git a/lt-qcom-linux-aosp/submit_for_testing.sh b/lt-qcom-linux-aosp/submit_for_testing.sh new file mode 100644 index 00000000..9464a107 --- /dev/null +++ b/lt-qcom-linux-aosp/submit_for_testing.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Install ruamel.yaml +pip install --user --force-reinstall ruamel.yaml +pip install --user --force-reinstall Jinja2 + +# export VTS_URL=https://builds.96boards.org/${PUB_DEST} +# export CTS_URL=https://builds.96boards.org/${PUB_DEST} +export DEVICE_TYPE=db410c-android +export LAVA_SERVER=https://validation.linaro.org/RPC2/ +export DOWNLOAD_URL=https://snapshots.linaro.org/96boards/dragonboard410c/linaro/aosp/kernel/${BUILD_NUMBER} +export REFERENCE_BUILD_URL=${REFERENCE_BUILD_URL} +export KERNEL_COMMIT=${KERNEL_VERSION} +export KERNEL_BRANCH=${KERNEL_BRANCH} +export KERNEL_REPO=${KERNEL_REPO_URL} +export ANDROID_VERSION=aosp-master +# export VTS_VERSION=$(echo $VTS_URL | awk -F"/" '{print$(NF-1)}') +# export CTS_VERSION=$(echo $CTS_URL | awk -F"/" '{print$(NF-1)}') +export QA_BUILD_VERSION=${BUILD_NUMBER} + +rm -rf configs +git clone --depth 1 http://git.linaro.org/ci/job/configs.git + +python configs/openembedded-lkft/submit_for_testing.py \ + --device-type ${DEVICE_TYPE} \ + --build-number ${BUILD_NUMBER} \ + --lava-server ${LAVA_SERVER} \ + --qa-server ${QA_SERVER} \ + --qa-server-team qcomlt \ + --qa-server-project ${QA_SERVER_PROJECT} \ + --git-commit ${QA_BUILD_VERSION} \ + --template-path configs/lt-qcom-linux-aosp/lava-job-definitions/dragonboard410c \ + --template-names template-boot.yaml \ + --quiet |