#define buildforkernels akmod
%bcond_with debug
+%bcond_with debuginfo
Name: %{module}-kmod
%define debug --disable-debug
%endif
+%if %{with debuginfo}
+ %define debuginfo --enable-debuginfo
+%else
+ %define debuginfo --disable-debuginfo
+%endif
+
#
# Allow the overriding of spl locations
#
--with-linux-obj=%{kobj} \
--with-spl="%{spldir}" \
--with-spl-obj="%{splobj}" \
- %{debug}
+ %{debug} \
+ %{debuginfo}
make %{?_smp_mflags}
cd ..
done