All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump.
@ 2021-11-12 19:06 Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 1/6] package/luvi: don't use LUAJIT_VERSION for the luajit installation path Romain Naour
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

Luajit package has been recently updated to the latest commit in the
master branch [1]. But we discovered several problems:

 - LUAJIT_VERSION doesn't contain the luajit version anymore but a commit hash
 - With Luajit, luvi doesn't work without rng support enabled.
 - Building for 64-bit target requires a 64-bit host for all target platform
 - luajit and host-luajit needs to be built with the same option, so the
   bytecode generated by host-luajit is valid on luajit.
 - iteration with pairs() does not result in the same order since luajit 2.1.

[1] 9450b53c8e06f1b5a75840b82c0f4663a5d75c45
[2] https://gitlab.com/buildroot.org/buildroot/-/jobs/1710552605

Best regards,
Romain

Francois Perrad (1):
  package/luajit: disable 64 bit GC objects

Romain Naour (5):
  package/luvi: don't use LUAJIT_VERSION for the luajit installation
    path
  support/testing: test_luvi: switch to armv5 to boot with rng support
    enabled
  package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
  package/luajit: building for 64-bit target requires a 64-bit host for
    all platform
  support/testing: test_luvi: make luvi test reproducible

 package/luajit/Config.in                   | 12 +++++++-----
 package/luajit/luajit.mk                   |  2 ++
 package/luvi/luvi.mk                       |  8 ++++++--
 support/testing/tests/package/test_luvi.py | 12 ++++++------
 4 files changed, 21 insertions(+), 13 deletions(-)

-- 
2.31.1

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

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

* [Buildroot] [PATCH v2 1/6] package/luvi: don't use LUAJIT_VERSION for the luajit installation path
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 2/6] support/testing: test_luvi: switch to armv5 to boot with rng support enabled Romain Naour
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Jörg Krause

Luajit package has been recently updated to the latest commit in the
master branch [1]. Since then LUAJIT_VERSION doesn't contain the luajit
version anymore but a commit hash:

LUAJIT_VERSION = 05f1984e1a862e4b3d3c3b370c773492e2edf84a

Use pkg-config --variable=version luajit in luvi package to set
LUA_PATH correctly.

Fixes:
luajit: unknown luaJIT command or jit.* modules not installed

https://gitlab.com/buildroot.org/buildroot/-/jobs/1710552605

[1] 9450b53c8e06f1b5a75840b82c0f4663a5d75c45

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jörg Krause <joerg.krause@embedded.rocks>
---
The TestLuvi doesn't work yet due to missing rng support on Qemu armv7 target
used to run the test. luvi -v is stuck due to getrandom().

v2: use build-time shell expansion (Yann)
---
 package/luvi/luvi.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/luvi/luvi.mk b/package/luvi/luvi.mk
index 386daafc31..5daa3c1793 100644
--- a/package/luvi/luvi.mk
+++ b/package/luvi/luvi.mk
@@ -9,7 +9,7 @@ LUVI_SOURCE = luvi-src-v$(LUVI_VERSION).tar.gz
 LUVI_SITE = https://github.com/luvit/luvi/releases/download/v$(LUVI_VERSION)
 LUVI_LICENSE = Apache-2.0
 LUVI_LICENSE_FILES = LICENSE.txt
-LUVI_DEPENDENCIES = libuv luajit luv host-luajit
+LUVI_DEPENDENCIES = libuv luajit luv host-luajit host-pkgconf
 
 # Dispatch all architectures of LuaJIT
 ifeq ($(BR2_i386),y)
@@ -30,12 +30,16 @@ else
 LUVI_TARGET_ARCH = $(BR2_ARCH)
 endif
 
+# LUAJIT_VERSION and the luajit installation path may not use the
+# same value. Use the value from luajit.pc file.
+LUVI_LUAJIT_VERSION = `$(PKG_CONFIG_HOST_BINARY) --variable=version luajit`
+
 # Bundled lua bindings have to be linked statically into the luvi executable
 LUVI_CONF_OPTS = \
 	-DBUILD_SHARED_LIBS=OFF \
 	-DWithSharedLibluv=ON \
 	-DTARGET_ARCH=$(LUVI_TARGET_ARCH) \
