Skip to contentSkip to conversation

: Allow targets to define boot block image format.

PATCH In review David Miller 1 participant 1 message Mar 5, 2009

lore
Share & tools
lore
#0 lore raw

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

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(-)
conf/i386-pc.rmk +1 -0
index c996e45..d8074c9 100644
@@ -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
 
genmk.rb +1 -1
index c41872c..fe022cd 100644
@@ -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)
Signature · 1 line
1.6.2