diff options
author | Alexey I. Froloff <raorn@altlinux.org> | 2011-09-07 13:02:58 +0400 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-09-08 12:45:23 -0700 |
commit | 6c9b8ee4d0cae3acde728945f3a222b62a643304 (patch) | |
tree | 3e021048feeea69f775d6c938756cde0fa478581 /rhel | |
parent | 1821f032e0b621dad19750da2fc8f346c6007a7e (diff) |
rhel: add ability to build kmod packages for arbitrary kernel version/variant(s)
Usage:
rpmbuild --rebuild \
-D 'kversion KERNEL_VERSION' \
-D 'kflavors FLAVORS TO BUILD' \
openvswitch-kmod-VERSION-RELEASE.src.rpm
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-kmod-rhel6.spec.in | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rhel/openvswitch-kmod-rhel6.spec.in b/rhel/openvswitch-kmod-rhel6.spec.in index 3a1102d8..443ddc53 100644 --- a/rhel/openvswitch-kmod-rhel6.spec.in +++ b/rhel/openvswitch-kmod-rhel6.spec.in @@ -26,11 +26,15 @@ BuildRequires: %kernel_module_package_buildreqs # conflicts with the openvswitch-debuginfo package for OVS userspace). %undefine _enable_debug_packages -# Uncomment to build "debug" packages -#kernel_module_package default debug +# Use -D 'kversion 2.6.32-131.6.1.el6.x86_64' to build package +# for specified kernel version. +%{?kversion:%define kernel_version %kversion} -# Build only for standard kernel variant(s) -%kernel_module_package -n %{oname} default +# Use -D 'kflavors default debug kdump' to build packages for +# specified kernel variants. +%{!?kflavors:%define kflavors default} + +%kernel_module_package -n %{oname} %kflavors %description Open vSwitch Linux kernel module. |