[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MULTIBOOT2 SPEC PATCH v4 25/27] multiboot2: Generate gcc temp files (*.
From: |
Hans Ulrich Niedermann |
Subject: |
[MULTIBOOT2 SPEC PATCH v4 25/27] multiboot2: Generate gcc temp files (*.i and *.s) |
Date: |
Fri, 15 May 2020 05:43:48 +0200 |
Generate gcc temporary files for each object file, showing
the intermediate steps after the C preprocessor and immediately
before assembly.
This helps with examining how the example kernel code is
generated, making the example kernel more educational.
Signed-off-by: Hans Ulrich Niedermann <address@hidden>
diff --git a/.gitignore b/.gitignore
index 889e17f69..f6a1b7736 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,7 +31,9 @@ Makefile
# Generated by "make"
*.lst
+*.i
*.o
+*.s
/doc/*.S.texi
/doc/*.c.texi
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 21cdff0b2..fe1e473c9 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -25,6 +25,10 @@ CLEANFILES += *.lst
kernel_CCASFLAGS += -Wa,-adhlns=$(@:.o=.lst)
kernel_CFLAGS += -Wa,-adhlns=$(@:.o=.lst)
+CLEANFILES += *.i *.s
+kernel_CCASFLAGS += -save-temps=obj
+kernel_CFLAGS += -save-temps=obj
+
EXTRA_DIST = $(man_MANS) $(noinst_SCRIPTS) \
$(arch_sources) $(multiboot_TEXINFOS)
--
2.26.2
- [MULTIBOOT2 SPEC PATCH v4 16/27] multiboot2: Change "Multiboot" in comments to "Multiboot2", (continued)
- [MULTIBOOT2 SPEC PATCH v4 16/27] multiboot2: Change "Multiboot" in comments to "Multiboot2", Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 17/27] multiboot2: Clean up stack (cdecl calling conventions), Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 18/27] multiboot2: Use predefined #ifdef __ASSEMBLER__, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 19/27] multiboot2: Set -nostdlib before AC_PROG_CC for x-compile, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 20/27] multiboot2: mips build wants __start symbol, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 21/27] multiboot2: "make distcheck" with example kernel enabled, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 22/27] multiboot2: Always define the kernel_* vars, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 23/27] multiboot2: Generate per object file listings, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 24/27] multiboot2: Generate a kernel.map map file, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 25/27] multiboot2: Generate gcc temp files (*.i and *.s),
Hans Ulrich Niedermann <=
- [MULTIBOOT2 SPEC PATCH v4 26/27] multiboot2: Generate symbol lists and disassembly file, Hans Ulrich Niedermann, 2020/05/14
- [MULTIBOOT2 SPEC PATCH v4 27/27] multiboot2: Add labels around the termination tag, Hans Ulrich Niedermann, 2020/05/14