diff options
author | Laura Abbott <labbott@redhat.com> | 2018-10-01 13:36:07 -0700 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2018-10-03 07:22:40 -0700 |
commit | 6fed0f232e1baee3c890f8383b98fa99acfae2b8 (patch) | |
tree | 41a2c88ee9e79e4ad5ecce18bb8004e04aeb68be | |
parent | 102c233f9a0bc1e67d9082e2fb1e2ea4dbcfab45 (diff) | |
download | kernel-6fed0f232e1baee3c890f8383b98fa99acfae2b8.tar.gz kernel-6fed0f232e1baee3c890f8383b98fa99acfae2b8.tar.xz kernel-6fed0f232e1baee3c890f8383b98fa99acfae2b8.zip |
Add support for building with gcc-plugins
This doesn't enable any plugins, only the infrastrucutre for enabling
plugins at a later date.
-rw-r--r-- | configs/fedora/generic/CONFIG_GCC_PLUGINS | 2 | ||||
-rw-r--r-- | configs/fedora/generic/CONFIG_GCC_PLUGIN_LATENT_ENTROPY | 1 | ||||
-rw-r--r-- | configs/fedora/generic/CONFIG_GCC_PLUGIN_RANDSTRUCT | 1 | ||||
-rw-r--r-- | configs/fedora/generic/CONFIG_GCC_PLUGIN_STRUCTLEAK | 1 | ||||
-rw-r--r-- | kernel-aarch64-debug.config | 5 | ||||
-rw-r--r-- | kernel-aarch64.config | 5 | ||||
-rw-r--r-- | kernel-armv7hl-debug.config | 5 | ||||
-rw-r--r-- | kernel-armv7hl-lpae-debug.config | 5 | ||||
-rw-r--r-- | kernel-armv7hl-lpae.config | 5 | ||||
-rw-r--r-- | kernel-armv7hl.config | 5 | ||||
-rw-r--r-- | kernel-i686-debug.config | 5 | ||||
-rw-r--r-- | kernel-i686.config | 5 | ||||
-rw-r--r-- | kernel-ppc64le-debug.config | 5 | ||||
-rw-r--r-- | kernel-ppc64le.config | 5 | ||||
-rw-r--r-- | kernel-s390x-debug.config | 5 | ||||
-rw-r--r-- | kernel-s390x.config | 5 | ||||
-rw-r--r-- | kernel-x86_64-debug.config | 5 | ||||
-rw-r--r-- | kernel-x86_64.config | 5 | ||||
-rw-r--r-- | kernel.spec | 2 |
19 files changed, 61 insertions, 16 deletions
diff --git a/configs/fedora/generic/CONFIG_GCC_PLUGINS b/configs/fedora/generic/CONFIG_GCC_PLUGINS index 072e253ed..178242a97 100644 --- a/configs/fedora/generic/CONFIG_GCC_PLUGINS +++ b/configs/fedora/generic/CONFIG_GCC_PLUGINS @@ -1 +1 @@ -# CONFIG_GCC_PLUGINS is not set +CONFIG_GCC_PLUGINS=y diff --git a/configs/fedora/generic/CONFIG_GCC_PLUGIN_LATENT_ENTROPY b/configs/fedora/generic/CONFIG_GCC_PLUGIN_LATENT_ENTROPY new file mode 100644 index 000000000..4775521e9 --- /dev/null +++ b/configs/fedora/generic/CONFIG_GCC_PLUGIN_LATENT_ENTROPY @@ -0,0 +1 @@ +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set diff --git a/configs/fedora/generic/CONFIG_GCC_PLUGIN_RANDSTRUCT b/configs/fedora/generic/CONFIG_GCC_PLUGIN_RANDSTRUCT new file mode 100644 index 000000000..649563cac --- /dev/null +++ b/configs/fedora/generic/CONFIG_GCC_PLUGIN_RANDSTRUCT @@ -0,0 +1 @@ +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set diff --git a/configs/fedora/generic/CONFIG_GCC_PLUGIN_STRUCTLEAK b/configs/fedora/generic/CONFIG_GCC_PLUGIN_STRUCTLEAK new file mode 100644 index 000000000..23671269f --- /dev/null +++ b/configs/fedora/generic/CONFIG_GCC_PLUGIN_STRUCTLEAK @@ -0,0 +1 @@ +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set diff --git a/kernel-aarch64-debug.config b/kernel-aarch64-debug.config index b499150c2..dfa50c756 100644 --- a/kernel-aarch64-debug.config +++ b/kernel-aarch64-debug.config @@ -1906,7 +1906,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-aarch64.config b/kernel-aarch64.config index e1e01b6d1..cab8a9da2 100644 --- a/kernel-aarch64.config +++ b/kernel-aarch64.config @@ -1888,7 +1888,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-armv7hl-debug.config b/kernel-armv7hl-debug.config index 545248782..75e81fbd6 100644 --- a/kernel-armv7hl-debug.config +++ b/kernel-armv7hl-debug.config @@ -2014,7 +2014,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_GENERIC_ADC_BATTERY=m diff --git a/kernel-armv7hl-lpae-debug.config b/kernel-armv7hl-lpae-debug.config index 7b66643d7..133b13bab 100644 --- a/kernel-armv7hl-lpae-debug.config +++ b/kernel-armv7hl-lpae-debug.config @@ -1918,7 +1918,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_GENERIC_ADC_BATTERY=m diff --git a/kernel-armv7hl-lpae.config b/kernel-armv7hl-lpae.config index 80c24dd20..afe40d0ee 100644 --- a/kernel-armv7hl-lpae.config +++ b/kernel-armv7hl-lpae.config @@ -1900,7 +1900,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_GENERIC_ADC_BATTERY=m diff --git a/kernel-armv7hl.config b/kernel-armv7hl.config index 7c85eb2fd..c1dd5c7ec 100644 --- a/kernel-armv7hl.config +++ b/kernel-armv7hl.config @@ -1996,7 +1996,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_GENERIC_ADC_BATTERY=m diff --git a/kernel-i686-debug.config b/kernel-i686-debug.config index 0921b026b..39a60e217 100644 --- a/kernel-i686-debug.config +++ b/kernel-i686-debug.config @@ -1748,7 +1748,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-i686.config b/kernel-i686.config index 50ac97086..92b5bbfab 100644 --- a/kernel-i686.config +++ b/kernel-i686.config @@ -1727,7 +1727,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-ppc64le-debug.config b/kernel-ppc64le-debug.config index 4a2159062..2946b79a5 100644 --- a/kernel-ppc64le-debug.config +++ b/kernel-ppc64le-debug.config @@ -1611,7 +1611,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GEF_PPC9A is not set diff --git a/kernel-ppc64le.config b/kernel-ppc64le.config index 874b14338..16e84c592 100644 --- a/kernel-ppc64le.config +++ b/kernel-ppc64le.config @@ -1590,7 +1590,10 @@ CONFIG_GAMEPORT_FM801=m CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GEF_PPC9A is not set diff --git a/kernel-s390x-debug.config b/kernel-s390x-debug.config index 3c00472b5..1cdb54e78 100644 --- a/kernel-s390x-debug.config +++ b/kernel-s390x-debug.config @@ -1591,7 +1591,10 @@ CONFIG_GAMEPORT_FM801=m # CONFIG_GAMEPORT is not set CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-s390x.config b/kernel-s390x.config index 7f3d9f453..f5e7ddd07 100644 --- a/kernel-s390x.config +++ b/kernel-s390x.config @@ -1570,7 +1570,10 @@ CONFIG_GAMEPORT_FM801=m # CONFIG_GAMEPORT is not set CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT_NS558=m -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-x86_64-debug.config b/kernel-x86_64-debug.config index 25f196be1..a9ebce6c3 100644 --- a/kernel-x86_64-debug.config +++ b/kernel-x86_64-debug.config @@ -1792,7 +1792,10 @@ CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m # CONFIG_GART_IOMMU is not set -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel-x86_64.config b/kernel-x86_64.config index 4fd254334..688acceb6 100644 --- a/kernel-x86_64.config +++ b/kernel-x86_64.config @@ -1771,7 +1771,10 @@ CONFIG_GAMEPORT_L4=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m # CONFIG_GART_IOMMU is not set -# CONFIG_GCC_PLUGINS is not set +# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set +# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set +# CONFIG_GCC_PLUGIN_STRUCTLEAK is not set +CONFIG_GCC_PLUGINS=y # CONFIG_GCOV_KERNEL is not set # CONFIG_GDB_SCRIPTS is not set # CONFIG_GENERIC_ADC_BATTERY is not set diff --git a/kernel.spec b/kernel.spec index bd966c1e2..311ef4c3d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -384,7 +384,7 @@ Requires: kernel-modules-uname-r = %{KVERREL}%{?variant} 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 +BuildRequires: net-tools, hostname, bc, elfutils-devel, gcc-plugin-devel # Used to mangle unversioned shebangs to be Python 3 BuildRequires: /usr/bin/pathfix.py %if %{with_sparse} |