1config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS 2 bool 3 default y if BR2_arm || BR2_armeb || BR2_aarch64 4 default y if BR2_i386 || BR2_x86_64 5 default y if (BR2_mips || BR2_mipsel) && !BR2_MIPS_SOFT_FLOAT \ 6 && !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6 7 default y if BR2_powerpc 8 # -m32 flag is used for 32bit builds and host-luajit has 9 # limited architecture support 10 depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" 11 # Building for 64-bit target requires a 64-bit host 12 depends on !BR2_ARCH_IS_64 || BR2_HOSTARCH = "x86_64" 13 14config BR2_PACKAGE_LUAJIT 15 bool "luajit" 16 depends on !BR2_STATIC_LIBS # dlopen 17 # Luajit is only available for some target architectures, and 18 # has some complexity wrt 32/64. See luajit.mk for details. 19 depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS 20 # luajit.mk uses the "-m32" compiler option to build 32bit 21 # binaries, so check if that option is supported. See 22 # luajit.mk for details. 23 select BR2_PACKAGE_HAS_LUAINTERPRETER 24 select BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION_5_1 25 select BR2_HOSTARCH_NEEDS_IA32_COMPILER if !BR2_ARCH_IS_64 26 help 27 LuaJIT implements the full set of language features defined 28 by Lua 5.1. The virtual machine (VM) is API- and 29 ABI-compatible to the standard Lua interpreter and can be 30 deployed as a drop-in replacement. 31 32 https://luajit.org/luajit.html 33 34if BR2_PACKAGE_LUAJIT 35 36config BR2_PACKAGE_PROVIDES_LUAINTERPRETER 37 default "luajit" 38 39config BR2_PACKAGE_LUAJIT_COMPAT52 40 bool "Lua 5.2 compatibility" 41 help 42 Compile with Lua 5.2 compatibility. 43 44endif 45 46comment "luajit needs a toolchain w/ dynamic library" 47 depends on BR2_STATIC_LIBS 48