Skip to content

Commit

Permalink
rhel: rename openvswitch kmod rhel6 spec file
Browse files Browse the repository at this point in the history
This patch only affects rhel6 spec file.

The rhel6 kmod spec file is renamed from openvswitch-kmod-rhel6.spec
to kmod-openvswitch-rhel6.spec . This is to prepare for the next
patches to support building multiple kernel versions in the main
package. The rename makes the spec file consistent with the resulted
kmod-openvswitch-<version>.rpm, which is the real package with
kernel module files.

Signed-off-by: Martin Xu <martinxu9.ovs@gmail.com>
Reviewed-by: Flavio Leitner <fbl@redhat.com>
CC: Greg Rose <gvrose8192@gmail.com>
CC: Ben Pfaff <blp@ovn.org>
CC: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
martinxu9ovs authored and blp committed Jul 13, 2018
1 parent 19041a0 commit 102cec8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
7 changes: 3 additions & 4 deletions Documentation/intro/install/rhel.rst
Expand Up @@ -197,17 +197,16 @@ the unit tests, run::
Kernel Module
~~~~~~~~~~~~~

On RHEL 6, to build the Open vSwitch kernel module, copy
rhel/openvswitch-kmod.files into the RPM sources directory and run::
On RHEL 6, to build the Open vSwitch kernel module run::

$ rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec
$ rpmbuild -bb rhel/kmod-openvswitch-rhel6.spec

You might have to specify a kernel version and/or variants, e.g.:

$ rpmbuild -bb \
-D "kversion 2.6.32-131.6.1.el6.x86_64" \
-D "kflavors default debug kdump" \
rhel/openvswitch-kmod-rhel6.spec
rhel/kmod-openvswitch-rhel6.spec

This produces an "kmod-openvswitch" RPM for each kernel variant, in this
example: "kmod-openvswitch", "kmod-openvswitch-debug", and
Expand Down
8 changes: 4 additions & 4 deletions poc/playbook-centos-builder.yml
Expand Up @@ -41,13 +41,13 @@
chdir: /git/ovs/rhel
with_items:
- openvswitch.spec
- openvswitch-kmod-rhel6.spec
- kmod-openvswitch-rhel6.spec

- name: Install build dependencies specified from spec files
shell: echo "y" | yum-builddep /tmp/{{item}}
with_items:
- openvswitch.spec
- openvswitch-kmod-rhel6.spec
- kmod-openvswitch-rhel6.spec

- name: Create rpm dev tree
command: rpmdev-setuptree
Expand Down Expand Up @@ -81,15 +81,15 @@
line: "Release: {{ ansible_local.builder.release }}"
with_items:
- openvswitch.spec
- openvswitch-kmod-rhel6.spec
- kmod-openvswitch-rhel6.spec

- name: Build Open vSwitch user space rpms
command: rpmbuild -bb --without check rhel/openvswitch.spec
args:
chdir: "{{SOURCE}}/openvswitch-{{version.stdout}}"

- name: Build Open vSwitch kmod rpms (only for currently loaded kernel)
command: rpmbuild -bb --without check rhel/openvswitch-kmod-rhel6.spec
command: rpmbuild -bb --without check rhel/kmod-openvswitch-rhel6.spec
args:
chdir: "{{SOURCE}}/openvswitch-{{version.stdout}}"

Expand Down
2 changes: 1 addition & 1 deletion rhel/.gitignore
@@ -1,6 +1,6 @@
openvswitch-dkms.spec
openvswitch-kmod-rhel5.spec
openvswitch-kmod-rhel6.spec
kmod-openvswitch-rhel6.spec
openvswitch-kmod-fedora.spec
openvswitch.spec
openvswitch-fedora.spec
Expand Down
6 changes: 3 additions & 3 deletions rhel/automake.mk
Expand Up @@ -15,8 +15,8 @@ EXTRA_DIST += \
rhel/etc_sysconfig_network-scripts_ifup-ovs \
rhel/openvswitch-dkms.spec \
rhel/openvswitch-dkms.spec.in \
rhel/openvswitch-kmod-rhel6.spec \
rhel/openvswitch-kmod-rhel6.spec.in \
rhel/kmod-openvswitch-rhel6.spec \
rhel/kmod-openvswitch-rhel6.spec.in \
rhel/openvswitch-kmod.files \
rhel/openvswitch-kmod-fedora.spec \
rhel/openvswitch-kmod-fedora.spec.in \
Expand Down Expand Up @@ -48,7 +48,7 @@ update_rhel_spec = \
$(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status
$(update_rhel_spec)

$(srcdir)/rhel/openvswitch-kmod-rhel6.spec: rhel/openvswitch-kmod-rhel6.spec.in $(top_builddir)/config.status
$(srcdir)/rhel/kmod-openvswitch-rhel6.spec: rhel/kmod-openvswitch-rhel6.spec.in $(top_builddir)/config.status
$(update_rhel_spec)

$(srcdir)/rhel/openvswitch-kmod-fedora.spec: rhel/openvswitch-kmod-fedora.spec.in $(top_builddir)/config.status
Expand Down
File renamed without changes.

0 comments on commit 102cec8

Please sign in to comment.