aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index fa83ffd..0be1d5c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,6 +52,13 @@ fn compile() -> anyhow::Result<()> {
file.write_all(CONFIG.as_bytes())?;
}
+ let mut olddefconfig = Command::new("make");
+ olddefconfig.arg("olddefconfig");
+
+ if !olddefconfig.spawn()?.wait()?.success() {
+ bail!("make olddefconfig failed");
+ }
+
let mut make = Command::new("make");
make.arg("bzImage")
.arg("modules")