diff options
author | Kyle McMartin <kmcmarti@redhat.com> | 2013-06-12 14:57:55 -0400 |
---|---|---|
committer | Kyle McMartin <kmcmarti@redhat.com> | 2013-06-12 14:57:55 -0400 |
commit | 9b1a4cb307844de3ab2a88454a133ebba2db6b2a (patch) | |
tree | a9e3be737012f5765c2414f12ebafe788654e295 | |
parent | be52afe362ad1949af0a306b0ba1a0c31567720f (diff) | |
download | kernel-9b1a4cb307844de3ab2a88454a133ebba2db6b2a.tar.gz kernel-9b1a4cb307844de3ab2a88454a133ebba2db6b2a.tar.xz kernel-9b1a4cb307844de3ab2a88454a133ebba2db6b2a.zip |
Shift some %ifarch arm stuff around
Define kernel_mflags so we can use the same BuildTarget command
for both arm and everyone else.
Move the dtb install after modules.
-rw-r--r-- | kernel.spec | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/kernel.spec b/kernel.spec index f810e77c4..907295c32 100644 --- a/kernel.spec +++ b/kernel.spec @@ -377,6 +377,8 @@ Summary: The Linux kernel %define pae lpae %define make_target bzImage %define kernel_image arch/arm/boot/zImage +# http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html +%define kernel_mflags KALLSYMS_EXTRA_PASS=1 # we only build headers/perf/tools on the base arm arches # just like we used to only build them on i386 for x86 %ifnarch armv7hl @@ -1613,18 +1615,15 @@ BuildKernel() { echo USING ARCH=$Arch make -s ARCH=$Arch oldnoconfig >/dev/null -%ifarch %{arm} - # http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html - make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} KALLSYMS_EXTRA_PASS=1 + make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %{?kernel_mflags} + make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1 +%ifarch %{arm} make -s ARCH=$Arch V=1 dtbs mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer install -m 644 arch/arm/boot/dts/*.dtb $RPM_BUILD_ROOT/boot/dtb-$KernelVer/ rm -f arch/arm/boot/dts/*.dtb -%else - make -s ARCH=$Arch V=1 %{?_smp_mflags} $MakeTarget %{?sparse_mflags} %endif - make -s ARCH=$Arch V=1 %{?_smp_mflags} modules %{?sparse_mflags} || exit 1 # Start installing the results %if %{with_debuginfo} |