Starting writing an ed implementation
This commit is contained in:
7
Makefile
7
Makefile
@@ -15,7 +15,7 @@ $(BUILD_DIR)/crawos.iso: floppy_image
|
||||
# Floppy image
|
||||
# Fat12
|
||||
floppy_image: $(BUILD_DIR)/crawos.img
|
||||
$(BUILD_DIR)/crawos.img: bootloader kernel
|
||||
$(BUILD_DIR)/crawos.img: bootloader kernel check-fat83
|
||||
mkdir -p disk_images
|
||||
dd if=/dev/zero of=$(BUILD_DIR)/crawos.img bs=512 count=2880 # Use dd to make a disk image
|
||||
mkfs.fat -F 12 -n "CRAWOS" $(BUILD_DIR)/crawos.img # Format the disk image with fat12
|
||||
@@ -36,6 +36,11 @@ $(BUILD_DIR)/kernel.bin:
|
||||
mkdir -p disk_images
|
||||
$(ASM) $(SRC_DIR)/kernel/kernel.asm -f bin -o $ $(BUILD_DIR)/kernel.bin
|
||||
|
||||
check-fat83:
|
||||
@echo "Checking filenames for FAT 8.3 compliance..."
|
||||
@find ./data -type f | awk -F/ '{print $$NF}' | \
|
||||
awk -F. 'length($$1)>8 || length($$2)>3 || NF>2 {print "Invalid FAT 8.3 filename:", $$0; bad=1} END{exit bad}'
|
||||
|
||||
# Clean
|
||||
clean:
|
||||
rm -f disk_images/*
|
||||
|
||||
Reference in New Issue
Block a user