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

@ -7,6 +7,7 @@ vars.ackcflags = {
vars.plats = { vars.plats = {
"cpm", "cpm",
"linux386", "linux386",
"linux68k",
"pc86", "pc86",
} }
@ -19,6 +20,7 @@ installable {
"lang/pc/comp+pkg", "lang/pc/comp+pkg",
"plat/cpm+pkg", "plat/cpm+pkg",
"plat/linux386+pkg", "plat/linux386+pkg",
"plat/linux68k+pkg",
"plat/pc86+pkg", "plat/pc86+pkg",
"util/ack+pkg", "util/ack+pkg",
"util/amisc+pkg", "util/amisc+pkg",

View file

@ -0,0 +1,8 @@
for _, plat in ipairs(vars.plats) do
acklibrary {
name = "lib_"..plat,
srcs = { "./*.s" },
vars = { plat = plat },
}
end

View file

@ -0,0 +1,8 @@
for _, plat in ipairs(vars.plats) do
acklibrary {
name = "lib_"..plat,
srcs = { "./*.s" },
vars = { plat = plat },
}
end

View file

@ -12,7 +12,7 @@ rscid = "$Id$"
* * * *
********************************/ ********************************/
#include <whichone.h> #include "whichone.h"
#if TBL68881 && ! TBL68020 #if TBL68881 && ! TBL68020
Something very wrong here! Something very wrong here!

View file

@ -12,7 +12,8 @@ definerule("build_ncg",
srcs = {}, srcs = {},
hdrs = { hdrs = {
"mach/proto/ncg/*.h", "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, name = e.name,
srcs = { srcs = {
"mach/proto/ncg/*.c", "mach/proto/ncg/*.c",
"mach/"..e.arch.."/ncg/mach.h",
matching(filenamesof(tables), "%.c$") matching(filenamesof(tables), "%.c$")
}, },
deps = { deps = {

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