-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
60 lines (41 loc) · 2.07 KB
/
.travis.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: c
os:
- linux
before_install:
- sudo apt-get update -qq
- wget -c https://releases.linaro.org/components/toolchain/binaries/5.3-2016.02/arm-linux-gnueabihf/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz
- tar xf gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz
- export PATH=$PATH:$PWD/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/
- arm-linux-gnueabihf-gcc --version
- sudo apt-get install python3
- sudo apt-get install bc
before_script:
- export DST_PROJECT=$PWD
- export SOURCE_BRANCH="4.4.9"
- export SOURCE_VERSION="ti-r25"
- export SOURCE_REPO="linux-stable-rcn-ee"
- export SOURCE_LOCATION="https://github.com/RobertCNelson"
- wget "$SOURCE_LOCATION/$SOURCE_REPO/archive/$SOURCE_BRANCH-$SOURCE_VERSION.tar.gz"
- tar -xf $SOURCE_BRANCH-$SOURCE_VERSION.tar.gz
- export DST_KERNEL=$PWD/$SOURCE_REPO-$SOURCE_BRANCH-$SOURCE_VERSION
script:
- export ARCH=arm
- export CROSS_COMPILE=arm-linux-gnueabihf-
- cd $DST_KERNEL
- make -j3 mrproper ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-$SOURCE_VERSION
- wget -c "http://rcn-ee.net/deb/jessie-armhf/v$SOURCE_BRANCH-$SOURCE_VERSION/defconfig" -O .config
- make -j3 modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-$SOURCE_VERSION 2>&1
- cd $DST_PROJECT/
- sudo perl $DST_KERNEL/scripts/checkpatch.pl --no-tree -f slave_app/slave_app.c
- sudo perl $DST_KERNEL/scripts/checkpatch.pl --no-tree -f driver/*
- sudo perl $DST_KERNEL/scripts/checkpatch.pl --no-tree -f firmware/pru_spi_slave.c
- sudo perl $DST_KERNEL/scripts/checkpatch.pl --no-tree -f documentation/*
- make KDIR=$DST_KERNEL ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-$SOURCE_VERSION
- sudo wget -c https://raw.githubusercontent.com/RobertCNelson/tools/master/pkgs/dtc.sh
- sudo chmod +x dtc.sh
- sudo ./dtc.sh
- cd $DST_PROJECT/DTS/
- sudo dtc -O dtb -o SPI0_slave-00A0.dtbo -b 0 -@ SPI0_slave.dts
- sudo dtc -O dtb -o SPI1_slave-00A0.dtbo -b 0 -@ SPI1_slave.dts
- cd $DST_PROJECT/python_lib/
- sudo python3 setup.py install