From b362fa37e3c8c7c929d899eee9857c3d465ffa00 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Tue, 26 May 2026 22:06:39 +0200 Subject: [PATCH] package/libde265: disable neon support for armv7m Buildroot commit d4b8a42fb253116befe539e5529ac4efd97ab421 bumped the package from 1.0.16 to 1.0.18. Upstream added optional neon support in version 1.0.17: https://github.com/strukturag/libde265/commit/f22cf00a86f4a47f9423deb3b1daa35d981b2ec9 The configure check detects neon support: -- Performing Test HAVE_NEON -- Performing Test HAVE_NEON - Success but causes a build error at linking stage: [100%] Linking CXX executable dec265 /builds/bkuhls/buildroot/br-test-pkg/bootlin-armv7m-uclibc/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: error: ../libde265/libde265.a(hevcdsp_qpel_neon.S.o): conflicting architecture profiles A/M so we add a configure option to disable neon support. The build error was not yet detected by the autobuilders but can be reproduced using this defconfig: BR2_arm=y BR2_cortex_m4=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7M_UCLIBC_STABLE=y BR2_PACKAGE_LIBDE265=y Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard (cherry picked from commit f51769b7e9796906bc11d463c1436efe5de7073f) Signed-off-by: Thomas Perale --- package/libde265/libde265.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libde265/libde265.mk b/package/libde265/libde265.mk index d7e3df83ca..b559a9f607 100644 --- a/package/libde265/libde265.mk +++ b/package/libde265/libde265.mk @@ -16,4 +16,8 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) LIBDE265_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic endif +ifeq ($(BR2_ARM_CPU_ARMV7M):$(BR2_ARM_CPU_HAS_NEON),y:) +LIBDE265_CONF_OPTS += -DHAVE_NEON=OFF +endif + $(eval $(cmake-package))