diff options
author | Kyle McMartin <kyle@redhat.com> | 2013-06-12 13:14:31 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@redhat.com> | 2013-06-12 13:28:59 -0400 |
commit | bc5f99d50a38dbde20f7e1bdb25eb1315ee983ad (patch) | |
tree | 48b03baa483a0edaf265ef4ed5ea49fcf77d85cc /kernel.spec | |
parent | 1e99e37726d99dc5110b7925f6d946a743850095 (diff) | |
download | kernel-bc5f99d50a38dbde20f7e1bdb25eb1315ee983ad.tar.gz kernel-bc5f99d50a38dbde20f7e1bdb25eb1315ee983ad.tar.xz kernel-bc5f99d50a38dbde20f7e1bdb25eb1315ee983ad.zip |
Merge ARM lpae and i686 PAE flavours
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 74 |
1 files changed, 35 insertions, 39 deletions
diff --git a/kernel.spec b/kernel.spec index a4e9240c4..312018b42 100644 --- a/kernel.spec +++ b/kernel.spec @@ -114,7 +114,7 @@ Summary: The Linux kernel %define with_up %{?_without_up: 0} %{?!_without_up: 1} # kernel-smp (only valid for ppc 32-bit) %define with_smp %{?_without_smp: 0} %{?!_without_smp: 1} -# kernel-PAE (only valid for i686) +# kernel PAE (only valid for i686 (PAE) and ARM (lpae)) %define with_pae %{?_without_pae: 0} %{?!_without_pae: 1} # kernel-debug %define with_debug %{?_without_debug: 0} %{?!_without_debug: 1} @@ -132,8 +132,6 @@ Summary: The Linux kernel %define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1} # Want to build a the vsdo directories installed %define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1} -# ARM Cortex-A15 support with LPAE and HW Virtualisation -%define with_lpae %{?_without_lpae: 0} %{?!_without_lpae: 1} # # Additional options for user-friendly one-off kernel building: # @@ -242,16 +240,11 @@ Summary: The Linux kernel %endif %define debuginfodir /usr/lib/debug -# kernel-PAE is only built on i686. -%ifnarch i686 +# kernel PAE is only built on i686 and ARMv7. +%ifnarch i686 armv7hl %define with_pae 0 %endif -# kernel up (unified kernel target), unified LPAE are only built on armv7 hfp -%ifnarch armv7hl -%define with_lpae 0 -%endif - # if requested, only build base kernel %if %{with_baseonly} %define with_smp 0 @@ -333,6 +326,7 @@ Summary: The Linux kernel %ifarch %{all_x86} %define asmarch x86 %define hdrarch i386 +%define pae PAE %define all_arch_configs kernel-%{version}-i?86*.config %define image_install_path boot %define kernel_image arch/x86/boot/bzImage @@ -380,6 +374,7 @@ Summary: The Linux kernel %define image_install_path boot %define asmarch arm %define hdrarch arm +%define pae lpae %define make_target bzImage %define kernel_image arch/arm/boot/zImage # we only build headers/perf/tools on the base arm arches @@ -1017,19 +1012,29 @@ hyperthreading technology. Install the kernel-smp package if your machine uses two or more CPUs. +%ifarch %{ix86} %define variant_summary The Linux kernel compiled for PAE capable machines -%kernel_variant_package PAE -%description PAE +%kernel_variant_package %{pae} +%description %{pae} This package includes a version of the Linux kernel with support for up to 64GB of high memory. It requires a CPU with Physical Address Extensions (PAE). The non-PAE kernel can only address up to 4GB of memory. Install the kernel-PAE package if your machine has more than 4GB of memory. +%endif +%ifarch armv7hl +%define variant_summary The Linux kernel compiled for Cortex-A15 +%kernel_variant_package %{pae} +%description %{pae} +This package includes a version of the Linux kernel with support for +Cortex-A15 devices with LPAE and HW virtualisation support +%endif +%endif %define variant_summary The Linux kernel compiled with extra debugging enabled for PAE capable machines -%kernel_variant_package PAEdebug +%kernel_variant_package %{pae}debug Obsoletes: kernel-PAE-debug -%description PAEdebug +%description %{pae}debug This package includes a version of the Linux kernel with support for up to 64GB of high memory. It requires a CPU with Physical Address Extensions (PAE). The non-PAE kernel can only address up to 4GB of memory. @@ -1052,12 +1057,6 @@ This variant of the kernel has numerous debugging options enabled. It should only be installed when trying to gather additional information on kernel bugs, as some of these options impact performance noticably. -%define variant_summary The Linux kernel compiled for Cortex-A15 -%kernel_variant_package lpae -%description lpae -This package includes a version of the Linux kernel with support for -Cortex-A15 devices with LPAE and HW virtualisation support - %prep # do a few sanity-checks for --with *only builds @@ -1818,15 +1817,11 @@ BuildKernel %make_target %kernel_image debug %endif %if %{with_pae_debug} -BuildKernel %make_target %kernel_image PAEdebug +BuildKernel %make_target %kernel_image %{pae}debug %endif %if %{with_pae} -BuildKernel %make_target %kernel_image PAE -%endif - -%if %{with_lpae} -BuildKernel %make_target %kernel_image lpae +BuildKernel %make_target %kernel_image %{pae} %endif %if %{with_up} @@ -1895,13 +1890,13 @@ find Documentation -type d | xargs chmod u+w %define __modsign_install_post \ if [ "%{signmodules}" -eq "1" ]; then \ if [ "%{with_pae}" -ne "0" ]; then \ - %{modsign_cmd} signing_key.priv.sign.PAE signing_key.x509.sign.PAE $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAE/ \ + %{modsign_cmd} signing_key.priv.sign.%{pae} signing_key.x509.sign.%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.%{pae}/ \ fi \ if [ "%{with_debug}" -ne "0" ]; then \ %{modsign_cmd} signing_key.priv.sign.debug signing_key.x509.sign.debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.debug/ \ fi \ if [ "%{with_pae_debug}" -ne "0" ]; then \ - %{modsign_cmd} signing_key.priv.sign.PAEdebug signing_key.x509.sign.PAEdebug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.PAEdebug/ \ + %{modsign_cmd} signing_key.priv.sign.%{pae}debug signing_key.x509.sign.%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.%{pae}debug/ \ fi \ if [ "%{with_up}" -ne "0" ]; then \ %{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \ @@ -2125,18 +2120,15 @@ fi}\ %kernel_variant_preun smp %kernel_variant_post -v smp -%kernel_variant_preun PAE -%kernel_variant_post -v PAE -r (kernel|kernel-smp) +%kernel_variant_preun %{pae} +%kernel_variant_post -v %{pae} -r (kernel|kernel-smp) + +%kernel_variant_post -v %{pae}debug -r (kernel|kernel-smp) +%kernel_variant_preun %{pae}debug %kernel_variant_preun debug %kernel_variant_post -v debug -%kernel_variant_post -v PAEdebug -r (kernel|kernel-smp) -%kernel_variant_preun PAEdebug - -%kernel_variant_preun lpae -%kernel_variant_post -v lpae - if [ -x /sbin/ldconfig ] then /sbin/ldconfig -X || exit $? @@ -2278,9 +2270,8 @@ fi %kernel_variant_files %{with_up} %kernel_variant_files %{with_smp} smp %kernel_variant_files %{with_debug} debug -%kernel_variant_files %{with_pae} PAE -%kernel_variant_files %{with_pae_debug} PAEdebug -%kernel_variant_files %{with_lpae} lpae +%kernel_variant_files %{with_pae} %{pae} +%kernel_variant_files %{with_pae_debug} %{pae}debug # plz don't put in a version string unless you're going to tag # and build. @@ -2295,6 +2286,11 @@ fi # ||----w | # || || %changelog +* Wed Jun 12 2013 Kyle McMartin <kmcmarti@redhat.com> +- Merge %{with_pae} and %{with_lpae} so both ARM and i686 use the same + flavours. Set %{pae} to the flavour name {lpae, PAE}. Merging + the descriptions would be nice, but is somewhat irrelevant... + * Wed Jun 12 2013 Josh Boyer <jwboyer@redhat.com> - Fix KVM divide by zero error (rhbz 969644) - Add fix for rt5390/rt3290 regression (rhbz 950735) |