X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=fuel-plugin%2Fbuild_kvm.sh;h=0ea75a0e43e131407a9d5a9e62eda75de575ecfd;hb=d746fed82003b740680434c09655d7d5e7108994;hp=a26532d6982589c0ebeb29362ddcc634b6bf298e;hpb=7b0d298c1826ff7210b859223d42136dffe7b3ce;p=kvmfornfv.git diff --git a/fuel-plugin/build_kvm.sh b/fuel-plugin/build_kvm.sh index a26532d69..0ea75a0e4 100755 --- a/fuel-plugin/build_kvm.sh +++ b/fuel-plugin/build_kvm.sh @@ -5,40 +5,18 @@ OVS_COMMIT="4ff6642f3c1dd8949c2f42b3310ee2523ee970a6" KEEP=no quirks() { - # Workaround build bug on Ubuntu 14.04 - cat < arch/x86/boot/install.sh -#!/bin/sh -cp -a -- "\$2" "\$4/vmlinuz-\$1" -EOF - # Add deprecated XFS delaylog option back in - cat <m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE); - mp->m_qflags &= ~XFS_GQUOTA_ENFD; -+ } else if (!strcmp(this_char, MNTOPT_DELAYLOG)) { -+ xfs_warn(mp, -+ "delaylog is the default now, option is deprecated."); - } else if (!strcmp(this_char, MNTOPT_DISCARD)) { - mp->m_flags |= XFS_MOUNT_DISCARD; - } else if (!strcmp(this_char, MNTOPT_NODISCARD)) { --- -1.9.1 - -EOF + # + # Apply out of tree patches + # + for i in $SRC/kvmfornfv/patches/$1/*.patch + do + if [ -f "$i" ] + then + echo "Applying: $i" + patch -p1 <$i + fi + done } for i @@ -106,7 +84,13 @@ fi fi cd kernel - quirks + # Workaround build bug on Ubuntu 14.04 + cat < arch/x86/boot/install.sh +#!/bin/sh +cp -a -- "\$2" "\$4/vmlinuz-\$1" +EOF + + quirks kernel # Configure the kernel cp $CONFIG .config @@ -131,17 +115,7 @@ fi 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 + quirks ovs ./boot.sh ./configure --with-linux=$SRC/kvmfornfv/kernel