mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
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: f16219293a
("rpi-libcamera-apps: fix flags used in aarch64 builds")
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
This commit is contained in:
parent
3f12757165
commit
2ae93b0f9f
|
@ -30,7 +30,8 @@ EXTRA_OECMAKE = "\
|
||||||
|
|
||||||
LIBCAMERA_ARCH = "${TARGET_ARCH}"
|
LIBCAMERA_ARCH = "${TARGET_ARCH}"
|
||||||
LIBCAMERA_ARCH:aarch64 = "arm64"
|
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}"
|
EXTRA_OECMAKE += "-DENABLE_COMPILE_FLAGS_FOR_TARGET=${LIBCAMERA_ARCH}"
|
||||||
|
|
||||||
PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0"
|
PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user