diff options
author | Thomas Graf <tgraf@noironetworks.com> | 2015-01-09 16:13:06 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@noironetworks.com> | 2015-01-10 00:54:18 +0100 |
commit | d06c1ff8ea022f616fbb47b756a29964be037a97 (patch) | |
tree | b9da139b88766bdf9fd50429fd9eb578a3b23265 /Vagrantfile | |
parent | ecf68fa449355e28c1d87d3e1d68f40e1603e980 (diff) | |
download | openvswitch-d06c1ff8ea022f616fbb47b756a29964be037a97.tar.gz |
vagrant: Build kernel module RPM
Installs the kernel-devel package of the currently running kernel and
builds the kmod RPM in the "install_rpm" phase.
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'Vagrantfile')
-rw-r--r-- | Vagrantfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile index 82b157cd5..1cacd3b2d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,7 +8,8 @@ $bootstrap_fedora = <<SCRIPT yum -y update yum -y install autoconf automake openssl-devel libtool \ python-twisted-core python-zope-interface PyQt4 \ - desktop-file-utils groff graphviz rpmdevtools + desktop-file-utils groff graphviz rpmdevtools \ + kernel-devel-`uname -r` echo "search extra update built-in" >/etc/depmod.d/search_path.conf cd /vagrant ./boot.sh @@ -31,6 +32,7 @@ PACKAGE_VERSION=`autom4te -l Autoconf -t 'AC_INIT:$2' /vagrant/configure.ac` make && make dist rpmdev-setuptree cp openvswitch-$PACKAGE_VERSION.tar.gz $HOME/rpmbuild/SOURCES +rpmbuild --bb -D "kversion `uname -r`" /vagrant/rhel/openvswitch-kmod-fedora.spec rpmbuild --bb --without check /vagrant/rhel/openvswitch-fedora.spec sudo rpm -e openvswitch sudo rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-$PACKAGE_VERSION-1.fc20.x86_64.rpm |