From 2ae93b0f9fdc07e9c4c630ed4ff8e86a67286f63 Mon Sep 17 00:00:00 2001 From: Vivien Didelot Date: Thu, 20 Jul 2023 13:41:03 -0400 Subject: [PATCH] rpi-libcamera-apps: fix Illegal Instruction With armv8-neon being enforced for all ARM based machines, running any libcamera app on raspberrypi (e.g. Raspberry Pi B Rev 2) results in Illegal Instruction. To fix this, set armv8-neon for 32bit raspberrypi3 and raspberrypi4 but defaults to TARGET_ARCH for other non-aarch64 machines. Fixes: f16219293ab7 ("rpi-libcamera-apps: fix flags used in aarch64 builds") Signed-off-by: Vivien Didelot --- recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb b/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb index 062ded9..653bfc1 100644 --- a/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb +++ b/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb @@ -30,7 +30,8 @@ EXTRA_OECMAKE = "\ LIBCAMERA_ARCH = "${TARGET_ARCH}" LIBCAMERA_ARCH:aarch64 = "arm64" -LIBCAMERA_ARCH:arm = "armv8-neon" +LIBCAMERA_ARCH:arm:raspberrypi3 = "armv8-neon" +LIBCAMERA_ARCH:arm:raspberrypi4 = "armv8-neon" EXTRA_OECMAKE += "-DENABLE_COMPILE_FLAGS_FOR_TARGET=${LIBCAMERA_ARCH}" PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0"