grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 8/10]: Allow targets to define boot block image format.


From: David Miller
Subject: [PATCH 8/10]: Allow targets to define boot block image format.
Date: Wed, 04 Mar 2009 17:32:35 -0800 (PST)

2009-03-04 David S. Miller <address@hidden>

        * 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}
 
 address@hidden: #{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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]