Build kernel
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user