#include <l4/re/env>
#include <l4/sys/kip.h>
#include <l4/util/kip.h>
+#include <l4/bid_config.h>
#include <lua.h>
#include <lauxlib.h>
static int archstr(lua_State *l)
{
-#if defined(ARCH_x86)
- const char *s = "x86";
-#elif defined(ARCH_amd64)
- const char *s = "amd64";
-#elif defined(ARCH_arm)
- const char *s = "arm";
-#elif defined(ARCH_ppc32)
- const char *s = "ppc32";
-#elif defined(ARCH_sparc)
- const char *s = "sparc";
-#else
-#error Add your arch-string!
-#endif
- lua_pushstring(l, s);
+ lua_pushstring(l, CONFIG_BUILD_ARCH);
return 1;
}
void init(lua_State *l)
{
- luaL_register(l, package, empty_reg);
+ lua_require_module(l, package);
// L4.Info
lua_newtable(l);