Skip to content

Commit

Permalink
ci: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed May 12, 2022
1 parent 3b93b3a commit 3612783
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 44 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image: debian:bullseye

build:
stage: build
before_script:
- apt update && apt -y install build-essential bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison lsb-release rsync lzop gcc-arm-linux-gnueabihf
script:
- ./jenkins_build.sh
- mv ../*.deb .
artifacts:
paths:
- "*.deb"
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
| kernel | normal | rt | xenomai |
|:---:|:---:|:---:|:---:|
|4.14 | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14-rt/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14-rt/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14-xenomai/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.14-xenomai/) |
|4.19 | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19-rt/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19-rt/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19-xenomai/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/4.19-xenomai/) |
|5.4 | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4-rt/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4-rt/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4-xenomai/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.4-xenomai/) |
|5.10 | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10-rt/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10-rt/) | [![Build Status](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10-xenomai/badge/icon)](http://gfnd.rcn-ee.org:8080/view/BeagleBoard/job/beagleboard_kernel_builder/job/5.10-xenomai/) |
# Gitlab CI

| kernel | normal | rt |
|:---:|:---:|:---:|
|4.19 | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/4.19/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=4.19) | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/4.19-rt/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=4.19-rt) |
|5.4 | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/5.4/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=5.4) | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/5.4-rt/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=5.4-rt) |
|5.10 | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/5.10/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=5.10) | [![Build Status](https://git.beagleboard.org/beagleboard/linux/badges/5.10-rt/pipeline.svg)](https://git.beagleboard.org/beagleboard/linux/-/pipelines?page=1&scope=all&ref=5.10-rt) |

# Jenkins

| kernel | normal | rt |
|:---:|:---:|:---:|
|4.19 | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/4.19/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/4.19/) | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/4.19-rt/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/4.19-rt/) |
|5.4 | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.4/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.4/) | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.4-rt/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.4-rt/) |
|5.10 | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.10/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.10/) | [![Build Status](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.10-rt/badge/icon)](http://eewiki.org:8080/job/ci-beagleboard-linux/job/5.10-rt/) |
41 changes: 3 additions & 38 deletions jenkins_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,10 @@
#git clone -b 5.10 https://github.com/beagleboard/linux --depth=10
#cd ./linux

if [ ! -d ./gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/ ] ; then
rm -rf ./gcc-* || true
#wget -c ${site}/${version}/${filename}
wget -c http://192.168.3.125/jenkins/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
tar xf gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
fi

export CC=`pwd`/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
export CC=/usr/bin/arm-linux-gnueabihf-

make ARCH=arm CROSS_COMPILE=${CC} clean
make ARCH=arm CROSS_COMPILE=${CC} bb.org_defconfig

echo "[make ARCH=arm -j4 CROSS_COMPILE=\"${binary}\" zImage]"
make ARCH=arm -j4 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 -j4 CROSS_COMPILE=\"${binary}\" modules]"
make ARCH=arm -j4 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 CROSS_COMPILE=\"${binary}\" dtbs]"
make ARCH=arm 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 CROSS_COMPILE=${CC} clean
rm -rf ./gcc-* || true
echo "make -j4 ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=${CC} bindeb-pkg"
make -j4 ARCH=arm KBUILD_DEBARCH=armhf KDEB_PKGVERSION=1xross CROSS_COMPILE=${CC} bindeb-pkg

0 comments on commit 3612783

Please sign in to comment.