From e8a153c8c561f7b845219bf2c3247e4a35492f8f Mon Sep 17 00:00:00 2001 From: Zhijiang Hu Date: Fri, 17 Nov 2017 03:16:55 -0500 Subject: [PATCH] Add related symbolic link to pass DPDK compile Change-Id: I385c3cad80a9b1365fc3c3ad5b1334d66dfc8ab8 Close-Bug: 1732853 --- contrib/template-override/ovs-dpdk.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/template-override/ovs-dpdk.j2 b/contrib/template-override/ovs-dpdk.j2 index 7dea1b7fd2..42520022e3 100644 --- a/contrib/template-override/ovs-dpdk.j2 +++ b/contrib/template-override/ovs-dpdk.j2 @@ -46,6 +46,11 @@ {{ macros.install_packages(ovs_dpdk_packages | customizable("packages")) }} +{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} +RUN mkdir -p /lib/modules/$(uname -r) \ + && ln -s /usr/src/kernels/$(uname -r) /lib/modules/$(uname -r)/build +{% endif %} + ADD plugins-archive / RUN ln -s /plugins/ovsdpdk-plugin-ovs-archive-*/ /ovs \ && ln -s /plugins/ovsdpdk-plugin-dpdk-archive-*/ /dpdk