aboutsummaryrefslogtreecommitdiff
path: root/bunny/build.rs
blob: 58b86952b69341aa427dde2729a68a05ad1f4edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
}