[autobuild] Fix asm-only and no-gcc build
git-svn-id: svn://kolibrios.org@9797 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -12,7 +12,7 @@ LDFLAGS = " -nostdlib -shared -s --image-base 0 --file-alignment 512 --section-a
|
||||
NAME = "geode.sys"
|
||||
|
||||
compile_gcc{ "geode.c" }
|
||||
OBJS.extra_inputs = {"../../ddk/libcore.a", "../../ddk/libddk.a"}
|
||||
OBJS.extra_inputs = {"../../ddk/<libddk>", "../../ddk/<libcore>"}
|
||||
|
||||
LIBS = " -lddk -lcore "
|
||||
tup.rule(OBJS, "kos32-ld" .. LDFLAGS .. "%f -o %o " .. LIBS .. tup.getconfig("KPACK_CMD"), NAME);
|
||||
|
@@ -1,7 +1,6 @@
|
||||
if tup.getconfig("NO_GCC") ~= "" then return end
|
||||
if tup.getconfig("HELPERDIR") == ""
|
||||
then
|
||||
if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation
|
||||
HELPERDIR = "../../programs"
|
||||
end
|
||||
tup.include(HELPERDIR .. "/use_gcc.lua")
|
||||
@@ -73,9 +72,6 @@ DDK_SRC = {
|
||||
}
|
||||
|
||||
compile_gcc(DDK_SRC)
|
||||
tup.rule(OBJS, "kos32-ar -crs %o %f", "libddk.a");
|
||||
tup.rule(OBJS, "kos32-ar -crs %o %f", {"libddk.a", extra_outputs={"<libddk>"}});
|
||||
tup.rule("core.S", "kos32-as %f -o %o", "core.o");
|
||||
tup.rule("core.o", "kos32-ld -shared -s --out-implib %o --output-def core.def -o core.dll %f", {"libcore.a", extra_outputs={"core.def", "core.dll"}});
|
||||
|
||||
|
||||
|
||||
tup.rule("core.o", "kos32-ld -shared -s --out-implib %o --output-def core.def -o core.dll %f", {"libcore.a", extra_outputs={"core.def", "core.dll", "<libcore>"}});
|
||||
|
@@ -14,7 +14,7 @@ LDFLAGS = " -nostdlib -T acpi.lds -shared -s --image-base 0 --file-alignment 512
|
||||
NAME = "acpi.sys"
|
||||
|
||||
compile_gcc{ "acpi.c", "scan.c", "pci_root.c", "pci_bind.c", "pci_irq.c", "pci/probe.c", "pci/pci.c", "pci/access.c" }
|
||||
OBJS.extra_inputs = {"../ddk/libcore.a", "../ddk/libddk.a", "./acpica/libacpica.a"}
|
||||
OBJS.extra_inputs = {"../ddk/<libcore>", "../ddk/<libddk>", "./acpica/libacpica.a"}
|
||||
|
||||
LIBS = " -lacpica -lgcc -lddk -lcore "
|
||||
tup.rule(OBJS, "kos32-ld" .. LDFLAGS .. "%f -o %o " .. LIBS .. tup.getconfig("KPACK_CMD"), NAME);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_NASM") ~= "" then return end
|
||||
if tup.getconfig("NO_GCC") ~= "" then return end
|
||||
tup.include("../../../programs/use_gcc.lua")
|
||||
|
||||
|
||||
|
@@ -1,7 +1,6 @@
|
||||
if tup.getconfig("NO_GCC") ~= "" then return end
|
||||
if tup.getconfig("HELPERDIR") == ""
|
||||
then
|
||||
if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation
|
||||
HELPERDIR = "../../../programs"
|
||||
end
|
||||
tup.include(HELPERDIR .. "/use_gcc.lua")
|
||||
@@ -16,6 +15,6 @@ compile_gcc{
|
||||
"k10temp.c", "../pci.c", "../amd_nb.c", "../cpu_detect.c", "../e_msr.c"
|
||||
}
|
||||
|
||||
OBJS.extra_inputs = {"../../ddk/libcore.a", "../../ddk/libddk.a"}
|
||||
OBJS.extra_inputs = {"../../ddk/<libcore>", "../../ddk/<libddk>"}
|
||||
|
||||
tup.rule(OBJS, "kos32-ld" .. LDFLAGS .. "%f -o %o " .. LIBS .. tup.getconfig("KPACK_CMD"), "k10temp.sys");
|
||||
|
Reference in New Issue
Block a user