Jenkinsfile.kernel : remove the kernel build scripts

They are now located here

https://source.puri.sm/Librem5/kernel-builder
parent 823646b8
Pipeline #4803 passed with stage
in 18 seconds
node {
gitUrl = 'https://source.puri.sm/librem5/image-builder.git'
artifacts = 'files/linux-*.deb,kernel-git*.txt,files/rsi_*.tar'
branch = 'master'
parameters {
string(name: 'board', defaultValue: "imx6", description: 'What board type to build for?')
string(name: 'build_type', defaultValue: "unstable", description: 'What type of build is this?')
string(name: 'publish', defaultValue: "false", description: 'Should the image get published?')
string(name: 'MAKE_OPTS', defaultValue: "", description: 'extra make options')
}
stage('Setup') {
git url: gitUrl, branch: branch
}
stage('Build kernel') {
sh "cd build && MAKE_OPTS=${MAKE_OPTS} ./build_kernel_deb.sh -b ${board}"
}
stage('Publish') {
if( "${params.publish}"=="true" ) {
sh "bin/publish_ci_files -b ${BUILD_NUMBER} -t kernel -T ${build_type} -o files files/*"
} else {
echo "This kernel will not be published"
}
}
stage('Results') {
archive artifacts
}
stage( 'Clean up' ) {
deleteDir() /* clean up our workspace */
}
stage( 'Notify' ) {
mail to: 'librem5-team@lists.puri.sm',
subject: "Build: ${currentBuild.fullDisplayName}",
body: "Build finished ${env.BUILD_URL}"
}
}
To build the kernel on x86 there are some prerequisits, a crosscompiler and build essentials.
sudo apt-get install gcc-arm-linux-gnueabihf build-essential crossbuild-essential-armhf
Checkout the kernel
git clone https://code.puri.sm/Librem5/linux-nitrogen6.git
cp imx6_dot_config linux-nitrogen6/.config
cd linux-nitrogen6
Build it
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- deb-pkg
Copy the generated deb into the folder files/ folder.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment