Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/chawan: or1k is not supported
@ 2026-10-25  7:33 Waldemar Brodkorb
  2026-10-25 20:24 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2026-10-25  7:33 UTC (permalink / raw)
  To: buildroot

Fixes:
 - https://autobuild.buildroot.org/results/2aa8986b4161c9ce25d4bddf8c29d1b204893e0b

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
v1->v2:
  - add the suggested Buildroot way to disable unsupported
    architectures (Thomas Petazzoni)
---
 package/chawan/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/chawan/Config.in b/package/chawan/Config.in
index 220c81a16d..3cd31019c2 100644
--- a/package/chawan/Config.in
+++ b/package/chawan/Config.in
@@ -1,5 +1,11 @@
+config BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
+	bool
+	default y
+	depends on !BR2_or1k
+
 config BR2_PACKAGE_CHAWAN
 	bool "chawan"
+	depends on BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	select BR2_PACKAGE_BROTLI
-- 
2.47.3

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH v2] package/chawan: or1k is not supported
  2026-10-25  7:33 [Buildroot] [PATCH v2] package/chawan: or1k is not supported Waldemar Brodkorb
@ 2026-10-25 20:24 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-25 20:24 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Sun, Oct 25, 2026 at 08:33:56AM +0100, Waldemar Brodkorb wrote:
> Fixes:
>  - https://autobuild.buildroot.org/results/2aa8986b4161c9ce25d4bddf8c29d1b204893e0b
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
> v1->v2:
>   - add the suggested Buildroot way to disable unsupported
>     architectures (Thomas Petazzoni)
> ---
>  package/chawan/Config.in | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/chawan/Config.in b/package/chawan/Config.in
> index 220c81a16d..3cd31019c2 100644
> --- a/package/chawan/Config.in
> +++ b/package/chawan/Config.in
> @@ -1,5 +1,11 @@
> +config BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
> +	bool
> +	default y
> +	depends on !BR2_or1k
> +
>  config BR2_PACKAGE_CHAWAN
>  	bool "chawan"
> +	depends on BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
>  	depends on BR2_USE_MMU
>  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11
>  	select BR2_PACKAGE_BROTLI

Thanks, but you had forgotten to propagate this dependency to the
Config.in comment to ensure that it doesn't show up when we're on an
unsupported architectures.

And in fact, the BR2_USE_MMU dependency being an architecture
dependency, it could be refactored into this new
BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS option. In the end, the change goes
like this:

diff --git a/package/chawan/Config.in b/package/chawan/Config.in
index 220c81a16d..7a7e982b47 100644
--- a/package/chawan/Config.in
+++ b/package/chawan/Config.in
@@ -1,6 +1,12 @@
+config BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
+	bool
+	default y
+	depends on BR2_USE_MMU
+	depends on !BR2_or1k
+
 config BR2_PACKAGE_CHAWAN
 	bool "chawan"
-	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	select BR2_PACKAGE_BROTLI
 	select BR2_PACKAGE_LIBSSH2
@@ -11,5 +17,5 @@ config BR2_PACKAGE_CHAWAN
 	  https://chawan.net/
 
 comment "chawan needs a toolchain w/ gcc >= 11"
-	depends on BR2_USE_MMU
+	depends on BR2_PACKAGE_CHAWAN_ARCH_SUPPORTS
 	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_11

Committed with this change.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-25 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-25  7:33 [Buildroot] [PATCH v2] package/chawan: or1k is not supported Waldemar Brodkorb
2026-10-25 20:24 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox