Whitespace and other minor cleanups
This commit is contained in:
parent
04b7b3c59b
commit
581ddc4ac3
12
kernel.spec
12
kernel.spec
@ -184,7 +184,6 @@ Summary: The Linux kernel
|
|||||||
# Want to build a vanilla kernel build without any non-upstream patches?
|
# Want to build a vanilla kernel build without any non-upstream patches?
|
||||||
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
|
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
|
||||||
|
|
||||||
|
|
||||||
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
|
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
|
||||||
# and 0 for rawhide (all kernels are debug kernels).
|
# and 0 for rawhide (all kernels are debug kernels).
|
||||||
# See also 'make debug' and 'make release'.
|
# See also 'make debug' and 'make release'.
|
||||||
@ -329,6 +328,7 @@ Summary: The Linux kernel
|
|||||||
%define use_vdso 1
|
%define use_vdso 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%ifnarch noarch
|
%ifnarch noarch
|
||||||
%define with_kernel_abi_whitelists 0
|
%define with_kernel_abi_whitelists 0
|
||||||
%endif
|
%endif
|
||||||
@ -479,7 +479,6 @@ Summary: The Linux kernel
|
|||||||
%define _use_vdso 0
|
%define _use_vdso 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Packages that need to be installed before the kernel is, because the %%post
|
# Packages that need to be installed before the kernel is, because the %%post
|
||||||
# scripts use them.
|
# scripts use them.
|
||||||
@ -752,6 +751,7 @@ AutoReq: no\
|
|||||||
AutoProv: yes\
|
AutoProv: yes\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Various documentation bits found in the kernel source
|
Summary: Various documentation bits found in the kernel source
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@ -763,6 +763,7 @@ device drivers shipped with it are documented in these files.
|
|||||||
You'll want to install this package if you need a reference to the
|
You'll want to install this package if you need a reference to the
|
||||||
options that can be passed to Linux kernel modules at load time.
|
options that can be passed to Linux kernel modules at load time.
|
||||||
|
|
||||||
|
|
||||||
%package headers
|
%package headers
|
||||||
Summary: Header files for the Linux kernel for use by glibc
|
Summary: Header files for the Linux kernel for use by glibc
|
||||||
Obsoletes: glibc-kernheaders < 3.0-46
|
Obsoletes: glibc-kernheaders < 3.0-46
|
||||||
@ -838,7 +839,6 @@ The kabidw-base package contains data describing the current ABI of the Red Hat
|
|||||||
Enterprise Linux kernel, suitable for the kabi-dw tool.
|
Enterprise Linux kernel, suitable for the kabi-dw tool.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This macro creates a kernel-<subpackage>-debuginfo package.
|
# This macro creates a kernel-<subpackage>-debuginfo package.
|
||||||
# %%kernel_debuginfo_package <subpackage>
|
# %%kernel_debuginfo_package <subpackage>
|
||||||
@ -1314,7 +1314,7 @@ OPTS=""
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
# End of Configs stuff
|
# # End of Configs stuff
|
||||||
|
|
||||||
# get rid of unwanted files resulting from patch fuzz
|
# get rid of unwanted files resulting from patch fuzz
|
||||||
find . \( -name "*.orig" -o -name "*~" \) -delete >/dev/null
|
find . \( -name "*.orig" -o -name "*~" \) -delete >/dev/null
|
||||||
@ -1457,7 +1457,6 @@ BuildKernel() {
|
|||||||
cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/lib/modules/$KernelVer/zImage.stub-$KernelVer || :
|
cp arch/$Arch/boot/zImage.stub $RPM_BUILD_ROOT/lib/modules/$KernelVer/zImage.stub-$KernelVer || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%if %{signkernel}
|
%if %{signkernel}
|
||||||
if [ "$KernelImage" = vmlinux ]; then
|
if [ "$KernelImage" = vmlinux ]; then
|
||||||
# We can't strip and sign $KernelImage in place, because
|
# We can't strip and sign $KernelImage in place, because
|
||||||
@ -1515,7 +1514,6 @@ BuildKernel() {
|
|||||||
sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
|
sha512hmac $RPM_BUILD_ROOT/%{image_install_path}/$InstallName-$KernelVer | sed -e "s,$RPM_BUILD_ROOT,," > $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac;
|
||||||
cp $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac $RPM_BUILD_ROOT/lib/modules/$KernelVer/.vmlinuz.hmac
|
cp $RPM_BUILD_ROOT/%{image_install_path}/.vmlinuz-$KernelVer.hmac $RPM_BUILD_ROOT/lib/modules/$KernelVer/.vmlinuz.hmac
|
||||||
|
|
||||||
|
|
||||||
if [ $DoModules -eq 1 ]; then
|
if [ $DoModules -eq 1 ]; then
|
||||||
# Override $(mod-fw) because we don't want it to install any firmware
|
# Override $(mod-fw) because we don't want it to install any firmware
|
||||||
# we'll get it from the linux-firmware package and we don't want conflicts
|
# we'll get it from the linux-firmware package and we don't want conflicts
|
||||||
@ -1539,6 +1537,7 @@ BuildKernel() {
|
|||||||
$RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
|
$RPM_BUILD_ROOT/etc/ld.so.conf.d/kernel-$KernelVer.conf
|
||||||
echo /etc/ld.so.conf.d/kernel-$KernelVer.conf >> ../kernel${Flavour:+-${Flavour}}-ldsoconf.list
|
echo /etc/ld.so.conf.d/kernel-$KernelVer.conf >> ../kernel${Flavour:+-${Flavour}}-ldsoconf.list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/vdso/.build-id
|
rm -rf $RPM_BUILD_ROOT/lib/modules/$KernelVer/vdso/.build-id
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2184,7 +2183,6 @@ fi\
|
|||||||
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
|
/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This macro defines a %%post script for a kernel*-modules package.
|
# This macro defines a %%post script for a kernel*-modules package.
|
||||||
# It also defines a %%postun script that does the same thing.
|
# It also defines a %%postun script that does the same thing.
|
||||||
|
Loading…
Reference in New Issue
Block a user