diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000000000000000000000000000000000..1e73bc717e366c21b3b2ad10bf5065500e14deb8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +pipeline { + agent any + + stages { + stage('Build') { + steps { + sh '/bin/bash ./jenkins_build.sh' + } + } + } +} diff --git a/Makefile b/Makefile index ecc39b1cbb9e15f8faf1e911031e2675a4001223..2135de089783adf77d9a3be7b7635e55b8ea5b39 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,26 @@ ifeq "$(DTCVERSION)" "1.5.0" DTC_FLAGS += -Wno-unique_unit_address endif +ifeq "$(DTCVERSION)" "1.6.0" + #http://snapshot.debian.org/package/device-tree-compiler/1.5.0-1/#device-tree-compiler_1.5.0-1 + #http://snapshot.debian.org/archive/debian/20190313T032949Z/pool/main/d/device-tree-compiler/device-tree-compiler_1.5.0-1_amd64.deb + #Debian: 1.4.5 + DTC_FLAGS += -Wno-pci_bridge + DTC_FLAGS += -Wno-simple_bus_reg + #Debian: 1.4.6 + DTC_FLAGS += -Wno-avoid_unnecessary_addr_size + DTC_FLAGS += -Wno-alias_paths + #Debian: 1.4.7-3 (Buster) + DTC_FLAGS += -Wno-unique_unit_address + #Debian: 1.6 + DTC_FLAGS += -Wno-phys_property + DTC_FLAGS += -Wno-i2c_bus_reg + DTC_FLAGS += -Wno-spi_bus_bridge + DTC_FLAGS += -Wno-graph_child_address + DTC_FLAGS += -Wno-graph_endpoint + DTC_FLAGS += -Wno-graph_port +endif + # Beautify output # --------------------------------------------------------------------------- # diff --git a/jenkins_build.sh b/jenkins_build.sh new file mode 100755 index 0000000000000000000000000000000000000000..daaf97d24414fc3c260a6e63c42534a1146f8d9d --- /dev/null +++ b/jenkins_build.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +DIR="$PWD" + +dtc_git_build () { + project="dtc" + server="git://git.kernel.org/pub/scm/utils/dtc/dtc.git" + + if [ ! -d ${HOME}/git/ ] ; then + mkdir -p ${HOME}/git/ || true + fi + + if [ ! -f ${HOME}/git/${project}/.git/config ] ; then + git clone ${server} ${HOME}/git/${project}/ + fi + + cd ${HOME}/git/${project}/ + make clean + git checkout master -f + git pull || true + + if [ ! "x${git_tag}" = "x" ] ; then + test_for_branch=$(git branch --list ${git_tag}-build) + if [ "x${test_for_branch}" != "x" ] ; then + git branch ${git_tag}-build -D + fi + + git checkout ${git_tag} -b ${git_tag}-build + fi + + make clean + make CC=gcc CROSS_COMPILE= all &> /dev/null + cd ${DIR}/ +} + +git_tag="v1.6.0" +dtc_git_build + +echo "*********************************************" +echo "dtc: `/var/lib/jenkins/git/dtc/dtc --version`" +DTC=/var/lib/jenkins/git/dtc/dtc DTCVERSION=2.0.0 make clean +DTC=/var/lib/jenkins/git/dtc/dtc DTCVERSION=2.0.0 make all || exit 1 +echo "*********************************************" + +unset git_tag +dtc_git_build