mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 04:21:03 +00:00
linux: fedora: fix build.
Allow kernel builds in fedora 28. Ignore new warnings from gcc 8. Fixes: #30 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
0cb0eb4dda
commit
f7cb9988e7
@ -77,6 +77,12 @@ BuildKernel() {
|
||||
make -s mrproper
|
||||
cp config .config
|
||||
|
||||
%if 0%{?fedora}
|
||||
#Fedora uses gcc 8, build is failing due to warnings.
|
||||
export CFLAGS="-Wno-error=restrict"
|
||||
export EXTRA_CFLAGS="-Wno-format-truncation -Wno-cast-function-type -Wno-error=restrict -Wno-error"
|
||||
%endif
|
||||
|
||||
make -s ARCH=$Arch oldconfig > /dev/null
|
||||
make -s CONFIG_DEBUG_SECTION_MISMATCH=y %{?_smp_mflags} ARCH=$Arch %{?sparse_mflags} || exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user