Raspberry Pi backend now builds.
This commit is contained in:
parent
23e8d5af5a
commit
204f932ed2
|
@ -9,6 +9,7 @@ vars.plats = {
|
|||
"linux386",
|
||||
"linux68k",
|
||||
"pc86",
|
||||
"rpi",
|
||||
}
|
||||
|
||||
installable {
|
||||
|
@ -21,6 +22,7 @@ installable {
|
|||
"plat/cpm+pkg",
|
||||
"plat/linux386+pkg",
|
||||
"plat/linux68k+pkg",
|
||||
"plat/rpi+pkg",
|
||||
"plat/pc86+pkg",
|
||||
"util/ack+pkg",
|
||||
"util/amisc+pkg",
|
||||
|
|
|
@ -10,7 +10,10 @@ definerule("build_as",
|
|||
local archlib = clibrary {
|
||||
name = e.name.."/archlib",
|
||||
srcs = {},
|
||||
hdrs = { "mach/"..e.arch.."/as/mach*.c" }
|
||||
hdrs = {
|
||||
"mach/"..e.arch.."/as/mach*.c",
|
||||
"mach/"..e.arch.."/as/*.h"
|
||||
}
|
||||
}
|
||||
|
||||
local preprocessedy = cppfile {
|
||||
|
|
8
mach/vc4/libem/build.lua
Normal file
8
mach/vc4/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/vc4/libend/build.lua
Normal file
8
mach/vc4/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
|
||||
|
25
plat/rpi/build-pkg.lua
Normal file
25
plat/rpi/build-pkg.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
ackfile {
|
||||
name = "boot",
|
||||
srcs = { "./boot.s" },
|
||||
vars = { plat = "rpi" }
|
||||
}
|
||||
|
||||
build_plat_libs {
|
||||
name = "libs",
|
||||
arch = "vc4",
|
||||
plat = "rpi",
|
||||
}
|
||||
|
||||
installable {
|
||||
name = "pkg",
|
||||
map = {
|
||||
"+tools",
|
||||
"+libs",
|
||||
"./include+pkg",
|
||||
["$(PLATIND)/rpi/boot.o"] = "+boot",
|
||||
["$(PLATIND)/rpi/libsys.a"] = "./libsys+lib",
|
||||
}
|
||||
}
|
||||
|
21
plat/rpi/build-tools.lua
Normal file
21
plat/rpi/build-tools.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
build_as {
|
||||
name = "as",
|
||||
arch = "vc4",
|
||||
}
|
||||
|
||||
build_ncg {
|
||||
name = "ncg",
|
||||
arch = "vc4",
|
||||
}
|
||||
|
||||
return installable {
|
||||
name = "tools",
|
||||
map = {
|
||||
["$(PLATDEP)/rpi/as"] = "+as",
|
||||
["$(PLATDEP)/rpi/ncg"] = "+ncg",
|
||||
["$(PLATIND)/descr/rpi"] = "./descr",
|
||||
"util/opt+pkg",
|
||||
}
|
||||
}
|
27
plat/rpi/include/build.lua
Normal file
27
plat/rpi/include/build.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
include("plat/build.lua")
|
||||
|
||||
headermap = {}
|
||||
packagemap = {}
|
||||
|
||||
local function addheader(h)
|
||||
headermap[h] = "./"..h
|
||||
packagemap["$(PLATIND)/rpi/include/"..h] = "./"..h
|
||||
end
|
||||
|
||||
addheader("ack/config.h")
|
||||
addheader("pi.h")
|
||||
addheader("sys/select.h")
|
||||
addheader("termios.h")
|
||||
addheader("unistd.h")
|
||||
|
||||
acklibrary {
|
||||
name = "headers",
|
||||
hdrs = headermap
|
||||
}
|
||||
|
||||
installable {
|
||||
name = "pkg",
|
||||
map = packagemap
|
||||
}
|
||||
|
||||
|
15
plat/rpi/libsys/build.lua
Normal file
15
plat/rpi/libsys/build.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
acklibrary {
|
||||
name = "lib",
|
||||
srcs = {
|
||||
"./*.c",
|
||||
"./*.s",
|
||||
},
|
||||
deps = {
|
||||
"lang/cem/libcc.ansi/headers+headers",
|
||||
"plat/rpi/include+headers",
|
||||
},
|
||||
vars = {
|
||||
plat = "rpi"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue