blob: e512850ef8042a1efef2364f9fbb46ef46b0c324 [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}
12${DPDK_ROOT}/lib/librte_eal/common/include/rte_pci_dev_ids.h ${SRC_DIR}
13${DPDK_ROOT}/lib/librte_eal/linuxapp/igb_uio/igb_uio.c ${SRC_DIR}
14${DPDK_ROOT}/lib/librte_eal/linuxapp/igb_uio/compat.h ${SRC_DIR}
15../../dpdk/dkms/Makefile ${SRC_DIR}
16_EOF_
17
18
19# dkms config
20cat > ${DEBIAN_DIR}/vpp-dpdk-dkms.dkms << _EOF_
21PACKAGE_VERSION="${VER}"
22PACKAGE_NAME="vpp-dpdk-dkms"
23CLEAN="make clean"
24BUILT_MODULE_NAME[0]="igb_uio"
25BUILT_MODULE_LOCATION[0]="./"
26DEST_MODULE_LOCATION[0]="/kernel/net"
27MAKE[1]="make"
28AUTOINSTALL="yes"
29_EOF_