Skip to content
Snippets Groups Projects
Commit d45e8d60 authored by Robert Nelson's avatar Robert Nelson
Browse files

Wire up jenkins

parent 07e7d2b3
No related branches found
No related tags found
No related merge requests found
pipeline {
agent any
stages {
stage('Build') {
steps {
sh '/bin/bash ./jenkins_build.sh'
}
}
}
}
...@@ -85,6 +85,26 @@ ifeq "$(DTCVERSION)" "1.5.0" ...@@ -85,6 +85,26 @@ ifeq "$(DTCVERSION)" "1.5.0"
DTC_FLAGS += -Wno-unique_unit_address DTC_FLAGS += -Wno-unique_unit_address
endif 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 # Beautify output
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# #
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment