From 207484548a7f26dd9a90daccae1f584ee6d76f49 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Mon, 26 Dec 2022 20:58:57 +0100 Subject: fix config writing: make olddefconfig again --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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") -- cgit v1.2.3