From df083e306a53e6a45a5730e7059032be43cc75ff Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Sun, 30 Sep 2018 17:05:47 -0400 Subject: 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. --- bunny/build.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bunny/build.rs (limited to 'bunny/build.rs') 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(); +} -- cgit v1.2.3-54-g00ecf