All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/bayer2rgb-neon: introduce BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
@ 2022-01-07 18:01 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2022-01-07 18:01 UTC (permalink / raw)
  To: buildroot

[-- Attachment #1: Type: text/plain, Size: 2994 bytes --]

commit: https://git.buildroot.net/buildroot/commit/?id=b2af6bef9c11b6438338f4ddb2f968a7f0141adb
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

In both bayer2rgb-neon and gst1-plugins-bayer2rgb-neon, the Config.in
comment was not displayed on aarch64, even though both packages are
available on this architecture.

To fix this, this commit introduces
BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS, and makes use of it in both
packages.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
[Thomas: add BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS, use it to fix
both packages]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 package/bayer2rgb-neon/Config.in                         | 9 +++++++--
 package/gstreamer1/gst1-plugins-bayer2rgb-neon/Config.in | 4 ++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/package/bayer2rgb-neon/Config.in b/package/bayer2rgb-neon/Config.in
index 7822171020..b0e3017b9f 100644
--- a/package/bayer2rgb-neon/Config.in
+++ b/package/bayer2rgb-neon/Config.in
@@ -1,6 +1,11 @@
+config BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
+	bool
+	default y if BR2_arm && BR2_ARM_CPU_HAS_NEON
+	default y if BR2_aarch64
+
 config BR2_PACKAGE_BAYER2RGB_NEON
 	bool "bayer2rgb-neon"
-	depends on (BR2_arm && BR2_ARM_CPU_HAS_NEON) || BR2_aarch64
+	depends on BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
@@ -12,6 +17,6 @@ config BR2_PACKAGE_BAYER2RGB_NEON
 	  https://gitlab-ext.sigma-chemnitz.de/ensc/bayer2rgb
 
 comment "bayer2rgb-neon needs a toolchain w/ C++, dynamic library, gcc >= 4.9"
-	depends on BR2_arm && BR2_ARM_CPU_HAS_NEON
+	depends on BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
 	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
diff --git a/package/gstreamer1/gst1-plugins-bayer2rgb-neon/Config.in b/package/gstreamer1/gst1-plugins-bayer2rgb-neon/Config.in
index d3e4d0e243..57bafd33e2 100644
--- a/package/gstreamer1/gst1-plugins-bayer2rgb-neon/Config.in
+++ b/package/gstreamer1/gst1-plugins-bayer2rgb-neon/Config.in
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_GST1_PLUGINS_BAYER2RGB_NEON
 	bool "gst1-plugins-bayer2rgb-neon"
-	depends on (BR2_arm && BR2_ARM_CPU_HAS_NEON) || BR2_aarch64 # bayer2rgb-neon
+	depends on BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
 	depends on !BR2_STATIC_LIBS # bayer2rgb-neon
 	depends on BR2_INSTALL_LIBSTDCPP # bayer2rgb-neon
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # bayer2rgb-neon
@@ -15,6 +15,6 @@ config BR2_PACKAGE_GST1_PLUGINS_BAYER2RGB_NEON
 	  https://gitlab-ext.sigma-chemnitz.de/ensc/gst-bayer2rgb-neon
 
 comment "gst1-plugins-bayer2rgb-neon needs a toolchain w/ C++, dynamic library, gcc >= 4.9"
-	depends on BR2_arm && BR2_ARM_CPU_HAS_NEON
+	depends on BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS
 	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-07 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 18:01 [Buildroot] [git commit] package/bayer2rgb-neon: introduce BR2_PACKAGE_BAYER2RGB_NEON_ARCH_SUPPORTS Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.