aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--96boards-helium.yaml121
-rw-r--r--96boards-helium/hwpacks/linaro-helium45
2 files changed, 166 insertions, 0 deletions
diff --git a/96boards-helium.yaml b/96boards-helium.yaml
new file mode 100644
index 0000000000..fc5ccd4a25
--- /dev/null
+++ b/96boards-helium.yaml
@@ -0,0 +1,121 @@
+- job:
+ name: 96boards-helium
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ - job-workspace
+ parameters:
+ - string:
+ name: ROOTFS
+ default: 'developer'
+ disabled: false
+ node: docker-utopic
+ display-name: '96boards - Helium (Marvell PXA1928)'
+ scm:
+ - git:
+ url: https://git.linaro.org/people/rob.herring/linux.git
+ refspec: +refs/heads/v4.1-pxa1928:refs/remotes/origin/v4.1-pxa1928
+ name: origin
+ branches:
+ - refs/heads/v4.1-pxa1928
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ wrappers:
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ builders:
+ - linaro-publish-token:
+ host: builds.96boards.org
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ sudo kpartx -dv out/helium-jessie_*.img || true
+ rm -rf lci-build-tools
+ rm -rf builddir*
+ rm -rf out
+ }
+
+ sudo apt-get install -y kpartx python-pycurl
+ wget http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/a/android-tools/android-tools-fsutils_4.2.2+git20130218-3ubuntu41+linaro1_amd64.deb
+ sudo dpkg -i --force-all android-tools-fsutils_*.deb
+ rm -f android-tools-fsutils_*.deb
+ # FIXME - temporary workaround
+ sudo wget https://git.linaro.org/ci/linaro-image-tools.git/blob_plain/HEAD:/linaro-hwpack-install -O /usr/bin/linaro-hwpack-install
+ sudo chmod +x /usr/bin/linaro-hwpack-install
+
+ export LANG=C
+ export make_bootwrapper=false
+ export make_install=true
+ export kernel_flavour=helium
+ export kernel_config=pxa1928_defconfig
+ export MAKE_DTBS=true
+ export ARCH=arm64
+ export tcbindir="${HOME}/srv/toolchain/arm64-tc-15.02/bin"
+ export toolchain_url=http://releases.linaro.org/15.02/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz
+
+ rm -rf configs lci-build-tools
+ git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git
+ git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+ bash -x lci-build-tools/jenkins_kernel_build_inst
+ rm -rf out/dtbs
+
+ # Create the hardware pack
+ cp -a configs/96boards-helium/hwpacks/linaro-helium .
+
+ VERSION=`date +%Y%m%d`-${BUILD_NUMBER}
+ linaro-hwpack-create --debug linaro-helium ${VERSION}
+ linaro-hwpack-replace -t `ls hwpack_linaro-helium_*_arm64_supported.tar.gz` -p `ls linux-image-*-linaro-helium_*.deb` -r linux-image -d -i
+ linaro-hwpack-replace -t `ls hwpack_linaro-helium_*_arm64_supported.tar.gz` -p `ls linux-headers-*-linaro-helium_*.deb` -r linux-headers -d -i
+
+ cat > out/README.txt << EOF
+ Build information:
+ * build: ${BUILD_URL}
+ * git URL: ${GIT_URL}
+ * git branch: ${GIT_BRANCH}
+ * git commit: ${GIT_COMMIT}
+ EOF
+
+ for rootfs in ${ROOTFS}; do
+ # Get rootfs
+ export ROOTFS_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/job/debian-arm64-rootfs/label=build,rootfs=${rootfs}/lastSuccessfulBuild/buildNumber`
+ export ROOTFS_BUILD_TIMESTAMP=`wget -q --no-check-certificate -O - https://ci.linaro.org/job/debian-arm64-rootfs/label=build,rootfs=${rootfs}/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd`
+ export ROOTFS_BUILD_URL="http://snapshots.linaro.org/debian/images/${rootfs}-arm64/${ROOTFS_BUILD_NUMBER}/linaro-jessie-${rootfs}-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz"
+ wget --progress=dot -e dotbytes=2M ${ROOTFS_BUILD_URL}
+
+ cat >> out/README.txt << EOF
+ * rootfs (${rootfs}): http://snapshots.linaro.org/debian/images/${rootfs}-arm64/${ROOTFS_BUILD_NUMBER}
+ EOF
+
+ # Create pre-built image(s)
+ linaro-media-create --dev fastmodel --output-directory ${WORKSPACE}/out --image-file helium-jessie_${rootfs}_${VERSION}.img --image-size 2G --binary linaro-jessie-${rootfs}-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz --hwpack hwpack_linaro-helium_*.tar.gz --hwpack-force-yes --bootloader uefi
+ done
+
+ # Create MD5SUMS file
+ (cd out && md5sum * > MD5SUMS.txt)
+
+ # Publish
+ test -d ${HOME}/bin || mkdir ${HOME}/bin
+ wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+ time python ${HOME}/bin/linaro-cp.py \
+ --server ${PUBLISH_SERVER} \
+ --link-latest \
+ out snapshots/helium/linaro/debian/${BUILD_NUMBER}
+ publishers:
+ - email:
+ recipients: 'fathi.boudra@linaro.org'
diff --git a/96boards-helium/hwpacks/linaro-helium b/96boards-helium/hwpacks/linaro-helium
new file mode 100644
index 0000000000..4dcdc75cbf
--- /dev/null
+++ b/96boards-helium/hwpacks/linaro-helium
@@ -0,0 +1,45 @@
+format: '3.0'
+name: linaro-helium
+architectures:
+- arm64
+origin: Linaro
+maintainer: Linaro Platform <linaro-dev@lists.linaro.org>
+support: supported
+serial_tty: ttyS0
+kernel_addr: '0x0127f800'
+initrd_addr: '0x04000000'
+load_addr: '0x0b000000'
+dtb_addr: '0x03000000'
+partition_layout: bootfs_rootfs
+mmc_id: '0:1'
+kernel_file: boot/Image-*-helium
+initrd_file: boot/initrd.img-*-helium
+dtb_file: usr/lib/linux-image-*-linaro-helium/marvell/pxa1928-helium.dtb
+boot_script: boot.scr
+boot_min_size: 65
+extra_serial_options:
+- console=tty0
+- console=ttyS0,115200n8
+assume_installed:
+- adduser
+- apt
+- apt-utils
+- debconf-i18n
+- debian-archive-keyring
+- gcc-4.8
+- gnupg
+- ifupdown
+- initramfs-tools
+- iproute2
+- irqbalance
+- isc-dhcp-client
+- kmod
+- netbase
+- udev
+packages:
+- linux-image-arm64
+- linux-headers-arm64
+- firmware-linux
+sources:
+ debian: http://ftp.debian.org/debian/ jessie main contrib non-free
+ repo: http://repo.linaro.org/ubuntu/linaro-overlay jessie main