* genmk.rb: Add more flexible image type specification, also
pass --strip-unneeded to objcopy. * conf/i386-pc.rmk: Use *_FORMAT. * conf/i386-pc.mk: Rebuilt.
This commit is contained in:
parent
df38d0bb75
commit
e382e93a88
4 changed files with 24 additions and 7 deletions
2
genmk.rb
2
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 $(#{prefix}_FORMAT) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id $< $@
|
||||
|
||||
#{exe}: #{objs_str}
|
||||
$(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(#{prefix}_LDFLAGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue