Created a few shell scripts to update and create an build of the Kernel/Operating System.
A python script can be run to run the scripts in the correct order and immediatly try the build.
This commit is contained in:
@ -2,24 +2,23 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
print("Building BarinkOS")
|
||||
|
||||
print("Give BarinkOS A Test Run")
|
||||
|
||||
# list and run build scripts
|
||||
print("Running build-scripts")
|
||||
os.chdir("scripts")
|
||||
|
||||
scripts=os.listdir()
|
||||
currentScript=os.path.basename(__file__)
|
||||
|
||||
if currentScript in scripts:
|
||||
scripts.remove(currentScript)
|
||||
os.chdir("../CoreLib")
|
||||
print("Building CoreLib")
|
||||
subprocess.call("make")
|
||||
|
||||
os.chdir("../kernel")
|
||||
print("Building kernel")
|
||||
subprocess.call("make")
|
||||
|
||||
for script in scripts:
|
||||
print(os.getcwd())
|
||||
print("Running:" + script)
|
||||
subprocess.call(script, cwd=os.getcwd())
|
||||
|
||||
os.chdir("..")
|
||||
os.chdir("..")
|
||||
subprocess.call("scripts/update_harddrive.sh", cwd=os.getcwd())
|
||||
subprocess.call("scripts/create_symbol_lookup.sh", cwd=os.getcwd())
|
||||
subprocess.call("scripts/run_qemu.sh", cwd=os.getcwd())
|
||||
Reference in New Issue
Block a user