linux68k builds now.

This commit is contained in:
David Given
2016-08-14 11:34:18 +02:00
parent fb2a42a2db
commit 38fa6941d5
9 changed files with 103 additions and 3 deletions

View 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",
}
}

View 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",
}
}

View 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
}

View File

@@ -0,0 +1,12 @@
acklibrary {
name = "lib",
srcs = {
"./*.s",
"plat/linux/libsys/*.c",
"plat/linux/libsys/*.s",
},
vars = {
plat = "linux68k"
}
}