summaryrefslogtreecommitdiff
path: root/kvm-mustang-host
blob: 59c45b4cc0cba4c912f66bf66803ed3f203df424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
LAVA_NAME=${BUILD_URL:-"linux-kvm-test"}

rm -rf lci-build-tools builddir-* *gz *deb hwpack*
git clone https://git.linaro.org/ci/lci-build-tools.git

# jenkins needs a different directory for build due to git juggling
if [ ! -z ${WORKSPACE} ]
then
    export WORKSPACE=${WORKSPACE}/build
fi
echo CONFIG_BLK_DEV_NBD=m >> arch/arm64/configs/xgene_defconfig
echo CONFIG_BLK_DEV_LOOP=y >> arch/arm64/configs/xgene_defconfig

./lci-build-tools/jenkins_kernel_build_inst

builddir=`echo builddir-*`
mkimage -A arm -O linux -C none -T kernel -a 0x00080000 -e 0x00080000 -n Linux -d ${builddir}/arch/arm64/boot/Image ${builddir}/arch/arm64/boot/uImage
cp ${builddir}/arch/arm64/boot/dts/apm-mustang.dtb ..
cp ${builddir}/arch/arm64/boot/uImage ../uImage-mustang
cp ${builddir}/arch/arm64/boot/Image ../Image-mustang

cat << EOF > ../BUILD-INFO.txt
Format-Version: 0.1

Files-Pattern: *
License-Type: open
EOF