-	-DLUA_PATH=$(HOST_DIR)/share/luajit-$(LUAJIT_VERSION)/?.lua
+	-DLUA_PATH=$(HOST_DIR)/share/luajit-$(LUVI_LUAJIT_VERSION)/?.lua
 
 # Add "rex" module (PCRE via bundled lrexlib)
 ifeq ($(BR2_PACKAGE_PCRE),y)
-- 
2.31.1

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

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

* [Buildroot] [PATCH v2 2/6] support/testing: test_luvi: switch to armv5 to boot with rng support enabled
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 1/6] package/luvi: don't use LUAJIT_VERSION for the luajit installation path Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS Romain Naour
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Jörg Krause

Since the commit replacing moonjit by luajit [1] luvi doesn't work without
rng support enabled.

Switch to armv5 to use virtio-rng-pci on the qemu command line [2].

[1] 9450b53c8e06f1b5a75840b82c0f4663a5d75c45
[2] https://git.buildroot.net/buildroot/tree/support/testing/infra/emulator.py?h=2021.08.1

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Jörg Krause <joerg.krause@embedded.rocks>
---
luvi still doesn't work since the luv static linking doesn't seems to
work anymore.
(see https://github.com/luvit/luvi/commit/a9dc8dae2eb69d4a754a0cf5c08622d70f6b7067)

 # luvi -v

[string "return require('init')(...)"]:1: module 'init' not found:

	no field package.preload['init']
	no file './init.lua'
	no file '/usr/share/luajit-2.1.0-beta3/init.lua'
	no file '/usr/local/share/lua/5.1/init.lua'
	no file '/usr/local/share/lua/5.1/init/init.lua'
	no file '/usr/share/lua/5.1/init.lua'
	no file '/usr/share/lua/5.1/init/init.lua'
	no file './init.so'
	no file '/usr/local/lib/lua/5.1/init.so'
	no file '/usr/lib/lua/5.1/init.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'

stack traceback:
	[C]: in function 'require'
	[string "return require('init')(...)"]:1: in main chunk

luvi now try to load init.lua script:
https://github.com/luvit/luvi/blob/v2.12.0/src/main.c#L176

Reverting to moonjit fixes the issue.
---
 support/testing/tests/package/test_luvi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/testing/tests/package/test_luvi.py b/support/testing/tests/package/test_luvi.py
index a85a6f4d27..eb15ad31b5 100644
--- a/support/testing/tests/package/test_luvi.py
+++ b/support/testing/tests/package/test_luvi.py
@@ -17,7 +17,7 @@ class TestLuvi(infra.basetest.BRTest):
 
     def login(self):
         cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
-        self.emulator.boot(arch="armv7",
+        self.emulator.boot(arch="armv5",
                            kernel="builtin",
                            options=["-initrd", cpio_file])
         self.emulator.login()
-- 
2.31.1

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

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

* [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 1/6] package/luvi: don't use LUAJIT_VERSION for the luajit installation path Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 2/6] support/testing: test_luvi: switch to armv5 to boot with rng support enabled Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 22:41   ` Yann E. MORIN
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 4/6] package/luajit: building for 64-bit target requires a 64-bit host for all platform Romain Naour
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Yann E . MORIN

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 \
+		&& !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

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

* [Buildroot] [PATCH v2 4/6] package/luajit: building for 64-bit target requires a 64-bit host for all platform
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
                   ` (2 preceding siblings ...)
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 5/6] package/luajit: disable 64 bit GC objects Romain Naour
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Yann E . MORIN

Currently only x86_64 target requires a 64-bit host but building
aarch64 target with a 32-bit host is allowed.

This constraint is for all architectures [1].

[1] http://lists.busybox.net/pipermail/buildroot/2021-November/628301.html

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>
---
v2: fix typo BR_HOST_ARCH/BR2_HOSTARCH (Yann)
---
 package/luajit/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/luajit/Config.in b/package/luajit/Config.in
index f6d01ed09a..c313cd3248 100644
--- a/package/luajit/Config.in
+++ b/package/luajit/Config.in
@@ -1,13 +1,15 @@
 config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 	bool
 	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_i386 || BR2_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"
+	# Building for 64-bit target requires a 64-bit host
+	depends on !BR2_ARCH_IS_64 || BR2_HOSTARCH = "x86_64"
 
 config BR2_PACKAGE_LUAJIT
 	bool "luajit"
-- 
2.31.1

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

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

* [Buildroot] [PATCH v2 5/6] package/luajit: disable 64 bit GC objects
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
                   ` (3 preceding siblings ...)
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 4/6] package/luajit: building for 64-bit target requires a 64-bit host for all platform Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 6/6] support/testing: test_luvi: make luvi test reproducible Romain Naour
  2021-11-12 22:40 ` [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Yann E. MORIN
  6 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Francois Perrad, Romain Naour

From: Francois Perrad <fperrad@gmail.com>

Luvi uses the cross bytecode generation of host-luajit
the bytecode format has 2 flavors, depending of GC64 option.

Since the commit https://github.com/LuaJIT/LuaJIT/commit/bd00094c3b50e193fb32aad79b7ea8ea6b78ed25
GC64 mode is enable by default on all 64bits platform.

With this patch, luajit and host-luajit are built with the same option,
so the bytecode generated by host-luajit is valid on luajit.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
[Romain:
  - update commit title
  - add a comment about missing LUAJIT_ENABLE_GC64]
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
The luvi test still doesn't works all the time since the output of
"luvi -v" is not reproducible
---
 package/luajit/luajit.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/luajit/luajit.mk b/package/luajit/luajit.mk
index fbbd8ebc70..89b164c96d 100644
--- a/package/luajit/luajit.mk
+++ b/package/luajit/luajit.mk
@@ -26,8 +26,10 @@ endif
 # libraries are installed.
 ifeq ($(BR2_ARCH_IS_64),y)
 LUAJIT_HOST_CC = $(HOSTCC)
+# There is no LUAJIT_ENABLE_GC64 option.
 else
 LUAJIT_HOST_CC = $(HOSTCC) -m32
+LUAJIT_XCFLAGS += -DLUAJIT_DISABLE_GC64
 endif
 
 # We unfortunately can't use TARGET_CONFIGURE_OPTS, because the luajit
-- 
2.31.1

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

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

* [Buildroot] [PATCH v2 6/6] support/testing: test_luvi: make luvi test reproducible
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
                   ` (4 preceding siblings ...)
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 5/6] package/luajit: disable 64 bit GC objects Romain Naour
@ 2021-11-12 19:06 ` Romain Naour
  2021-11-12 22:40 ` [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Yann E. MORIN
  6 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2021-11-12 19:06 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Jörg Krause

As explained by Jörg [1], iteration with pairs() does not result in the
same order since luajit 2.1.

From [2]
"Table iteration with pairs() does not result in the same order?

The order of table iteration is explicitly undefined by the Lua
language standard. Different Lua implementations or versions may use
different orders for otherwise identical tables. Different ways of
constructing a table may result in different orders, too. Due to
improved VM security, LuaJIT 2.1 may even use a different order on
separate VM invocations or when string keys are newly interned.

If your program relies on a deterministic order, it has a bug.
Rewrite it, so it doesn't rely on the key order.
Or sort the table keys, if you must."

Note: The "luvi -v" return 255 even on success.

[1] http://lists.busybox.net/pipermail/buildroot/2021-November/627938.html
[2] https://luajit.org/faq.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Francois Perrad <francois.perrad@gadz.org>
Cc: Jörg Krause <joerg.krause@embedded.rocks>
---
v2 use sort in python (Yann)
---
 support/testing/tests/package/test_luvi.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/support/testing/tests/package/test_luvi.py b/support/testing/tests/package/test_luvi.py
index eb15ad31b5..4b55091762 100644
--- a/support/testing/tests/package/test_luvi.py
+++ b/support/testing/tests/package/test_luvi.py
@@ -25,11 +25,12 @@ class TestLuvi(infra.basetest.BRTest):
     def version_test(self):
         cmd = "luvi -v"
         output, exit_code = self.emulator.run(cmd)
-        self.assertIn('luvi', output[0])
-        self.assertIn('zlib', output[1])
+        output = sorted(output)
+        self.assertIn('libuv', output[0])
+        self.assertIn('luvi', output[1])
         self.assertIn('rex', output[2])
-        self.assertIn('libuv', output[3])
-        self.assertIn('ssl', output[4])
+        self.assertIn('ssl', output[3])
+        self.assertIn('zlib', output[4])
 
     def test_run(self):
         self.login()
-- 
2.31.1

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

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

* Re: [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump.
  2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
                   ` (5 preceding siblings ...)
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 6/6] support/testing: test_luvi: make luvi test reproducible Romain Naour
@ 2021-11-12 22:40 ` Yann E. MORIN
  6 siblings, 0 replies; 9+ messages in thread
From: Yann E. MORIN @ 2021-11-12 22:40 UTC (permalink / raw)
  To: Romain Naour; +Cc: buildroot

Romain, All,

On 2021-11-12 20:06 +0100, Romain Naour spake thusly:
> Luajit package has been recently updated to the latest commit in the
> master branch [1]. But we discovered several problems:
> 
>  - LUAJIT_VERSION doesn't contain the luajit version anymore but a commit hash
>  - With Luajit, luvi doesn't work without rng support enabled.
>  - Building for 64-bit target requires a 64-bit host for all target platform
>  - luajit and host-luajit needs to be built with the same option, so the
>    bytecode generated by host-luajit is valid on luajit.
>  - iteration with pairs() does not result in the same order since luajit 2.1.

Whole series applied to master, thanks!

Regards,
Yann E. MORIN.

> [1] 9450b53c8e06f1b5a75840b82c0f4663a5d75c45
> [2] https://gitlab.com/buildroot.org/buildroot/-/jobs/1710552605
> 
> Best regards,
> Romain
> 
> Francois Perrad (1):
>   package/luajit: disable 64 bit GC objects
> 
> Romain Naour (5):
>   package/luvi: don't use LUAJIT_VERSION for the luajit installation
>     path
>   support/testing: test_luvi: switch to armv5 to boot with rng support
>     enabled
>   package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
>   package/luajit: building for 64-bit target requires a 64-bit host for
>     all platform
>   support/testing: test_luvi: make luvi test reproducible
> 
>  package/luajit/Config.in                   | 12 +++++++-----
>  package/luajit/luajit.mk                   |  2 ++
>  package/luvi/luvi.mk                       |  8 ++++++--
>  support/testing/tests/package/test_luvi.py | 12 ++++++------
>  4 files changed, 21 insertions(+), 13 deletions(-)
> 
> -- 
> 2.31.1
> 
> _______________________________________________
> 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] 9+ messages in thread

* Re: [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
  2021-11-12 19:06 ` [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS Romain Naour
@ 2021-11-12 22:41   ` Yann E. MORIN
  0 siblings, 0 replies; 9+ messages in thread
From: Yann E. MORIN @ 2021-11-12 22:41 UTC (permalink / raw)
  To: Romain Naour; +Cc: buildroot

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

-- 
.-----------------.--------------------.------------------.--------------------.
|  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] 9+ messages in thread

end of thread, other threads:[~2021-11-12 22:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 19:06 [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Romain Naour
2021-11-12 19:06 ` [Buildroot] [PATCH v2 1/6] package/luvi: don't use LUAJIT_VERSION for the luajit installation path Romain Naour
2021-11-12 19:06 ` [Buildroot] [PATCH v2 2/6] support/testing: test_luvi: switch to armv5 to boot with rng support enabled Romain Naour
2021-11-12 19:06 ` [Buildroot] [PATCH v2 3/6] package/luajit: rework BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS Romain Naour
2021-11-12 22:41   ` Yann E. MORIN
2021-11-12 19:06 ` [Buildroot] [PATCH v2 4/6] package/luajit: building for 64-bit target requires a 64-bit host for all platform Romain Naour
2021-11-12 19:06 ` [Buildroot] [PATCH v2 5/6] package/luajit: disable 64 bit GC objects Romain Naour
2021-11-12 19:06 ` [Buildroot] [PATCH v2 6/6] support/testing: test_luvi: make luvi test reproducible Romain Naour
2021-11-12 22:40 ` [Buildroot] [PATCH v2 0/6] rework luvi test in gitlab after luajit version bump Yann E. MORIN

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.