.travis.yml 6.52 KB
Newer Older
1 2
language: c
dist: xenial
Roman Stratiienko's avatar
Roman Stratiienko committed
3
cache: ccache
4 5 6 7 8

addons:
  apt:
    packages:
      - gcc-aarch64-linux-gnu
Jan Kiszka's avatar
Jan Kiszka committed
9
      - libc6-dev-arm64-cross
10
      - gcc-arm-linux-gnueabihf
Jan Kiszka's avatar
Jan Kiszka committed
11
      - libc6-dev-armhf-cross
12 13 14 15 16 17 18
      - patch
      - quilt
      - wget

env:
  global:
    - KDIR=/tmp/kernel
Roman Stratiienko's avatar
Roman Stratiienko committed
19 20
    - USE_CCACHE=1
    - CCACHE_MAXSIZE=400M
21 22 23 24 25 26 27 28 29 30 31 32

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
  - wget -O /tmp/ipipe.patch ${IPIPE_URL}

before_script:
  - case "${ARCH}" in
Jan Kiszka's avatar
Jan Kiszka committed
33 34 35
      "arm64")
          export CROSS_COMPILE=aarch64-linux-gnu-
          export CONFIGURE_OPTS="--host=aarch64-linux-gnu --with-cc=aarch64-linux-gnu-gcc"
36
          ;;
Jan Kiszka's avatar
Jan Kiszka committed
37 38 39
      "arm"  )
          export CROSS_COMPILE=arm-linux-gnueabihf-
          export CONFIGURE_OPTS="--host=arm-linux-gnueabihf --with-cc=arm-linux-gnueabihf-gcc"
40
          ;;
Jan Kiszka's avatar
Jan Kiszka committed
41 42 43
      "x86"  )
          export CROSS_COMPILE=
          export CONFIGURE_OPTS="--enable-dlopen-libs --enable-lazy-setsched"
44 45
          ;;
    esac
Roman Stratiienko's avatar
Roman Stratiienko committed
46 47 48 49
  - mkdir ~/ccache
  - ln -s /usr/bin/ccache ~/ccache/aarch64-linux-gnu-gcc
  - ln -s /usr/bin/ccache ~/ccache/arm-linux-gnueabihf-gcc
  - export PATH=~/ccache:$PATH
50 51 52 53
  - pushd ${KDIR}
  - make -j $(nproc) ${KERNEL_DEFCONFIG}
  - ./scripts/config -e IPIPE
  - ./scripts/config -e XENOMAI
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  - ./scripts/config -e XENO_OPT_SCHED_CLASSES
  - ./scripts/config -e XENO_OPT_SCHED_WEAK
  - ./scripts/config -e XENO_OPT_SCHED_TP
  - ./scripts/config -e XENO_OPT_SCHED_SPORADIC
  - ./scripts/config -e XENO_OPT_SCHED_QUOTA
  - ./scripts/config -e XENO_OPT_SHIRQ
  - ./scripts/config -e XENO_OPT_SCALABLE_SCHED
  - ./scripts/config -e XENO_OPT_DEBUG
  - ./scripts/config -e XENO_OPT_DEBUG_COBALT
  - ./scripts/config -e XENO_OPT_DEBUG_MEMORY
  - ./scripts/config -e XENO_OPT_DEBUG_CONTEXT
  - ./scripts/config -e XENO_OPT_DEBUG_USER
  - ./scripts/config -e XENO_OPT_DEBUG_POSIX_SYNCHRO
  - ./scripts/config -e XENO_OPT_DEBUG_LEGACY
  - ./scripts/config -e XENO_OPT_DEBUG_TRACE_RELAX
  - ./scripts/config -e XENO_DRIVERS_16550A
  - ./scripts/config -e XENO_DRIVERS_16550A_ANY
  - ./scripts/config -e XENO_DRIVERS_16550A_PCI
  - ./scripts/config -e XENO_DRIVERS_16550A_PCI_MOXA
  - ./scripts/config -e XENO_DRIVERS_IMX_UART
  - ./scripts/config -e XENO_DRIVERS_RTDMTEST
  - ./scripts/config -e XENO_DRIVERS_CAN
  - ./scripts/config -e XENO_DRIVERS_CAN_LOOPBACK
  - ./scripts/config -e XENO_DRIVERS_CAN_VIRT
  - ./scripts/config -e XENO_DRIVERS_CAN_FLEXCAN
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_ISA
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_MEM
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_PEAK_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_ADV_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_PLX_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_EMS_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_ESD_PCI
  - ./scripts/config -e XENO_DRIVERS_CAN_SJA1000_PEAK_DNG
  - ./scripts/config -m XENO_DRIVERS_NET
  - ./scripts/config -e XENO_DRIVERS_RTNET_CHECKED
  - ./scripts/config -e XENO_DRIVERS_NET_ETH_P_ALL
  - ./scripts/config -e XENO_DRIVERS_NET_RTIPV4_NETROUTING
  - ./scripts/config -e XENO_DRIVERS_NET_RTIPV4_ROUTER
  - ./scripts/config -e XENO_DRIVERS_NET_RTIPV4_DEBUG
  - ./scripts/config -m XENO_DRIVERS_NET_RTIPV4_TCP
  - ./scripts/config -e XENO_DRIVERS_NET_RTIPV4_TCP_ERROR_INJECTION
  - ./scripts/config -m XENO_DRIVERS_NET_NOMAC
  - ./scripts/config -e XENO_DRIVERS_NET_RTCFG_DEBUG
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_PCNET32
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_TULIP
  - ./scripts/config -e XENO_DRIVERS_NET_DRV_EEPRO100_DBG
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_E1000E
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_NATSEMI
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_VIA_RHINE
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_IGB
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_R8169
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_SMC91111
  - ./scripts/config -e XENO_DRIVERS_NET_EXP_DRIVERS
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_3C59X
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_E1000_NEW
  - ./scripts/config -m XENO_DRIVERS_NET_DRV_RT2500
  - ./scripts/config -m XENO_DRIVERS_NET_ADDON_RTCAP
  - ./scripts/config -m XENO_DRIVERS_NET_ADDON_PROXY
  - ./scripts/config -e XENO_DRIVERS_NET_ADDON_PROXY_ARP
