Split up kernel and debug rom
This commit is contained in:
		
							parent
							
								
									4fa383bb2e
								
							
						
					
					
						commit
						11b4d07dc1
					
				
					 4 changed files with 240 additions and 54 deletions
				
			
		
							
								
								
									
										11
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -13,6 +13,8 @@ endif | |||
| ifdef DEBUG | ||||
| QEMU_ARGS += -chardev file,path=debugcon.log,id=seabios | ||||
| QEMU_ARGS += -device isa-debugcon,iobase=0x402,chardev=seabios | ||||
| QEMU_ARGS += -option-rom debug.rom | ||||
| DEBUGROM = debug.rom | ||||
| endif | ||||
| 
 | ||||
| ifndef DISPLAY | ||||
|  | @ -26,6 +28,9 @@ default: kernel.rom | |||
| kernel.rom: kernel/*.asm lib/*.inc | ||||
| 	nasm -s -o $@ -I lib -I kernel kernel/main.asm && scripts/fix-rom.sh $@ | ||||
| 
 | ||||
| debug.rom: debug/*.asm lib/*.inc | ||||
| 	nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@ | ||||
| 
 | ||||
| boot/%.bin: boot/%.asm lib/*.inc | ||||
| 	nasm -s -o $@ -I boot -I lib $< | ||||
| 
 | ||||
|  | @ -38,11 +43,11 @@ fdimage.img: boot/floppy.bin kernel.rom | |||
| clean: | ||||
| 	rm -f *.com *.bin *.rom *.img *.log boot/*.bin | ||||
| 
 | ||||
| qemu-rom: kernel.rom | ||||
| qemu-rom: kernel.rom $(DEBUGROM) | ||||
| 	$(QEMU) $(QEMU_ARGS) -option-rom kernel.rom | ||||
| 
 | ||||
| qemu-floppy: fdimage.img | ||||
| qemu-floppy: fdimage.img $(DEBUGROM) | ||||
| 	$(QEMU) $(QEMU_ARGS) -boot c -hda fdimage.img | ||||
| 
 | ||||
| qemu-serial: boot/serial.bin | ||||
| qemu-serial: boot/serial.bin $(DEBUGROM) | ||||
| 	$(QEMU) $(QEMU_ARGS) -hda boot/serial.bin | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue