blob: f83055882b98874d416be5f4d0cde6282bdfa80e [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001#!/bin/sh
2
3VER=$1
4DPDK_ROOT=../../$2/dpdk-${VER}
5DEBIAN_DIR=../build-root/deb/debian
6SRC_DIR=/usr/src/vpp-dpdk-dkms-${VER}/
7
8
9cat > ${DEBIAN_DIR}/vpp-dpdk-dkms.install << _EOF_
10${DPDK_ROOT}/lib/librte_eal/common/include/rte_pci_dev_feature_defs.h ${SRC_DIR}
11${DPDK_ROOT}/lib/librte_eal/common/include/rte_pci_dev_features.h ${SRC_DIR}
Ed Warnickecb9cada2015-12-08 15:45:58 -070012${DPDK_ROOT}/lib/librte_eal/linuxapp/igb_uio/igb_uio.c ${SRC_DIR}
13${DPDK_ROOT}/lib/librte_eal/linuxapp/igb_uio/compat.h ${SRC_DIR}
14../../dpdk/dkms/Makefile ${SRC_DIR}
15_EOF_
16
17
18# dkms config
19cat > ${DEBIAN_DIR}/vpp-dpdk-dkms.dkms << _EOF_
20PACKAGE_VERSION="${VER}"
21PACKAGE_NAME="vpp-dpdk-dkms"
22CLEAN="make clean"
23BUILT_MODULE_NAME[0]="igb_uio"
24BUILT_MODULE_LOCATION[0]="./"
25DEST_MODULE_LOCATION[0]="/kernel/net"
26MAKE[1]="make"
27AUTOINSTALL="yes"
28_EOF_