aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-29 22:39:32 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-29 22:43:56 +0100
commit15cd6b372a01483df39220735b7f5935e5365296 (patch)
tree290cba0197fa568431c3f9b37e4e56ffe4108a21
parentd51665904faa31c39106e4b2afa7541615072e72 (diff)
downloadfbos-15cd6b372a01483df39220735b7f5935e5365296.tar.gz
fbos-15cd6b372a01483df39220735b7f5935e5365296.zip
Fix gdb target by not removing ELF executable
GDB actually needs the ELF executable to run a session with symbols loaded in. Hence, do not remove the `fbos.elf` file after calling `objcopy`. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--.gitignore1
-rw-r--r--Makefile1
2 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 85d5d6f..405c935 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
*.o
kernel/fbos.ld
/fbos
+/fbos.elf
.cache
usr/bin/*
diff --git a/Makefile b/Makefile
index 5c95c02..5b98a8d 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,6 @@ all: clean $(IMAGE) usr test
$(IMAGE): $(KRNL)
$(E) " OBJCOPY " $@
$(Q) $(OBJCPY) $(KRNL) -O binary $(IMAGE)
- $(Q) rm $(KRNL)
.PHONY: $(KRNL)
$(KRNL): $(OBJ) $(LINKER).S