diff options
author | Laura Abbott <labbott@redhat.com> | 2019-03-05 06:44:21 -0800 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-03-25 14:24:18 -0700 |
commit | 66883f977b18f5b1ad32d6ef7281a458b7e7c5b3 (patch) | |
tree | 0f4b94b9acbef3f5fdd4d906d95ec9a1a49cc319 /kernel.spec | |
parent | 19970a17158edf101dfd218c6ec82abd9e4433ca (diff) | |
download | kernel-66883f977b18f5b1ad32d6ef7281a458b7e7c5b3.tar.gz kernel-66883f977b18f5b1ad32d6ef7281a458b7e7c5b3.tar.xz kernel-66883f977b18f5b1ad32d6ef7281a458b7e7c5b3.zip |
Linux v5.0 rebase
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 100 |
1 files changed, 37 insertions, 63 deletions
diff --git a/kernel.spec b/kernel.spec index 98926c3fd..adefdf04f 100644 --- a/kernel.spec +++ b/kernel.spec @@ -48,19 +48,19 @@ Summary: The Linux kernel # base_sublevel is the kernel version we're starting with and patching # on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base, # which yields a base_sublevel of 0. -%define base_sublevel 20 +%define base_sublevel 0 ## If this is a released kernel ## %if 0%{?released_kernel} # Do we have a -stable update to apply? -%define stable_update 17 +%define stable_update 4 # Set rpm version accordingly %if 0%{?stable_update} %define stablerev %{stable_update} %define stable_base %{stable_update} %endif -%define rpmversion 4.%{base_sublevel}.%{stable_update} +%define rpmversion 5.%{base_sublevel}.%{stable_update} ## The not-released-kernel case ## %else @@ -71,7 +71,7 @@ Summary: The Linux kernel # The git snapshot level %define gitrev 0 # Set rpm version accordingly -%define rpmversion 4.%{upstream_sublevel}.0 +%define rpmversion 5.%{upstream_sublevel}.0 %endif # Nb: The above rcrev and gitrev values automagically define Patch00 and Patch01 below. @@ -164,7 +164,7 @@ Summary: The Linux kernel %endif # The kernel tarball/base version -%define kversion 4.%{base_sublevel} +%define kversion 5.%{base_sublevel} %define make_target bzImage %define image_install_path boot @@ -395,8 +395,10 @@ BuildRequires: kmod, patch, bash, tar, git-core BuildRequires: bzip2, xz, findutils, gzip, m4, perl-interpreter, perl-Carp, perl-devel, perl-generators, make, diffutils, gawk BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc, bison, flex BuildRequires: net-tools, hostname, bc, elfutils-devel, gcc-plugin-devel +%if 0%{?fedora} # Used to mangle unversioned shebangs to be Python 3 BuildRequires: /usr/bin/pathfix.py +%endif %if %{with_sparse} BuildRequires: sparse %endif @@ -430,7 +432,7 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu %define cross_opts CROSS_COMPILE=%{_build_arch}-linux-gnu- %endif -Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{kversion}.tar.xz +Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz Source11: x509.genkey Source12: remove-binary-diff.pl @@ -480,7 +482,7 @@ Source1000: kernel-local # For a stable release kernel %if 0%{?stable_update} %if 0%{?stable_base} -%define stable_patch_00 patch-4.%{base_sublevel}.%{stable_base}.xz +%define stable_patch_00 patch-5.%{base_sublevel}.%{stable_base}.xz Source5000: %{stable_patch_00} %endif @@ -489,14 +491,14 @@ Source5000: %{stable_patch_00} # near the top of this spec file. %else %if 0%{?rcrev} -Source5000: patch-4.%{upstream_sublevel}-rc%{rcrev}.xz +Source5000: patch-5.%{upstream_sublevel}-rc%{rcrev}.xz %if 0%{?gitrev} -Source5001: patch-4.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz +Source5001: patch-5.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev}.xz %endif %else # pre-{base_sublevel+1}-rc1 case %if 0%{?gitrev} -Source5000: patch-4.%{base_sublevel}-git%{gitrev}.xz +Source5000: patch-5.%{base_sublevel}-git%{gitrev}.xz %endif %endif %endif @@ -550,14 +552,6 @@ Patch201: efi-lockdown.patch Patch202: KEYS-Allow-unrestricted-boot-time-addition-of-keys-t.patch -Patch203: Add-EFI-signature-data-types.patch - -Patch204: Add-an-EFI-signature-blob-parser-and-key-loader.patch - -Patch205: MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch - -Patch206: MODSIGN-Support-not-importing-certs-from-db.patch - # bz 1497559 - Make kernel MODSIGN code not error on missing variables Patch207: 0001-Make-get_cert_list-not-complain-about-cert-lists-tha.patch Patch208: 0002-Add-efi_status_to_str-and-rework-efi_status_to_err.patch @@ -588,58 +582,33 @@ Patch305: qcom-msm89xx-fixes.patch # https://patchwork.kernel.org/project/linux-mmc/list/?submitter=71861 Patch306: arm-sdhci-esdhc-imx-fixes.patch -# https://patchwork.kernel.org/patch/10686407/ -Patch331: raspberrypi-Fix-firmware-calls-with-large-buffers.patch - -# Improve raspberry pi camera and analog audio -Patch332: bcm2836-Improve-VCHIQ-cache-line-size-handling.patch -Patch333: bcm2835-vc04_services-Improve-driver-load-unload.patch +Patch310: arm64-rock960-enable-hdmi-audio.patch +Patch311: arm64-rock960-add-onboard-wifi-bt.patch +Patch312: arm64-rock960-enable-tsadc.patch # Initall support for the 3A+ -Patch334: bcm2837-dts-add-Raspberry-Pi-3-A.patch - -# Fixes for bcm2835 mmc (sdcard) driver -Patch335: bcm2835-mmc-Several-fixes-for-bcm2835-driver.patch +Patch330: bcm2837-dts-add-Raspberry-Pi-3-A.patch # https://www.spinics.net/lists/arm-kernel/msg699583.html -Patch337: ARM-dts-bcm283x-Several-DTS-improvements.patch +Patch331: ARM-dts-bcm283x-Several-DTS-improvements.patch -Patch339: bcm2835-cpufreq-add-CPU-frequency-control-driver.patch +# https://patchwork.freedesktop.org/patch/290632/ +Patch332: drm-vc4-Use-16bpp-by-default-for-the-fbdev-buffer.patch -# Patches enabling device specific brcm firmware nvram -# https://www.spinics.net/lists/linux-wireless/msg178827.html -Patch340: brcmfmac-Remove-firmware-loading-code-duplication.patch +Patch333: iio-chemical-bme680-device-tree-support.patch -Patch341: brcmfmac-Call-brcmf_dmi_probe-before-brcmf_of_probe.patch +Patch339: bcm2835-cpufreq-add-CPU-frequency-control-driver.patch -# Fix for AllWinner A64 Timer Errata, still not final -# https://www.spinics.net/lists/arm-kernel/msg699622.html -Patch350: Allwinner-A64-timer-workaround.patch # 400 - IBM (ppc/s390x) patches # 500 - Temp fixes/CVEs etc -# rhbz 1476467 -Patch501: Fix-for-module-sig-verification.patch - # rhbz 1431375 -Patch502: input-rmi4-remove-the-need-for-artifical-IRQ.patch - -# rhbz 1526312 patch merged into 5.0-rc# -Patch504: iio-accel-kxcjk1013-Add-more-hardware-ids.patch - -# rhbz 1645070 patch merged into 5.0-rc# -Patch505: asus-fx503-keyb.patch - -# CVE-2019-3459 and CVE-2019-3460 rhbz 1663176 1663179 1665925 -Patch507: CVE-2019-3459-and-CVE-2019-3460.patch +Patch501: input-rmi4-remove-the-need-for-artifical-IRQ.patch -# rhbz 1663613 patch merged into 5.0-rc# -Patch508: 0001-drm-nouveau-register-backlight-on-pascal-and-newer.patch - -# rhbz 1683382 -Patch511: nfsv4.1-avoid-false-retries.patch +# https://patchwork.kernel.org/patch/10752253/ +Patch504: efi-use-32-bit-alignment-for-efi_guid_t.patch # https://bugs.freedesktop.org/show_bug.cgi?id=109806 Patch512: 0001-Revert-drm-i915-fbdev-Actually-configure-untiled-dis.patch @@ -921,7 +890,7 @@ ApplyPatch() exit 1 fi if ! grep -E "^Patch[0-9]+: $patch\$" %{_specdir}/${RPM_PACKAGE_NAME%%%%%{?variant}}.spec ; then - if [ "${patch:0:8}" != "patch-4." ] ; then + if [ "${patch:0:8}" != "patch-5." ] ; then echo "ERROR: Patch $patch not listed as a source patch in specfile" exit 1 fi @@ -954,20 +923,20 @@ ApplyOptionalPatch() # Update to latest upstream. %if 0%{?released_kernel} -%define vanillaversion 4.%{base_sublevel} +%define vanillaversion 5.%{base_sublevel} # non-released_kernel case %else %if 0%{?rcrev} -%define vanillaversion 4.%{upstream_sublevel}-rc%{rcrev} +%define vanillaversion 5.%{upstream_sublevel}-rc%{rcrev} %if 0%{?gitrev} -%define vanillaversion 4.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev} +%define vanillaversion 5.%{upstream_sublevel}-rc%{rcrev}-git%{gitrev} %endif %else # pre-{base_sublevel+1}-rc1 case %if 0%{?gitrev} -%define vanillaversion 4.%{base_sublevel}-git%{gitrev} +%define vanillaversion 5.%{base_sublevel}-git%{gitrev} %else -%define vanillaversion 4.%{base_sublevel} +%define vanillaversion 5.%{base_sublevel} %endif %endif %endif @@ -980,7 +949,7 @@ ApplyOptionalPatch() # Build a list of the other top-level kernel tree directories. # This will be used to hardlink identical vanilla subdirs. -sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-4.*' \ +sharedirs=$(find "$PWD" -maxdepth 1 -type d -name 'kernel-5.*' \ | grep -x -v "$PWD"/kernel-%{kversion}%{?dist}) ||: # Delete all old stale trees. @@ -1196,6 +1165,7 @@ find . \( -name "*.orig" -o -name "*~" \) -delete >/dev/null # remove unnecessary SCM files find . -name .gitignore -delete >/dev/null +%if 0%{?fedora} # Mangle /usr/bin/python shebangs to /usr/bin/python3 # Mangle all Python shebangs to be Python 3 explicitly # -p preserves timestamps @@ -1205,6 +1175,7 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/diffconfig pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/bloat-o-meter pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/show_delta +%endif cd .. @@ -1273,7 +1244,7 @@ BuildKernel() { # make sure EXTRAVERSION says what we want it to say # Trim the release if this is a CI build, since KERNELVERSION is limited to 64 characters - ShortRel=$(python3 -c "import re; print(re.sub(r'\.pr\.[0-9A-Fa-f]{32}', '', '%{release}'))") + ShortRel=$(perl -e "print \"%{release}\" =~ s/\.pr\.[0-9A-Fa-f]{32}//r") perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -${ShortRel}.%{_target_cpu}${Flav}/" Makefile # if pre-rc1 devel kernel, must fix up PATCHLEVEL for our versioning scheme @@ -1932,6 +1903,9 @@ fi # # %changelog +* Mon Mar 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.4-100 +- Linux v5.0.4 + * Wed Mar 20 2019 Hans de Goede <hdegoede@redhat.com> - Make the mainline vboxguest drv feature set match VirtualBox 6.0.x (#1689750) |