#
# TODO:
+# - test pax stuff (btw. tested ok in softmode)
+# - prepare config for non SEGMEXEC capable archs (ie not x86/32bit)
# - patch scripts/Makefile.xen not to require bash
# - make PAE usage configurable when Xen is on
# ALL
%bcond_without pcmcia # don't build pcmcia
%bcond_with grsec_full # build full grsecurity
+%bcond_with pax # build PaX and full grsecurity
%bcond_with verbose # verbose build (V=1)
%bcond_with xen0 # added Xen0 support
%bcond_with xenU # added XenU support
%if %{without grsecurity}
%undefine with_grsec_full
%undefine with_grsec_minimal
+%undefine with_pax
+%endif
+
+%if %{with pax}
+%undefine with_grsec_minimal
+%undefine with_grsec_full
+%define with_grsecurity 1
%endif
%if %{with grsec_full}
%if %{with grsec_minimal}
%undefine with_grsec_full
+%undefine with_pax
%define with_grsecurity 1
%endif
%define _udev_ver 071
%define _mkvmlinuz_ver 1.3
-%define _rel 1
+%define _rel 2
%define _netfilter_snap 20060504
%define _nf_hipac_ver 0.9.1
Summary(de): Der Linux-Kernel (Kern des Linux-Betriebssystems)
Summary(fr): Le Kernel-Linux (La partie centrale du systeme)
Summary(pl): JĀ±dro Linuksa
-Name: kernel%{?with_grsec_full:-grsecurity}%{?with_xen0:-xen0}%{?with_xenU:-xenU}
+Name: kernel%{?with_pax:-pax}%{?with_grsec_full:-grsecurity}%{?with_xen0:-xen0}%{?with_xenU:-xenU}
%define _basever 2.6.16
%define _postver .27
Version: %{_basever}%{_postver}
Source46: kernel-xen0.config
Source47: kernel-xenU.config
Source48: kernel-xen-extra.config
-
+Source49: kernel-grsec+pax.config
###
# Patches
###
%patch9999 -p1
%endif
+%if %{with pax}
+%patch9999 -p1
+%endif
+
%ifarch ppc ppc64
%patch200 -p1
%endif
cat %{SOURCE44} >> arch/%{_target_base_arch}/defconfig
%if %{with grsecurity}
- cat %{SOURCE45} >> arch/%{_target_base_arch}/defconfig
+ %if %{with pax}
+ cat %{SOURCE49} >> arch/%{_target_base_arch}/defconfig
+ %else
+ cat %{SOURCE45} >> arch/%{_target_base_arch}/defconfig
+ %endif
%endif
%if %{with xen0} || %{with xenU}
title='PLD Linux'
fi
- ext='%{?with_grsec_full:grsecurity}%{?with_xen0:Xen0}%{?with_xenU:XenU}'
+ ext='%{?with_pax:pax}%{?with_grsec_full:grsecurity}%{?with_xen0:Xen0}%{?with_xenU:XenU}'
if [ "$ext" ]; then
title="$title $ext"
fi
title='PLD Linux'
fi
- ext='%{?with_grsec_full:grsecurity}%{?with_xen0:Xen0}%{?with_xenU:XenU}'
+ ext='%{?with_pax:pax}%{?with_grsec_full:grsecurity}%{?with_xen0:Xen0}%{?with_xenU:XenU}'
if [ "$ext" ]; then
title="$title $ext"
fi