diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-26 20:58:57 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-26 20:58:57 +0100 |
commit | 207484548a7f26dd9a90daccae1f584ee6d76f49 (patch) | |
tree | faa6382867e780a2989f4425047f36be9f5b0a7a /src/main.rs | |
parent | 4360227735a857831f9d5cc5c7e5dccb72495fab (diff) |
fix config writing: make olddefconfig again
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
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") |