115 116 117
  - ./scripts/config -e XENO_DRIVERS_ANALOGY
  - ./scripts/config -e XENO_DRIVERS_ANALOGY_DEBUG
  - ./scripts/config -e XENO_DRIVERS_ANALOGY_DEBUG_FTRACE
118
  - ./scripts/config -e XENO_DRIVERS_ANALOGY_FAKE
119 120
  - ./scripts/config -e XENO_DRIVERS_ANALOGY_NI_PCIMIO
  - ./scripts/config -e XENO_DRIVERS_ANALOGY_S526
121 122
  - ./scripts/config -e XENO_DRIVERS_RTIPC
  - ./scripts/config -e XENO_DRIVERS_UDD
123
  - ./scripts/config -e XENO_DRIVERS_GPIO
124 125
  - ./scripts/config -e XENO_DRIVERS_GPIO_BCM2835
  - ./scripts/config -e XENO_DRIVERS_GPIO_MXC
126
  - ./scripts/config -e XENO_DRIVERS_GPIO_SUN8I_H3
127 128
  - ./scripts/config -e XENO_DRIVERS_GPIO_ZYNQ7000
  - ./scripts/config -e XENO_DRIVERS_GPIO_XILINX
129 130
  - ./scripts/config -e XENO_DRIVERS_GPIO_DEBUG
  - ./scripts/config -e XENO_DRIVERS_GPIOPWM
131 132 133
  - ./scripts/config -e XENO_DRIVERS_SPI_BCM2835
  - ./scripts/config -e XENO_DRIVERS_SPI_SUN6I
  - ./scripts/config -e XENO_DRIVERS_SPI_DEBUG
134 135 136 137

  - popd

script:
Jan Kiszka's avatar
Jan Kiszka committed
138 139
  - scripts/prepare-kernel.sh --ipipe=/tmp/ipipe.patch --arch=${ARCH} --linux=${KDIR}
  - pushd ${KDIR}
140 141
  - make -j $(nproc) olddefconfig
  - make -j $(nproc) all
Jan Kiszka's avatar
Jan Kiszka committed
142 143 144 145 146
  - popd

  - scripts/bootstrap
  - ./configure --enable-smp ${CONFIGURE_OPTS}
  - make -j $(nproc)
Roman Stratiienko's avatar
Roman Stratiienko committed
147
  - ccache -s
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170

matrix:
  include:
    - env:
      - ARCH: arm
        KERNEL_VERSION: 4.14.85
        KERNEL_DEFCONFIG: multi_v7_defconfig
        IPIPE_URL: https://xenomai.org/downloads/ipipe/v4.x/arm/ipipe-core-4.14.85-arm-6.patch
    - env:
      - ARCH: arm
        KERNEL_VERSION: 4.1.18
        KERNEL_DEFCONFIG: multi_v7_defconfig
        IPIPE_URL: https://xenomai.org/downloads/ipipe/v4.x/arm/older/ipipe-core-4.1.18-arm-9.patch
    - env:
      - ARCH: x86
        KERNEL_VERSION: 4.14.89
        KERNEL_DEFCONFIG: x86_64_defconfig
        IPIPE_URL: https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.14.89-x86-2.patch
    - env:
      - ARCH: x86
        KERNEL_VERSION: 4.4.166
        KERNEL_DEFCONFIG: i386_defconfig
        IPIPE_URL: https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.4.166-x86-12.patch