linux68k builds now.
This commit is contained in:
parent
fb2a42a2db
commit
38fa6941d5
|
@ -7,6 +7,7 @@ vars.ackcflags = {
|
|||
vars.plats = {
|
||||
"cpm",
|
||||
"linux386",
|
||||
"linux68k",
|
||||
"pc86",
|
||||
}
|
||||
|
||||
|
@ -19,6 +20,7 @@ installable {
|
|||
"lang/pc/comp+pkg",
|
||||
"plat/cpm+pkg",
|
||||
"plat/linux386+pkg",
|
||||
"plat/linux68k+pkg",
|
||||
"plat/pc86+pkg",
|
||||
"util/ack+pkg",
|
||||
"util/amisc+pkg",
|
||||
|
|
8
mach/m68020/libem/build.lua
Normal file
8
mach/m68020/libem/build.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
for _, plat in ipairs(vars.plats) do
|
||||
acklibrary {
|
||||
name = "lib_"..plat,
|
||||
srcs = { "./*.s" },
|
||||
vars = { plat = plat },
|
||||
}
|
||||
end
|
||||
|
8
mach/m68020/libend/build.lua
Normal file
8
mach/m68020/libend/build.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
for _, plat in ipairs(vars.plats) do
|
||||
acklibrary {
|
||||
name = "lib_"..plat,
|
||||
srcs = { "./*.s" },
|
||||
vars = { plat = plat },
|
||||
}
|
||||
end
|
||||
|
|
@ -12,7 +12,7 @@ rscid = "$Id$"
|
|||
* *
|
||||
********************************/
|
||||
|
||||
#include <whichone.h>
|
||||
#include "whichone.h"
|
||||
|
||||
#if TBL68881 && ! TBL68020
|
||||
Something very wrong here!
|
||||
|
|
|
@ -12,7 +12,8 @@ definerule("build_ncg",
|
|||
srcs = {},
|
||||
hdrs = {
|
||||
"mach/proto/ncg/*.h",
|
||||
"mach/"..e.arch.."/ncg/mach*"
|
||||
"mach/"..e.arch.."/ncg/mach.c",
|
||||
"mach/"..e.arch.."/ncg/*.h",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,7 +26,6 @@ definerule("build_ncg",
|
|||
name = e.name,
|
||||
srcs = {
|
||||
"mach/proto/ncg/*.c",
|
||||
"mach/"..e.arch.."/ncg/mach.h",
|
||||
matching(filenamesof(tables), "%.c$")
|
||||
},
|
||||
deps = {
|
||||
|
|
25
plat/linux68k/build-pkg.lua
Normal file
25
plat/linux68k/build-pkg.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
ackfile {
|
||||
name = "boot",
|
||||
srcs = { "./boot.s" },
|
||||
vars = { plat = "linux68k" }
|
||||
}
|
||||
|
||||
build_plat_libs {
|
||||
name = "libs",
|
||||
arch = "m68020",
|
||||
plat = "linux68k",
|
||||
}
|
||||
|
||||
installable {
|
||||
name = "pkg",
|
||||
map = {
|
||||
"+tools",
|
||||
"+libs",
|
||||
"./include+pkg",
|
||||
["$(PLATIND)/linux68k/boot.o"] = "+boot",
|
||||
["$(PLATIND)/linux68k/libsys.a"] = "./libsys+lib",
|
||||
}
|
||||
}
|
||||
|
21
plat/linux68k/build-tools.lua
Normal file
21
plat/linux68k/build-tools.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
build_as {
|
||||
name = "as",
|
||||
arch = "m68020",
|
||||
}
|
||||
|
||||
build_ncg {
|
||||
name = "ncg",
|
||||
arch = "m68020",
|
||||
}
|
||||
|
||||
return installable {
|
||||
name = "tools",
|
||||
map = {
|
||||
["$(PLATDEP)/linux68k/as"] = "+as",
|
||||
["$(PLATDEP)/linux68k/ncg"] = "+ncg",
|
||||
["$(PLATIND)/descr/linux68k"] = "./descr",
|
||||
"util/opt+pkg",
|
||||
}
|
||||
}
|
24
plat/linux68k/include/build.lua
Normal file
24
plat/linux68k/include/build.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
headermap = {}
|
||||
packagemap = {}
|
||||
|
||||
local function addheader(h)
|
||||
headermap[h] = "./"..h
|
||||
packagemap["$(PLATIND)/linux68k/include/"..h] = "./"..h
|
||||
end
|
||||
|
||||
addheader("ack/config.h")
|
||||
addheader("sys/ioctl.h")
|
||||
addheader("unistd.h")
|
||||
|
||||
acklibrary {
|
||||
name = "headers",
|
||||
hdrs = headermap
|
||||
}
|
||||
|
||||
installable {
|
||||
name = "pkg",
|
||||
map = packagemap
|
||||
}
|
||||
|
12
plat/linux68k/libsys/build.lua
Normal file
12
plat/linux68k/libsys/build.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
acklibrary {
|
||||
name = "lib",
|
||||
srcs = {
|
||||
"./*.s",
|
||||
"plat/linux/libsys/*.c",
|
||||
"plat/linux/libsys/*.s",
|
||||
},
|
||||
vars = {
|
||||
plat = "linux68k"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue