summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/tools/lua/load.lua
blob: cafa82751e7ca9c39b7a3f756d5f5fdeda6645a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path
require "stmp"
require "pp"
require "rk27xx"
require "atj"
require "jz"
require "hwlib"
require "dumper"

LOAD = {}

function LOAD.init()
    if hwstub.dev.target.id == hwstub.dev.target.STMP then
        STMP.init()
    elseif hwstub.dev.target.id == hwstub.dev.target.PP then
        PP.init()
    elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
        RK27XX.init()
    elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
        ATJ.init()
    elseif hwstub.dev.target.id == hwstub.dev.target.JZ then
        JZ.init()
    end
end