diff options
| author | Chloe M. <chloe@aptel.org> | 2026-08-20 06:05:20 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@aptel.org> | 2026-08-20 06:05:20 +0000 |
| commit | 968f5521418f14c1a8f0232e7ad4e1ba0fdcf628 (patch) | |
| tree | 12b99c440f0f8bf2de58d2c62382c8f88d42ea3e | |
| parent | ae526fa3375b708d4380d0227e27d32e06b40b92 (diff) | |
build: Generate boot filesystem via RDAR
Signed-off-by: Chloe M. <chloe@aptel.org>
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | boot/arch/amd64/mbr/Makefile | 5 | ||||
| -rwxr-xr-x | host/bootfs.sh | 6 |
3 files changed, 11 insertions, 1 deletions
@@ -2,3 +2,4 @@ *.o *.d *.bin +*.rdar diff --git a/boot/arch/amd64/mbr/Makefile b/boot/arch/amd64/mbr/Makefile index f41e5cc..9ea0a6f 100644 --- a/boot/arch/amd64/mbr/Makefile +++ b/boot/arch/amd64/mbr/Makefile @@ -13,4 +13,7 @@ all: mbr .PHONY: mbr mbr: - clang -Tlink.ld $(CFLAGS) mbr.S -o $(GLOBAL_PROJECT_ROOT)/artifacts/mbr.bin + clang -Tlink.ld $(CFLAGS) mbr.S -o mbr.bin + $(GLOBAL_PROJECT_ROOT)/host/bootfs.sh + cat mbr.bin bootfs.rdar >$(GLOBAL_PROJECT_ROOT)/artifacts/mbr.bin + rm -f mbr.bin diff --git a/host/bootfs.sh b/host/bootfs.sh new file mode 100755 index 0000000..8e9b9df --- /dev/null +++ b/host/bootfs.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +mkdir -p boot_root +echo "&" >boot_root/test.txt +rdar -i boot_root -o bootfs.rdar +rm -rf boot_root/ |
