libcamera: Require gcc 8 or newer

gcc 7 has reached end of life and isn't used as a default compiler by
any of the major distributions. It has also been dropped from buildroot.
Drop its support in libcamera.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2022-02-21 15:57:02 +02:00
parent 7a118dbdb8
commit a7ab5ef1d2

View file

@ -81,11 +81,11 @@ if cc.get_id() == 'clang'
endif endif
if cc.get_id() == 'gcc' if cc.get_id() == 'gcc'
if cc.version().version_compare('<7') if cc.version().version_compare('<8')
error('gcc version is too old, libcamera requires 7.0 or newer') error('gcc version is too old, libcamera requires 8.0 or newer')
endif endif
# On gcc 7 and 8, the file system library is provided in a separate static # On gcc 8, the file system library is provided in a separate static
# library. # library.
if cc.version().version_compare('<9') if cc.version().version_compare('<9')
cpp_arguments += [ cpp_arguments += [
@ -95,9 +95,8 @@ if cc.get_id() == 'gcc'
# gcc 7.1 introduced processor-specific ABI breakages related to parameter # gcc 7.1 introduced processor-specific ABI breakages related to parameter
# passing on ARM platforms. This generates a large number of messages # passing on ARM platforms. This generates a large number of messages
# during compilation with gcc >=7.1. Silence them. # during compilation. Silence them.
if (host_machine.cpu_family() == 'arm' and if host_machine.cpu_family() == 'arm'
cc.version().version_compare('>=7.1'))
cpp_arguments += [ cpp_arguments += [
'-Wno-psabi', '-Wno-psabi',
] ]