Add debugging files to build process

This commit is contained in:
Justin C. Miller
2019-03-10 23:34:47 -07:00
parent cd2ccb4e06
commit 2955e6c9c1
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@@ -2,7 +2,6 @@
/build*
*.bak
tags
.gdbinit
popcorn.log
*.o
*.a

View File

@@ -0,0 +1,4 @@
import time
time.sleep(2.5)
gdb.execute("target remote :1234")
gdb.execute("set waiting = false")

View File

@@ -158,6 +158,9 @@ build $builddir/flash.img : cp $srcroot/assets/ovmf/x64/OVMF.fd
build $builddir/popcorn.elf | $builddir/popcorn.elf.debug : strip $builddir/host/popcorn.elf
name = kernel
build $builddir/popcorn.elf-gdb.py : cp ${srcroot}/assets/debugging/popcorn.elf-gdb.py
name = kernel debug python scripts
build $builddir/fatroot/popcorn.elf : cp $builddir/popcorn.elf
name = kernel to FAT image