]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- simplify alt_kernel name picking logic
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Oct 2011 15:35:04 +0000 (15:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel.spec -> 1.991

kernel.spec

index a198d6c713c9eee2e96513935dc9bfb0824aa40c..ea2f9504db29beaba23a1e76adbaf330ce0a83bb 100644 (file)
 
 %define                module_init_tools_ver   3.16
 
-%if %{with myown}
-%if "%{_alt_kernel}" == ""
+%define                __alt_kernel    %{?with_pax:pax}%{!?with_grsecurity:nogrsecurity}%{?with_pae:pae}
+%if "%{__alt_kernel}" != ""
+       %define         alt_kernel      %{__alt_kernel}
+%endif
+
+# these override whatever name was picked from bconds
+%if %{with myown} && "%{_alt_kernel}" == ""
 %define                alt_kernel      myown
 %endif
-%else # not myown:
-%if %{with vanilla}
-%define                alt_kernel      vanilla
-%else # not vanilla:
 %if %{with rescuecd}
 %define                alt_kernel      rescuecd
-%else # not rescuecd:
-%define                __alt_kernel    %{?with_pax:pax}%{!?with_grsecurity:nogrsecurity}%{?with_pae:pae}
-%if "%{__alt_kernel}" != ""
-%define                alt_kernel      %{__alt_kernel}
 %endif
-%endif # not rescuecd
-%endif # not vanilla
-%endif # not myown
+%if %{with vanilla}
+%define                alt_kernel      vanilla
+%else
 
 # kernel release (used in filesystem and eventually in uname -r)
 # modules will be looked from /lib/modules/%{kernel_release}
This page took 0.062126 seconds and 4 git commands to generate.