Permalink
Browse files

enable: Jenkins: http://rcn-ee.online:8080

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information...
RobertCNelson committed Jan 10, 2018
1 parent 62767f4 commit 31c2bddf3cd21a2f0d31b300ad7c26240c1a95ef
Showing with 77 additions and 0 deletions.
  1. +11 −0 Jenkinsfile
  2. +5 −0 README.md
  3. +61 −0 jenkins_build.sh
View
@@ -0,0 +1,11 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh '/bin/bash ./jenkins_build.sh'
}
}
}
}
View
@@ -0,0 +1,5 @@
| kernel | normal | rt |
|:---------:|:--------:|:-------:|
|4.4 | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.4)](http://rcn-ee.online:8080/job/bb.org_linux_4.4/) | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.4-rt)](http://rcn-ee.online:8080/job/bb.org_linux_4.4-rt/) |
|4.9 | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.9)](http://rcn-ee.online:8080/job/bb.org_linux_4.9/) | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.9-rt)](http://rcn-ee.online:8080/job/bb.org_linux_4.9-rt/) |
|4.14 | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.14)](http://rcn-ee.online:8080/job/bb.org_linux_4.14/) | [![Build Status](http://rcn-ee.online:8080/buildStatus/icon?job=bb.org_linux_4.14-rt)](http://rcn-ee.online:8080/job/bb.org_linux_4.14-rt/) |
View
@@ -0,0 +1,61 @@
#!/bin/bash
#gcc:
site="https://releases.linaro.org"
gcc_version="6.4"
gcc_minor=".1"
release="17.11"
target="arm-linux-gnueabihf"
version="components/toolchain/binaries/${gcc_version}-20${release}/${target}"
filename="gcc-linaro-${gcc_version}${gcc_minor}-20${release}-x86_64_${target}.tar.xz"
directory="gcc-linaro-${gcc_version}${gcc_minor}-20${release}-x86_64_${target}"
datestamp="${gcc_version}-20${release}-${target}"
binary="bin/${target}-"
#
if [ ! -d ${directory}/ ] ; then
rm -rf ./gcc-* || true
#wget -c ${site}/${version}/${filename}
wget -c http://rcn-ee.online/builds/jenkins-dl/${filename}
tar xf ${filename}
fi
export CC=`pwd`/${directory}/bin/arm-linux-gnueabihf-
make ARCH=arm clean
make ARCH=arm bb.org_defconfig
echo "[make ARCH=arm -j2 CROSS_COMPILE=\"${binary}\" zImage]"
make ARCH=arm -j2 CROSS_COMPILE="ccache ${CC}" zImage
if [ ! -f arch/arm/boot/zImage ] ; then
echo "failed: [arch/arm/boot/zImage]"
exit 1
fi
echo "[make ARCH=arm -j2 CROSS_COMPILE=\"${binary}\" modules]"
make ARCH=arm -j2 CROSS_COMPILE="ccache ${CC}" modules
if [ ! -f drivers/spi/spidev.ko ] ; then
echo "failed: [drivers/spi/spidev.ko]"
exit 1
fi
echo "[make ARCH=arm -j2 CROSS_COMPILE=\"${binary}\" dtbs]"
make ARCH=arm -j2 CROSS_COMPILE="ccache ${CC}" dtbs
if [ ! -f arch/arm/boot/dts/am335x-boneblack.dtb ] ; then
echo "failed: [arch/arm/boot/dts/am335x-boneblack.dtb]"
exit 1
else
if [ -f arch/arm/boot/dts/am335x-pocketbeagle.dts ] ; then
if [ ! -f arch/arm/boot/dts/am335x-pocketbeagle.dtb ] ; then
echo "failed: [arch/arm/boot/dts/am335x-pocketbeagle.dtb]"
exit 1
fi
fi
fi
make ARCH=arm clean

0 comments on commit 31c2bdd

Please sign in to comment.