mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-02 02:02:24 +00:00
pkgs: disable CONFIG_RETPOLINE for RHEL
The gcc provided has not support for it. Fixes: #369 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
837451b7ea
commit
c84bbf4a94
@ -82,6 +82,12 @@ BuildKernel() {
|
|||||||
find kata-kernel-configs -name "${kernelArch}_kata_kvm_*" -exec cp {} .config \;
|
find kata-kernel-configs -name "${kernelArch}_kata_kvm_*" -exec cp {} .config \;
|
||||||
[ -f .config ] || (echo "ERROR: cannot find the kernel config file for the ${kernelArch} architecture"; exit 1)
|
[ -f .config ] || (echo "ERROR: cannot find the kernel config file for the ${kernelArch} architecture"; exit 1)
|
||||||
|
|
||||||
|
%if 0%{?rhel_version}
|
||||||
|
# RHEL in OBS has updated gcc.
|
||||||
|
# https://github.com/kata-containers/packaging/pull/370#issuecomment-469620154
|
||||||
|
sed -i -e 's/CONFIG_RETPOLINE=y/CONFIG_RETPOLINE=n/g' .config
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
#Fedora uses gcc 8, build is failing due to warnings.
|
#Fedora uses gcc 8, build is failing due to warnings.
|
||||||
export CFLAGS="-Wno-error=restrict"
|
export CFLAGS="-Wno-error=restrict"
|
||||||
|
Loading…
Reference in New Issue
Block a user