Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | VER=$1 |
| 4 | DPDK_ROOT=../../$2/dpdk-${VER} |
| 5 | DEBIAN_DIR=../build-root/deb/debian |
| 6 | SRC_DIR=/usr/src/vpp-dpdk-dkms-${VER}/ |
| 7 | |
| 8 | |
| 9 | cat > ${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 Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 12 | ${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 |
| 19 | cat > ${DEBIAN_DIR}/vpp-dpdk-dkms.dkms << _EOF_ |
| 20 | PACKAGE_VERSION="${VER}" |
| 21 | PACKAGE_NAME="vpp-dpdk-dkms" |
| 22 | CLEAN="make clean" |
| 23 | BUILT_MODULE_NAME[0]="igb_uio" |
| 24 | BUILT_MODULE_LOCATION[0]="./" |
| 25 | DEST_MODULE_LOCATION[0]="/kernel/net" |
| 26 | MAKE[1]="make" |
| 27 | AUTOINSTALL="yes" |
| 28 | _EOF_ |