forked from KolibriOS/kolibrios
[KERNEL][TEST] Save UMKa C objects in umka/build/
git-svn-id: svn://kolibrios.org@9330 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c58fcd5efe
commit
134e54dcbb
@ -192,7 +192,7 @@ def build_umka():
|
|||||||
return
|
return
|
||||||
if os.path.exists("umka_shell"):
|
if os.path.exists("umka_shell"):
|
||||||
return
|
return
|
||||||
os.makedirs("umka/build", exist_ok = True)
|
os.makedirs("umka/build/linux", exist_ok = True)
|
||||||
sources = [ "umka_shell.c",
|
sources = [ "umka_shell.c",
|
||||||
"shell.c",
|
"shell.c",
|
||||||
"trace.c",
|
"trace.c",
|
||||||
@ -204,11 +204,15 @@ def build_umka():
|
|||||||
"linux/thread.c",
|
"linux/thread.c",
|
||||||
"util.c" ]
|
"util.c" ]
|
||||||
sources = [f"umka/{f}" for f in sources]
|
sources = [f"umka/{f}" for f in sources]
|
||||||
|
objects = []
|
||||||
for source in sources:
|
for source in sources:
|
||||||
gcc(source, f"{source}.o")
|
object_path = source.replace("umka/", "umka/build/")
|
||||||
objects = " ".join([ f"{s}.o" for s in sources ])
|
object_path = f"{object_path}.o"
|
||||||
|
gcc(source, object_path)
|
||||||
|
objects.append(object_path)
|
||||||
build_umka_asm()
|
build_umka_asm()
|
||||||
objects += " umka/build/umka.o"
|
objects.append("umka/build/umka.o")
|
||||||
|
objects = " ".join(objects)
|
||||||
os.system(f"gcc -m32 -no-pie -o umka_shell -static -T umka/umka.ld {objects}")
|
os.system(f"gcc -m32 -no-pie -o umka_shell -static -T umka/umka.ld {objects}")
|
||||||
|
|
||||||
def run_umka_test(test_file_path):
|
def run_umka_test(test_file_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user