码迷,mamicode.com
首页 > 其他好文 > 详细

kernel jenkins build script

时间:2019-01-23 10:40:36      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:The   nts   component   lin   director   conf   one   compile   modules   

#!/bin/bash

#gcc:

site="https://releases.linaro.org"

#https://releases.linaro.org/components/toolchain/binaries/6.4-2018.05/arm-linux-gnueabihf/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz

gcc_version="6.4"
gcc_minor=".1"
release="18.05"
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 am335x_evm_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-evm.dtb ] ; then
echo "failed: [arch/arm/boot/dts/am335x-evm.dtb]"
exit 1
fi

make ARCH=arm clean

kernel jenkins build script

标签:The   nts   component   lin   director   conf   one   compile   modules   

原文地址:https://www.cnblogs.com/lianghong881018/p/10307086.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!