linux68k builds now.
This commit is contained in:
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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user