meta-raspberrypi/recipes-multimedia
Martin Jansa f16219293a rpi-libcamera-apps: fix flags used in aarch64 builds
* the CMakeLists.txt recognizes only 2 values:

IF (NOT ENABLE_COMPILE_FLAGS_FOR_TARGET)
    # On a Pi this will give us armhf or arm64.
    execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH
        OUTPUT_VARIABLE ENABLE_COMPILE_FLAGS_FOR_TARGET OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
message(STATUS "Platform: ${ENABLE_COMPILE_FLAGS_FOR_TARGET}")
if ("${ENABLE_COMPILE_FLAGS_FOR_TARGET}" STREQUAL "arm64")
    # 64-bit binaries can be fully optimised.
    add_definitions(-ftree-vectorize)
elseif ("${ENABLE_COMPILE_FLAGS_FOR_TARGET}" STREQUAL "armv8-neon")
    # Only build with 32-bit Pi 3/4 specific optimisations if requested on the command line.
    add_definitions(-mfpu=neon-fp-armv8 -ftree-vectorize)
endif()

  the value from dpkg-architecture on host is useless
  when cross-compiling, so we always need to pass something

  for raspberrypi4-64 we were passing "armv8-neon" which results in:
  aarch64-oe-linux-g++: error: unrecognized command-line option '-mfpu=neon-fp-armv8'
  as all -mfpu options are rejected in aarch64 builds, pass better
  ENABLE_COMPILE_FLAGS_FOR_TARGET value for all MACHINEs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2023-05-15 15:56:03 +01:00
..
gstreamer gstreamer1.0-plugins-bad: Drop gpl packageconfig 2023-03-27 09:34:06 +01:00
libcamera-apps rpi-libcamera-apps: fix flags used in aarch64 builds 2023-05-15 15:56:03 +01:00
omxplayer raspidmx, userland, omxplayer: Fix Upstream-Status formatting 2023-02-03 21:39:37 +00:00
picamera-libs picamera-libs: Adjust sourcedir 2022-04-04 20:04:06 +01:00
python3-picamera picamera-libs,python3-picamera: Limit visibility to 32 bit rpi machines 2022-01-28 22:32:58 +00:00
rpidistro-ffmpeg rpidistro-ffmpeg: Pin to use gcc always 2023-03-27 09:34:06 +01:00
x264 Convert to new override syntax 2021-08-04 12:30:12 +03:00