From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jZRKd-0006rd-BV for mharc-grub-devel@gnu.org; Thu, 14 May 2020 23:48:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZRKb-0006mM-AU for grub-devel@gnu.org; Thu, 14 May 2020 23:48:17 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:32878 helo=smtp.bawue.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZRKa-0000i5-Hf for grub-devel@gnu.org; Thu, 14 May 2020 23:48:17 -0400 Received: from infty.fritz.box (p5b17584c.dip0.t-ipconnect.de [91.23.88.76]) (Authenticated sender: pdim@bawue.de) by smtp.bawue.net (Postfix) with ESMTPSA id 6D6D62266C; Fri, 15 May 2020 05:48:09 +0200 (CEST) From: Hans Ulrich Niedermann To: grub-devel@gnu.org Cc: Hans Ulrich Niedermann Subject: [MULTIBOOT2 SPEC PATCH v4 23/27] multiboot2: Generate per object file listings Date: Fri, 15 May 2020 05:43:46 +0200 Message-Id: <20200515034349.133092-24-hun@n-dimensional.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200515034349.133092-1-hun@n-dimensional.de> References: <20200515034349.133092-1-hun@n-dimensional.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanner: SAV Dynamic Interface 2.6.0, Engine: 3.77.1, SAV: 5.75 (A93B943C) on relay01.mx.bawue.net using milter-sssp 0.1.0 X-Virus-Scan: Found to be clean. Received-SPF: pass client-ip=193.7.176.67; envelope-from=hun@n-dimensional.de; helo=smtp.bawue.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 23:46:23 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 03:48:17 -0000 Generate one listing file *.lst per object file *.o. This allows easy examination of the generated machine code, making the example kernel more educational. Signed-off-by: Hans Ulrich Niedermann diff --git a/.gitignore b/.gitignore index e27a3e0e2..7a035c267 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ Makefile /stamp-h1 # Generated by "make" +*.lst *.o /doc/*.S.texi diff --git a/doc/Makefile.am b/doc/Makefile.am index cb290a0cb..cc07ceec8 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,3 +1,4 @@ +CLEANFILES = info_TEXINFOS = multiboot.texi arch_sources = boot_i386.S boot_mips.S multiboot_TEXINFOS = boot_i386.S.texi boot_mips.S.texi kernel.c.texi multiboot2.h.texi @@ -17,6 +18,10 @@ kernel_CFLAGS = $(kernel_cflags) -fno-builtin -nostdinc -O -g -Wall \ -imacros $(top_builddir)/config.h kernel_LDFLAGS = -nostdlib -Wl,-N -Wl,-Ttext -Wl,80100000 -Wl,--build-id=none +CLEANFILES += *.lst +kernel_CCASFLAGS += -Wa,-adhlns=$(@:.o=.lst) +kernel_CFLAGS += -Wa,-adhlns=$(@:.o=.lst) + EXTRA_DIST = $(man_MANS) $(noinst_SCRIPTS) \ $(arch_sources) $(multiboot_TEXINFOS) -- 2.26.2