2009-03-04 David S. Miller <[email protected]>
* 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
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel