Skip to content

Commit 102cec8

Browse files
martinxu9ovsblp
authored andcommitted
rhel: rename openvswitch kmod rhel6 spec file
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 <[email protected]> Reviewed-by: Flavio Leitner <[email protected]> CC: Greg Rose <[email protected]> CC: Ben Pfaff <[email protected]> CC: Aaron Conole <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
1 parent 19041a0 commit 102cec8

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

Documentation/intro/install/rhel.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,16 @@ the unit tests, run::
197197
Kernel Module
198198
~~~~~~~~~~~~~
199199

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

203-
$ rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec
202+
$ rpmbuild -bb rhel/kmod-openvswitch-rhel6.spec
204203

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

207206
$ rpmbuild -bb \
208207
-D "kversion 2.6.32-131.6.1.el6.x86_64" \
209208
-D "kflavors default debug kdump" \
210-
rhel/openvswitch-kmod-rhel6.spec
209+
rhel/kmod-openvswitch-rhel6.spec
211210

212211
This produces an "kmod-openvswitch" RPM for each kernel variant, in this
213212
example: "kmod-openvswitch", "kmod-openvswitch-debug", and

poc/playbook-centos-builder.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
chdir: /git/ovs/rhel
4242
with_items:
4343
- openvswitch.spec
44-
- openvswitch-kmod-rhel6.spec
44+
- kmod-openvswitch-rhel6.spec
4545

4646
- name: Install build dependencies specified from spec files
4747
shell: echo "y" | yum-builddep /tmp/{{item}}
4848
with_items:
4949
- openvswitch.spec
50-
- openvswitch-kmod-rhel6.spec
50+
- kmod-openvswitch-rhel6.spec
5151

5252
- name: Create rpm dev tree
5353
command: rpmdev-setuptree
@@ -81,15 +81,15 @@
8181
line: "Release: {{ ansible_local.builder.release }}"
8282
with_items:
8383
- openvswitch.spec
84-
- openvswitch-kmod-rhel6.spec
84+
- kmod-openvswitch-rhel6.spec
8585

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

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

rhel/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openvswitch-dkms.spec
22
openvswitch-kmod-rhel5.spec
3-
openvswitch-kmod-rhel6.spec
3+
kmod-openvswitch-rhel6.spec
44
openvswitch-kmod-fedora.spec
55
openvswitch.spec
66
openvswitch-fedora.spec

rhel/automake.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ EXTRA_DIST += \
1515
rhel/etc_sysconfig_network-scripts_ifup-ovs \
1616
rhel/openvswitch-dkms.spec \
1717
rhel/openvswitch-dkms.spec.in \
18-
rhel/openvswitch-kmod-rhel6.spec \
19-
rhel/openvswitch-kmod-rhel6.spec.in \
18+
rhel/kmod-openvswitch-rhel6.spec \
19+
rhel/kmod-openvswitch-rhel6.spec.in \
2020
rhel/openvswitch-kmod.files \
2121
rhel/openvswitch-kmod-fedora.spec \
2222
rhel/openvswitch-kmod-fedora.spec.in \
@@ -48,7 +48,7 @@ update_rhel_spec = \
4848
$(srcdir)/rhel/openvswitch-dkms.spec: rhel/openvswitch-dkms.spec.in $(top_builddir)/config.status
4949
$(update_rhel_spec)
5050

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

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

0 commit comments

Comments
 (0)