aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-18 22:32:15 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 13:57:57 +0300
commit605c7d9258c129b66b76f1b55a8a6f3cea68c13e (patch)
tree22bd4fad07791d0bb514e711a3c5e185eed586a0 /Makefile
parentd95c714c8cfdc5818b0e0f0c99cf2e5be66de202 (diff)
downloadkmi-605c7d9258c129b66b76f1b55a8a6f3cea68c13e.tar.gz
kmi-605c7d9258c129b66b76f1b55a8a6f3cea68c13e.zip
Added fdt debug capability
+ For future reference, apos now requires initrd to be found in fdt.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0f3b49a..339f63e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
DO != echo > deps.mk
# this could be done better
-DEBUGFLAGS != [ $(DEBUG) ] && echo "-Og -ggdb3 -DDEBUG" || echo "-flto -O2"
+DEBUGFLAGS != [ $(DEBUG) ] && echo "-O0 -ggdb3 -DDEBUG" || echo "-flto -O2"
CFLAGS = -fno-pie -ffreestanding -nostdlib -std=c11 -Wall -Wextra
DEPFLAGS = -MT $@ -MMD -MP -MF $@.d
@@ -60,5 +60,7 @@ init.elf: $(INIT_OBJECTS) $(INIT_LD)
$(GENELF) -T $(INIT_LD) $(INIT_OBJECTS) -o $@
clean:
- $(CLEANUP_CMD)
$(RM) -r $(CLEANUP)
+
+clean_run: clean
+ $(CLEANUP_CMD)