diff options
Diffstat (limited to 'utils/hwstub/tools/lua/load.lua')
-rw-r--r-- | utils/hwstub/tools/lua/load.lua | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua index f636360c4c..cafa82751e 100644 --- a/utils/hwstub/tools/lua/load.lua +++ b/utils/hwstub/tools/lua/load.lua | |||
@@ -1,14 +1,24 @@ | |||
1 | package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path | 1 | package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lua"),2) .. ";" .. package.path |
2 | 2 | require "stmp" | |
3 | if hwstub.dev.target.id == hwstub.dev.target.STMP then | 3 | require "pp" |
4 | require "stmp" | 4 | require "rk27xx" |
5 | elseif hwstub.dev.target.id == hwstub.dev.target.PP then | 5 | require "atj" |
6 | require "pp" | 6 | require "jz" |
7 | elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then | ||
8 | require "rk27xx" | ||
9 | elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then | ||
10 | require "atj" | ||
11 | end | ||
12 | |||
13 | require "hwlib" | 7 | require "hwlib" |
14 | require "dumper" | 8 | require "dumper" |
9 | |||
10 | LOAD = {} | ||
11 | |||
12 | function LOAD.init() | ||
13 | if hwstub.dev.target.id == hwstub.dev.target.STMP then | ||
14 | STMP.init() | ||
15 | elseif hwstub.dev.target.id == hwstub.dev.target.PP then | ||
16 | PP.init() | ||
17 | elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then | ||
18 | RK27XX.init() | ||
19 | elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then | ||
20 | ATJ.init() | ||
21 | elseif hwstub.dev.target.id == hwstub.dev.target.JZ then | ||
22 | JZ.init() | ||
23 | end | ||
24 | end \ No newline at end of file | ||