aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-15 22:39:04 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-15 22:39:04 +0200
commit7a1ea510a9fc43ccbc257601b149a90920332e13 (patch)
tree75ac252bb8ce029c62d6834e4ca927f59eaf5769 /src/sysbin
parentd415aca695956c79110c88fa58c12bf55c0e2163 (diff)
downloadkogata-7a1ea510a9fc43ccbc257601b149a90920332e13.tar.gz
kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.zip
Add Lua source, not compiled yet as libc/libm functions remain unimplemented
Diffstat (limited to 'src/sysbin')
-rw-r--r--src/sysbin/bam.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sysbin/bam.lua b/src/sysbin/bam.lua
index 819bc43..d223beb 100644
--- a/src/sysbin/bam.lua
+++ b/src/sysbin/bam.lua
@@ -1,17 +1,17 @@
local function sysbin_settings(name)
local s = TableDeepCopy(user_settings)
s.link.flags:Add("-T src/sysbin/linker.ld",
- "-Xlinker -Map=build/" .. name .. ".map")
+ "-Xlinker -Map=build/sysbin/" .. name .. ".map")
return s
end
-local function sysbin_exe(name)
+local function sysbin_exe(name, moredeps)
local s = sysbin_settings(name)
local src = Collect('src/sysbin/' .. name .. '/*.c')
local obj = Compile(s, src)
- return Link(s, name .. ".bin", {obj, libkogata})
+ return Link(s, 'sysbin/' .. name .. ".bin", {obj, libkogata, moredeps})
end
sysbin = {
@@ -19,5 +19,6 @@ sysbin = {
sysbin_exe('giosrv'),
sysbin_exe('login'),
sysbin_exe('terminal'),
+ --sysbin_exe('shell', {liblua, liblualib}),
sysbin_exe('shell'),
}