mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
Turn on rpc if boot mode is set to luarpc, regardless of whether BUILD_RPC is
set.
This commit is contained in:
parent
28b507f4d8
commit
cd6fff2696
@ -5,7 +5,7 @@
|
||||
#include "platform_conf.h"
|
||||
#include "luarpc_rpc.h"
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC )
|
||||
|
||||
// Setup Transport
|
||||
void transport_init (Transport *tpt)
|
||||
@ -135,4 +135,4 @@ void transport_close (Transport *tpt)
|
||||
tpt->fd = INVALID_TRANSPORT;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -40,7 +40,7 @@ void *alloca(size_t);
|
||||
#include "luarpc_rpc.h"
|
||||
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC )
|
||||
|
||||
// Support for Compiling with & without rotables
|
||||
#ifdef LUA_OPTIMIZE_MEMORY
|
||||
|
@ -29,10 +29,13 @@
|
||||
// *****************************************************************************
|
||||
// Auxiliary libraries that will be compiled for this platform
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
@ -61,10 +61,13 @@
|
||||
#define ADCLINE
|
||||
#endif
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef PS_LIB_TABLE_NAME
|
||||
|
@ -29,10 +29,13 @@
|
||||
// *****************************************************************************
|
||||
// Auxiliary libraries that will be compiled for this platform
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
@ -67,10 +67,13 @@
|
||||
// *****************************************************************************
|
||||
// Auxiliary libraries that will be compiled for this platform
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
@ -51,10 +51,13 @@
|
||||
#define ADCLINE
|
||||
#endif
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
@ -28,10 +28,13 @@
|
||||
// *****************************************************************************
|
||||
// Auxiliary libraries that will be compiled for this platform
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
@ -77,10 +77,13 @@ u32 SCU_GetMCLKFreqValue();
|
||||
// The name of the platform specific libs table
|
||||
#define PS_LIB_TABLE_NAME "str9"
|
||||
|
||||
#ifdef BUILD_RPC
|
||||
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
|
||||
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
|
||||
#else
|
||||
#define RPCLINE
|
||||
#if !defined( BUILD_RPC )
|
||||
#define BUILD_RPC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LUA_PLATFORM_LIBS_ROM\
|
||||
|
Loading…
x
Reference in New Issue
Block a user