Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/criu: disable on aarch64_be
@ 2024-01-14 10:16 Fabrice Fontaine
  2024-01-14 11:11 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-01-14 10:16 UTC (permalink / raw)
  To: buildroot; +Cc: Marcus Folkesson, Fabrice Fontaine

armv8a aarch64_be raises the following build failure since the addition
of the package in commit 3e4b479f39c15ffdf307ec8395d856680c727204:

Error (compel/arch/aarch64/src/lib/handle-elf-host.c:30): Unsupported Elf format detected

Fixes:
 - http://autobuild.buildroot.org/results/8eaa881a926d138a0bfd3f1076246088994e883f
 - http://autobuild.buildroot.org/results/8de9b4d6b26e06f6b4457a31366bdc0d8a8c34ae

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/criu/Config.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/criu/Config.in b/package/criu/Config.in
index fc0da823b3..02d000e49b 100644
--- a/package/criu/Config.in
+++ b/package/criu/Config.in
@@ -1,10 +1,10 @@
 # criu only builds on certain architectures
 config BR2_PACKAGE_CRIU_ARCH_SUPPORTS
 	bool
-	default y if BR2_ARM_CPU_ARMV6
-	default y if BR2_ARM_CPU_ARMV7A
-	default y if BR2_ARM_CPU_ARMV7M
-	default y if BR2_ARM_CPU_ARMV8A
+	default y if BR2_arm && BR2_ARM_CPU_ARMV6
+	default y if BR2_arm && BR2_ARM_CPU_ARMV7A
+	default y if BR2_arm && BR2_ARM_CPU_ARMV7M
+	default y if BR2_arm && BR2_ARM_CPU_ARMV8A
 	default y if BR2_aarch64
 	default y if BR2_x86_64
 	default y if BR2_powerpc64le # Only support powerpc64 with LE
-- 
2.43.0

_______________________________________________
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 1/1] package/criu: disable on aarch64_be
  2024-01-14 10:16 [Buildroot] [PATCH 1/1] package/criu: disable on aarch64_be Fabrice Fontaine
@ 2024-01-14 11:11 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-01-14 11:11 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Marcus Folkesson, buildroot

Fabrice, All,

On 2024-01-14 11:16 +0100, Fabrice Fontaine spake thusly:
> armv8a aarch64_be raises the following build failure since the addition
> of the package in commit 3e4b479f39c15ffdf307ec8395d856680c727204:
> 
> Error (compel/arch/aarch64/src/lib/handle-elf-host.c:30): Unsupported Elf format detected
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/8eaa881a926d138a0bfd3f1076246088994e883f
>  - http://autobuild.buildroot.org/results/8de9b4d6b26e06f6b4457a31366bdc0d8a8c34ae
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/criu/Config.in | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/package/criu/Config.in b/package/criu/Config.in
> index fc0da823b3..02d000e49b 100644
> --- a/package/criu/Config.in
> +++ b/package/criu/Config.in
> @@ -1,10 +1,10 @@
>  # criu only builds on certain architectures
>  config BR2_PACKAGE_CRIU_ARCH_SUPPORTS
>  	bool
> -	default y if BR2_ARM_CPU_ARMV6
> -	default y if BR2_ARM_CPU_ARMV7A
> -	default y if BR2_ARM_CPU_ARMV7M
> -	default y if BR2_ARM_CPU_ARMV8A
> +	default y if BR2_arm && BR2_ARM_CPU_ARMV6
> +	default y if BR2_arm && BR2_ARM_CPU_ARMV7A
> +	default y if BR2_arm && BR2_ARM_CPU_ARMV7M

armv6 and armv7 can never be aarch64, so there is no need to guard them
with BR2_arm. Also note that this also disables for armeb, not just
aarch64_be.

Unless you meant this commit to mean "disable for armeb and aarch64_be"?

> +	default y if BR2_arm && BR2_ARM_CPU_ARMV8A

This also disables armv8 for armeb. Is that expected?

If it is just about disabling for aarch64_be (and nothing else), then
I'd prefer the condition to be written explicitly, as such:

    default y if BR2_ARM_CPU_ARMV8A && !BR2_aarch64_be

However, if your commit was really about disabling for all big-endian
ARM and Aarch64, then the commit title and commit log should be fixed.

Regards,
Yann E. MORIN.

>  	default y if BR2_aarch64
>  	default y if BR2_x86_64
>  	default y if BR2_powerpc64le # Only support powerpc64 with LE
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-01-14 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-14 10:16 [Buildroot] [PATCH 1/1] package/criu: disable on aarch64_be Fabrice Fontaine
2024-01-14 11:11 ` Yann E. MORIN

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