aboutsummaryrefslogtreecommitdiff
path: root/bunny/build.rs
diff options
context:
space:
mode:
authorNick Shipp <nick@shipp.ninja>2018-09-30 17:05:47 -0400
committerNick Shipp <nick@shipp.ninja>2018-09-30 17:05:47 -0400
commitdf083e306a53e6a45a5730e7059032be43cc75ff (patch)
treed6e54f9fa587e7e001e2e751efad8e76e106b31f /bunny/build.rs
parente8c36b131ac12832bb1d5de0e3a710733fca88ac (diff)
Dirty rotten commit full of badness
Milestone: Got SMP cores booting and into long mode. The rest is all trash, but maybe trash worth a future archaeological dig.
Diffstat (limited to 'bunny/build.rs')
-rw-r--r--bunny/build.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/bunny/build.rs b/bunny/build.rs
new file mode 100644
index 0000000..58b8695
--- /dev/null
+++ b/bunny/build.rs
@@ -0,0 +1,13 @@
+use std::process::Command;
+use std::env;
+
+fn main() {
+ let out_dir = env::var("OUT_DIR").unwrap();
+ let obj = format!("{}/ap_boot.bin", out_dir);
+
+ Command::new("nasm")
+ .args(&["-Wall", "-fbin", "src/ap_boot.s", "-o"])
+ .arg(&obj)
+ .status()
+ .unwrap();
+}