2024-12-15 21:27:29 -08:00
|
|
|
$(BUILD_DIR)/filesystem/boot/initfs: $(shell find ./components -type f -not -path "*/target/*")
|
|
|
|
@mkdir -p $(BUILD_DIR)/filesystem/boot
|
|
|
|
rm -f $@
|
|
|
|
make -C tools
|
|
|
|
make -C components
|
|
|
|
./tools/bin/redox-initfs-ar --output $@ ./components/build
|
|
|
|
|
|
|
|
$(BUILD_DIR)/filesystem/boot/kernel:
|
|
|
|
@mkdir -p $(BUILD_DIR)/filesystem/boot
|
|
|
|
rm -f $@
|
|
|
|
fallocate -l 1MiB $(BUILD_DIR)/filesystem/boot/kernel
|
|
|
|
|
2024-12-12 07:26:17 -08:00
|
|
|
|
2024-12-15 21:27:29 -08:00
|
|
|
$(BUILD_DIR)/filesystem.img: $(BUILD_DIR)/filesystem/boot/kernel $(BUILD_DIR)/filesystem/boot/initfs
|
2024-12-12 07:26:17 -08:00
|
|
|
@mkdir -p $(BUILD_DIR)
|
|
|
|
rm -f $@.partial
|
|
|
|
fallocate -l 254MiB $@.partial
|
2024-12-15 21:27:29 -08:00
|
|
|
redoxfs-ar $@.partial $(BUILD_DIR)/filesystem
|
2024-12-12 07:26:17 -08:00
|
|
|
mv $@.partial $@
|