-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-base.yml
40 lines (34 loc) · 981 Bytes
/
travis-base.yml
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
31
32
33
34
35
36
37
38
39
language: c
dist: xenial
addons:
apt:
packages:
- gcc-aarch64-linux-gnu
- gcc-arm-linux-gnueabihf
- patch
- quilt
- wget
env:
global:
- KDIR=/tmp/kernel
install:
- if [[ "${KERNEL_VERSION}" == *-rc* ]]; then
KERNEL_URL=https://git.kernel.org/torvalds/t/linux-${KERNEL_VERSION}.tar.gz;
else
KERNEL_URL=https://www.kernel.org/pub/linux/kernel/v${KERNEL_VERSION::1}.x/linux-${KERNEL_VERSION}.tar.xz;
fi
- wget -O kernel.tar.xz ${KERNEL_URL} && mkdir ${KDIR} && tar -C ${KDIR} --strip=1 -xf kernel.tar.xz
before_script:
- if [[ "${ARCH}" == "arm64" ]]; then
export CROSS_COMPILE=aarch64-linux-gnu-;
else
export CROSS_COMPILE=arm-linux-gnueabihf-;
fi
- pushd /tmp/kernel
- make -j $(nproc) ${KERNEL_DEFCONFIG}
- ./scripts/config -e CONFIG_CMA
- ./scripts/config -e CONFIG_DMA_CMA
- make -j $(nproc) olddefconfig modules_prepare
- popd
script:
- ./build.sh -r ${MALI_VERSION} -b