Disable floppy generation for now, focus on CDROM (AI)

This commit is contained in:
AI
2026-02-23 08:54:39 +00:00
parent f2e84924f5
commit 6b00cf3154
3 changed files with 2 additions and 30 deletions

View File

@@ -22,9 +22,6 @@ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/isodir/boot/grub)
# Create grub.cfg for ISO
file(WRITE ${CMAKE_BINARY_DIR}/isodir/boot/grub/grub.cfg "set timeout=0\nset default=0\nsearch --set=root --file /boot/kernel.bin\nmenuentry \"ClaudeOS\" { multiboot /boot/kernel.bin }")
# Create grub.cfg for Floppy
file(WRITE ${CMAKE_BINARY_DIR}/floppy.cfg "set timeout=0\nset default=0\nmenuentry \"ClaudeOS\" { set root=(fd0); multiboot /boot/kernel.bin }")
# ISO Generation
add_custom_target(iso ALL
@@ -34,25 +31,10 @@ add_custom_target(iso ALL
COMMENT "Generating bootable ISO image"
)
# Floppy Generation
add_custom_target(floppy ALL
COMMAND dd if=/dev/zero of=${CMAKE_SOURCE_DIR}/release/claude-os.img bs=512 count=2880
COMMAND mkfs.fat -F 12 -n "CLAUDEOS" ${CMAKE_SOURCE_DIR}/release/claude-os.img
COMMAND mmd -i ${CMAKE_SOURCE_DIR}/release/claude-os.img ::/boot
COMMAND mcopy -i ${CMAKE_SOURCE_DIR}/release/claude-os.img ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/kernel ::/boot/kernel.bin
COMMAND mmd -i ${CMAKE_SOURCE_DIR}/release/claude-os.img ::/boot/grub
COMMAND mcopy -i ${CMAKE_SOURCE_DIR}/release/claude-os.img ${CMAKE_BINARY_DIR}/floppy.cfg ::/boot/grub/grub.cfg
COMMAND grub-mkimage -O i386-pc -o ${CMAKE_BINARY_DIR}/core.img -p \"(fd0)/boot/grub\" -c ${CMAKE_BINARY_DIR}/floppy.cfg biosdisk part_msdos fat multiboot normal boot configfile search_fs_file
COMMAND cat /usr/lib/grub/i386-pc/boot.img ${CMAKE_BINARY_DIR}/core.img > ${CMAKE_BINARY_DIR}/grub_boot.img
COMMAND dd if=${CMAKE_BINARY_DIR}/grub_boot.img of=${CMAKE_SOURCE_DIR}/release/claude-os.img conv=notrunc
DEPENDS kernel
COMMENT "Generating bootable Floppy image"
)
# Test target
add_custom_target(test_images
COMMAND sh ${CMAKE_SOURCE_DIR}/test_images.sh
DEPENDS iso floppy
DEPENDS iso
COMMENT "Testing generated images in QEMU"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)