forked from KolibriOS/kolibrios
[KERNEL][TEST] Add test kernel to autobuild
git-svn-id: svn://kolibrios.org@9250 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0b73fe657f
commit
5a7c52a4c4
@ -2,6 +2,8 @@ if tup.getconfig("NO_FASM") ~= "" then return end
|
|||||||
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
|
tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
|
||||||
tup.rule({"bootbios.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o ", "bootbios.bin")
|
tup.rule({"bootbios.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o ", "bootbios.bin")
|
||||||
tup.rule({"bootbios.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o -dextended_primary_loader=1", "bootbios.bin.ext_loader")
|
tup.rule({"bootbios.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o -dextended_primary_loader=1", "bootbios.bin.ext_loader")
|
||||||
|
tup.rule({"bootbios.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o -dpretest_build=1", "bootbios.bin.pretest")
|
||||||
tup.rule({"kernel.asm", extra_inputs = {"bootbios.bin", "lang.inc"}}, "fasm -m 65536 %f %o " .. tup.getconfig("KERPACK_CMD"), "kernel.mnt")
|
tup.rule({"kernel.asm", extra_inputs = {"bootbios.bin", "lang.inc"}}, "fasm -m 65536 %f %o " .. tup.getconfig("KERPACK_CMD"), "kernel.mnt")
|
||||||
tup.rule({"kernel.asm", extra_inputs = {"bootbios.bin.ext_loader", "lang.inc"}}, "fasm -m 65536 %f %o -dextended_primary_loader=1" .. tup.getconfig("KERPACK_CMD"), "kernel.mnt.ext_loader")
|
tup.rule({"kernel.asm", extra_inputs = {"bootbios.bin.ext_loader", "lang.inc"}}, "fasm -m 65536 %f %o -dextended_primary_loader=1" .. tup.getconfig("KERPACK_CMD"), "kernel.mnt.ext_loader")
|
||||||
|
tup.rule({"kernel.asm", extra_inputs = {"bootbios.bin.pretest", "lang.inc"}}, "fasm -m 65536 %f %o -dpretest_build=1 -ddebug_com_base=0xe9" .. tup.getconfig("KERPACK_CMD"), "kernel.mnt.pretest")
|
||||||
tup.rule({"kernel.asm", extra_inputs = {"lang.inc"}}, "fasm -m 65536 %f %o -dUEFI=1 -dextended_primary_loader=1", "kolibri.krn")
|
tup.rule({"kernel.asm", extra_inputs = {"lang.inc"}}, "fasm -m 65536 %f %o -dUEFI=1 -dextended_primary_loader=1", "kolibri.krn")
|
||||||
|
@ -31,12 +31,13 @@ def stage(name, command, mute = False):
|
|||||||
execute(command, mute = mute)
|
execute(command, mute = mute)
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
|
||||||
|
# Get IMG
|
||||||
if not os.path.exists("kolibri_test.img"):
|
if not os.path.exists("kolibri_test.img"):
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
execute("wget -q --show-progress http://builds.kolibrios.org/eng/data/data/kolibri.img -O kolibri_test.img")
|
execute("wget -q --show-progress http://builds.kolibrios.org/eng/data/data/kolibri.img -O kolibri_test.img")
|
||||||
else:
|
else:
|
||||||
builds = sys.argv[1]
|
builds_eng = sys.argv[1]
|
||||||
execute(f"cp {builds}/data/data/kolibri.img kolibri_test.img")
|
execute(f"cp {builds_eng}/data/data/kolibri.img kolibri_test.img")
|
||||||
|
|
||||||
# Remove old kernel (may fail if we removed it before so no check here)
|
# Remove old kernel (may fail if we removed it before so no check here)
|
||||||
os.system("mdel -i kolibri_test.img ::kernel.mnt > /dev/null")
|
os.system("mdel -i kolibri_test.img ::kernel.mnt > /dev/null")
|
||||||
@ -50,12 +51,13 @@ if floppy_image_clusters - free_clusters < 500:
|
|||||||
execute("mdeltree -i kolibri_test.img ::DEMOS", mute = True)
|
execute("mdeltree -i kolibri_test.img ::DEMOS", mute = True)
|
||||||
execute("mdeltree -i kolibri_test.img ::3D", mute = True)
|
execute("mdeltree -i kolibri_test.img ::3D", mute = True)
|
||||||
|
|
||||||
# Build kernel with debug output
|
# Get test kernel
|
||||||
stage("Building bootbios.bin.pretest",
|
if not os.path.exists("kernel.mnt.pretest"):
|
||||||
"fasm -m 65536 -dpretest_build=1 bootbios.asm bootbios.bin.pretest", mute = True)
|
if len(sys.argv) == 1:
|
||||||
|
execute("wget -q --show-progress http://builds.kolibrios.org/eng/data/kernel/trunk/kernel.mnt.pretest -O kernel.mnt.pretest")
|
||||||
stage("Building kernel.mnt.pretest",
|
else:
|
||||||
"fasm -m 65536 -dpretest_build=1 -ddebug_com_base=0xe9 kernel.asm kernel.mnt.pretest", mute = True)
|
builds_eng = sys.argv[1]
|
||||||
|
execute("cp {builds_eng}/data/kernel/trunk/kernel.mnt.pretest kernel.mnt.pretest", mute = True)
|
||||||
|
|
||||||
# Put the kernel into IMG
|
# Put the kernel into IMG
|
||||||
execute("mcopy -D o -i kolibri_test.img kernel.mnt.pretest ::kernel.mnt", mute = True)
|
execute("mcopy -D o -i kolibri_test.img kernel.mnt.pretest ::kernel.mnt", mute = True)
|
||||||
|
Loading…
Reference in New Issue
Block a user