dpdk-fm10k/.drone.yml
DataHoarder 8cf51cf870
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Update '.drone.yml'
2020-12-17 21:18:46 +00:00

37 lines
1.5 KiB
YAML

---
#Based on https://gist.github.com/WeebDataHoarder/634f2ef54e0c6cde0ccdb00e377e5e28
kind: pipeline
type: docker
name: ubuntu-20.04-make
steps:
- name: build-make
image: ubuntu:20.04
commands:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential libcap-ng0 libcap-ng-dev libssl-dev autoconf automake libtool-bin curl git-core libnuma-dev
- sed -i 's/CONFIG_RTE_FM10K_SWITCH_MANAGEMENT=.*$/CONFIG_RTE_FM10K_SWITCH_MANAGEMENT=y/g' config/common_base
- sed -i 's/CONFIG_RTE_LIBRTE_VHOST=.*$/CONFIG_RTE_LIBRTE_VHOST=y/g' config/common_base
- sed -i 's/CONFIG_RTE_LIBRTE_PMD_VHOST=.*$/CONFIG_RTE_LIBRTE_PMD_VHOST=y/g' config/common_base
- sed -i 's/CONFIG_RTE_BUILD_SHARED_LIB=.*$/CONFIG_RTE_BUILD_SHARED_LIB=n/g' config/common_base
- export DPDK_DIR="$(pwd)"
- export DPDK_TARGET="$(arch)-native-linuxapp-gcc"
- export DPDK_BUILD="$DPDK_DIR/$DPDK_TARGET"
- make config T=$DPDK_TARGET MAKE_PAUSE=n
- make install -j $(nproc) T=$DPDK_TARGET DESTDIR=/usr MAKE_PAUSE=n EXTRA_CFLAGS="-Ofast -g"
---
kind: pipeline
type: docker
name: ubuntu-20.04-meson
steps:
- name: build-meson
image: ubuntu:20.04
commands:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential libcap-ng0 libcap-ng-dev libssl-dev autoconf automake libtool-bin curl git-core libnuma-dev driverctl meson ninja-build pkgconf
- meson build -Dfm10k_switch=true
- cd build
- ninja
- ninja install
...