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