Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lf2SD-0004rl-KV for mharc-grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lf2SB-0004qr-8H for grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lf2SA-0004qW-N4 for grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:50 -0500 Received: from [199.232.76.173] (port=33249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lf2SA-0004qH-GF for grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:50 -0500 Received: from mx20.gnu.org ([199.232.41.8]:35434) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lf2SA-0006xG-3e for grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:50 -0500 Received: from [74.93.104.97] (helo=sunset.davemloft.net) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lf2S9-0007Fb-CC for grub-devel@gnu.org; Wed, 04 Mar 2009 20:32:49 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 4618EC8D983 for ; Wed, 4 Mar 2009 17:32:35 -0800 (PST) Date: Wed, 04 Mar 2009 17:32:35 -0800 (PST) Message-Id: <20090304.173235.219044475.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [PATCH 8/10]: Allow targets to define boot block image format. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 01:32:51 -0000 2009-03-04 David S. Miller * genmk.rb: Allow rmk file to specify pkglib_IMAGES object file format in IMG_FMT. * conf/i386-pc.rmk (IMG_FMT): Define. --- conf/i386-pc.rmk | 1 + genmk.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/conf/i386-pc.rmk b/conf/i386-pc.rmk index c996e45..d8074c9 100644 --- a/conf/i386-pc.rmk +++ b/conf/i386-pc.rmk @@ -10,6 +10,7 @@ COMMON_LDFLAGS = -m32 -nostdlib normal/lexer.c_DEPENDENCIES = grub_script.tab.h # Images. +IMG_FMT = binary pkglib_IMAGES = boot.img diskboot.img kernel.img pxeboot.img lnxboot.img \ cdboot.img diff --git a/genmk.rb b/genmk.rb index c41872c..fe022cd 100644 --- a/genmk.rb +++ b/genmk.rb @@ -57,7 +57,7 @@ class Image MOSTLYCLEANFILES += #{deps_str} #{@name}: #{exe} - $(OBJCOPY) -O binary -R .note -R .comment -R .note.gnu.build-id $< $@ + $(OBJCOPY) -O $(IMG_FMT) -R .note -R .comment -R .note.gnu.build-id $< $@ #{exe}: #{objs_str} $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(#{prefix}_LDFLAGS) -- 1.6.2