From f5797683d3557b483c330420431ab9bb8cff3fa9 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Tue, 13 Sep 2022 17:39:32 +0200 Subject: [PATCH] Compile stage2 before stage1 This allows the size of stage 2 to be embedded in stage 1 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 83da104..91b0bff 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ magic.bin: stage2/target/x86_64-loadnothing/release/stage2: stage2/src/main.rs cd stage2 && cargo build --release -nothing.img: magic.bin stage1/boot.bin stage2/target/x86_64-loadnothing/release/stage2 +nothing.img: magic.bin stage2/target/x86_64-loadnothing/release/stage2 stage1/boot.bin dd if=/dev/zero of=nothing.img bs=32M count=1 parted -s nothing.img mklabel msdos parted -s -a optimal nothing.img mkpart primary fat32 16MiB 100% -- 2.44.0