rockbox/utils/hwstub/tools/lua/load.lua
Marcin Bukat e99c036ed1 hwstub_shell: add support for call and jump
Change-Id: Ie09d0db21831b79255da858bada7382a08ff4eef
Reviewed-on: http://gerrit.rockbox.org/1052
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Tested: Marcin Bukat <marcin.bukat@gmail.com>
2014-11-28 19:38:02 +01:00

14 lines
453 B
Lua

package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path
if hwstub.dev.target.id == hwstub.dev.target.STMP then
require "stmp"
elseif hwstub.dev.target.id == hwstub.dev.target.PP then
require "pp"
elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
require "rk27xx"
elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
require "atj"
end
require "hwlib"
require "dumper"