Build kernel

This commit is contained in:
2024-12-16 20:50:27 -08:00
parent 0f42691db8
commit a6f7d459d1
4 changed files with 11 additions and 3 deletions

View File

@ -5,10 +5,10 @@ $(BUILD_DIR)/filesystem/boot/initfs: $(shell find ./components -type f -not -pat
make -C components
./tools/bin/redox-initfs-ar --output $@ ./components/build
$(BUILD_DIR)/filesystem/boot/kernel:
$(BUILD_DIR)/filesystem/boot/kernel: $(shell find ./kernel -type f -not -path "*/target/*")
@mkdir -p $(BUILD_DIR)/filesystem/boot
rm -f $@
fallocate -l 1MiB $(BUILD_DIR)/filesystem/boot/kernel
cd ./kernel && make
cp -v kernel/kernel "$@"
$(BUILD_DIR)/filesystem.img: $(BUILD_DIR)/filesystem/boot/kernel $(BUILD_DIR)/filesystem/boot/initfs