Initfs makefile
This commit is contained in:
@ -1,13 +1,19 @@
|
||||
$(BUILD_DIR)/filesystem:
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
rm -f $@.partial
|
||||
mkdir $@.partial
|
||||
fallocate -l 1MiB $@.partial/kernel
|
||||
mv $@.partial $@
|
||||
$(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.img: $(BUILD_DIR)/filesystem
|
||||
$(BUILD_DIR)/filesystem/boot/kernel:
|
||||
@mkdir -p $(BUILD_DIR)/filesystem/boot
|
||||
rm -f $@
|
||||
fallocate -l 1MiB $(BUILD_DIR)/filesystem/boot/kernel
|
||||
|
||||
|
||||
$(BUILD_DIR)/filesystem.img: $(BUILD_DIR)/filesystem/boot/kernel $(BUILD_DIR)/filesystem/boot/initfs
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
rm -f $@.partial
|
||||
fallocate -l 254MiB $@.partial
|
||||
redoxfs-ar $@.partial $<
|
||||
redoxfs-ar $@.partial $(BUILD_DIR)/filesystem
|
||||
mv $@.partial $@
|
Reference in New Issue
Block a user