From fb8faa16ea6952889114c10a2631f310777f4135 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 20 Nov 2013 16:39:20 +0000 Subject: hwstub: only load stmp files on stmp targets Change-Id: I9266ec6db457b1d649cbdcb6c9bd1d0f3223b867 --- utils/hwstub/tools/hwstub_shell.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/hwstub/tools/hwstub_shell.cpp') diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 0130828043..1e77e511ba 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp @@ -293,6 +293,10 @@ bool my_lua_import_hwstub() lua_setfield(g_lua, -2, "name"); lua_pushinteger(g_lua, g_hwdev_target.id); lua_setfield(g_lua, -2, "id"); + lua_pushinteger(g_lua, HWSTUB_TARGET_UNK); + lua_setfield(g_lua, -2, "UNK"); + lua_pushinteger(g_lua, HWSTUB_TARGET_STMP); + lua_setfield(g_lua, -2, "STMP"); lua_setfield(g_lua, -2, "target"); if(g_hwdev_target.id == HWSTUB_TARGET_STMP) -- cgit v1.2.3