From d25f207637b3f6784195ca80a855da3593dab3b8 Mon Sep 17 00:00:00 2001 From: Donald Dugger Date: Thu, 28 Apr 2016 21:39:53 +0000 Subject: Add patch to Linux 4.4 to support OVS Given that OVS doesn't support Linux 4.4 yet we need to add a patch to the OVS sources so that we can build a 4.4 version of the OVS loadable kernel module that works with the RT Linux 4.4 kernel used in OPNFV. The directory `patches/ovs' contains patches (currently only one) that are applied against the OVS tree. The Fuel build script is modified to apply all of the patches in this directory to the OVS tree. Then a working OVS KLM is created that is then inserted into the RT kernel DEB package so that the end result is an RT kernel that supports OVS. Upstream status: NA Change-Id: I361f92526fb4bcafbeab9ce21570202f4aad1632 Signed-off-by: Don Dugger --- fuel-plugin/build_kvm.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'fuel-plugin') diff --git a/fuel-plugin/build_kvm.sh b/fuel-plugin/build_kvm.sh index 2c392922a..f5854d89f 100755 --- a/fuel-plugin/build_kvm.sh +++ b/fuel-plugin/build_kvm.sh @@ -38,7 +38,7 @@ EOF } KVM_COMMIT="" -OVS_COMMIT="" +OVS_COMMIT="4ff6642f3c1dd8949c2f42b3310ee2523ee970a6" KEEP=no for i do @@ -821,6 +821,19 @@ fi else git reset --hard fi + + # + # Apply out of tree patches + # + for i in $SRC/kvmfornfv/patches/ovs/*.patch + do + if [ -f "$i" ] + then + echo "Applying: $i" + patch -p1 <$i + fi + done + ./boot.sh ./configure --with-linux=$SRC/kvmfornfv/kernel make -- cgit 1.2.3-korg