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} |
| 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 |
| 20 | cat > ${DEBIAN_DIR}/vpp-dpdk-dkms.dkms << _EOF_ |
| 21 | PACKAGE_VERSION="${VER}" |
| 22 | PACKAGE_NAME="vpp-dpdk-dkms" |
| 23 | CLEAN="make clean" |
| 24 | BUILT_MODULE_NAME[0]="igb_uio" |
| 25 | BUILT_MODULE_LOCATION[0]="./" |
| 26 | DEST_MODULE_LOCATION[0]="/kernel/net" |
| 27 | MAKE[1]="make" |
| 28 | AUTOINSTALL="yes" |
| 29 | _EOF_ |