diff mbox series

[v2,3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS

Message ID 20211112190650.84234-4-romain.naour@gmail.com
State Accepted
Headers show
Series rework luvi test in gitlab after luajit version bump. | expand

Commit Message

Romain Naour Nov. 12, 2021, 7:06 p.m. UTC
This commit reworks how BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is
defined to follow the recommended syntax.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Francois Perrad <francois.perrad@gadz.org>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
---
 package/luajit/Config.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Yann E. MORIN Nov. 12, 2021, 10:41 p.m. UTC | #1
On 2021-11-12 20:06 +0100, Romain Naour spake thusly:
> This commit reworks how BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS is
> defined to follow the recommended syntax.
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
>  package/luajit/Config.in | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/package/luajit/Config.in b/package/luajit/Config.in
> index e4e1249240..f6d01ed09a 100644
> --- a/package/luajit/Config.in
> +++ b/package/luajit/Config.in
> @@ -1,10 +1,10 @@
>  config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
>  	bool
> -	default y if BR2_i386 || \
> -		(BR2_x86_64 && BR2_HOSTARCH='x86_64') || \
> -		BR2_powerpc || BR2_arm || BR2_armeb || BR2_aarch64 || \
> -		((BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT && \
> -		!BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6)
> +	default y if BR2_arm || BR2_armeb || BR2_aarch64
> +	default y if BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64')
> +	default y if BR2_powerpc
> +	default y if (BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT \

Alphabetical order, damit! ;-)

Applied to master, thanks.

Regards,
Yann E. MORIN.

> +		&& !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
>  	# -m32 flag is used for 32bit builds and host-luajit has
>  	# limited architecture support
>  	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
diff mbox series

Patch

diff --git a/package/luajit/Config.in b/package/luajit/Config.in
index e4e1249240..f6d01ed09a 100644
--- a/package/luajit/Config.in
+++ b/package/luajit/Config.in
@@ -1,10 +1,10 @@ 
 config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 	bool
-	default y if BR2_i386 || \
-		(BR2_x86_64 && BR2_HOSTARCH='x86_64') || \
-		BR2_powerpc || BR2_arm || BR2_armeb || BR2_aarch64 || \
-		((BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT && \
-		!BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6)
+	default y if BR2_arm || BR2_armeb || BR2_aarch64
+	default y if BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64')
+	default y if BR2_powerpc
+	default y if (BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT \
+		&& !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
 	# -m32 flag is used for 32bit builds and host-luajit has
 	# limited architecture support
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"