projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto-dpif: Avoid malloc() of "struct flow_miss".
[openvswitch]
/
rhel
/
openvswitch-kmod-rhel6.spec.in
diff --git
a/rhel/openvswitch-kmod-rhel6.spec.in
b/rhel/openvswitch-kmod-rhel6.spec.in
index 3a1102d8642b77aa4cfe53fbee85ca2649f8b6d6..d165515ea038b53830cc7f1887c30ee687995dc2 100644
(file)
--- a/
rhel/openvswitch-kmod-rhel6.spec.in
+++ b/
rhel/openvswitch-kmod-rhel6.spec.in
@@
-1,7
+1,7
@@
# Spec file for Open vSwitch kernel modules on Red Hat Enterprise
# Linux 6.
# Spec file for Open vSwitch kernel modules on Red Hat Enterprise
# Linux 6.
-# Copyright (C) 2011 Nicira Networks, Inc.
+# Copyright (C) 2011
, 2012
Nicira Networks, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
@@
-26,11
+26,15
@@
BuildRequires: %kernel_module_package_buildreqs
# conflicts with the openvswitch-debuginfo package for OVS userspace).
%undefine _enable_debug_packages
# 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.
%description
Open vSwitch Linux kernel module.
@@
-51,7
+55,7
@@
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=extra/%{oname}
for flavor in %flavors_to_build ; do
make -C %{kernel_source $flavor} modules_install \
export INSTALL_MOD_DIR=extra/%{oname}
for flavor in %flavors_to_build ; do
make -C %{kernel_source $flavor} modules_install \
- M=
$PWD
/_$flavor/datapath/linux
+ M=
"`pwd`"
/_$flavor/datapath/linux
done
%clean
done
%clean