From: Geoff Levand <geoffrey.levand@am.sony.com>
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: [PATCH 2/2] mips: add new target vmlinux.strip
Date: Fri, 14 Jul 2006 12:52:24 -0700 [thread overview]
Message-ID: <44B7F5F8.4050703@am.sony.com> (raw)
Adds a new make target 'vmlinux.strip', a stripped elf boot
image. This target reduces image load time with bootloaders
that load elf images.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Index: 2.6.16/arch/mips/Makefile
===================================================================
--- 2.6.16.orig/arch/mips/Makefile 2006-07-14 11:37:33.000000000 -0700
+++ 2.6.16/arch/mips/Makefile 2006-07-14 11:39:25.000000000 -0700
@@ -834,6 +834,9 @@
vmlinux.bin: $(vmlinux-32)
+@$(call makeboot,$@)
+vmlinux.strip: $(vmlinux-32)
+ +@$(call makeboot,$@)
+
vmlinux.ecoff vmlinux.rm200: $(vmlinux-32)
+@$(call makeboot,$@)
@@ -846,6 +849,7 @@
vmlinux.rm200
define archhelp
+ @echo '* vmlinux.strip - stripped elf boot image'
@echo '* vmlinux.ecoff - ECOFF boot image'
@echo '* vmlinux.srec - SREC boot image'
endef
Index: 2.6.16/arch/mips/boot/Makefile
===================================================================
--- 2.6.16.orig/arch/mips/boot/Makefile 2006-07-14 11:37:33.000000000 -0700
+++ 2.6.16/arch/mips/boot/Makefile 2006-07-14 11:37:55.000000000 -0700
@@ -23,6 +23,9 @@
drop-sections = .reginfo .mdebug .comment .note .pdr .options .MIPS.options
strip-flags = $(addprefix --remove-section=,$(drop-sections))
+quiet_cmd_stripvm = STRIP $@
+ cmd_stripvm = $(STRIP) -s -R .comment $< -o $@
+
VMLINUX = vmlinux
all: vmlinux.ecoff vmlinux.srec addinitrd
@@ -36,6 +39,9 @@
vmlinux.bin: $(VMLINUX)
$(OBJCOPY) -O binary $(strip-flags) $(VMLINUX) $(obj)/vmlinux.bin
+vmlinux.strip: $(VMLINUX)
+ $(call if_changed,stripvm)
+
vmlinux.srec: $(VMLINUX)
$(OBJCOPY) -S -O srec $(strip-flags) $(VMLINUX) $(obj)/vmlinux.srec
reply other threads:[~2006-07-14 19:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B7F5F8.4050703@am.sony.com \
--to=geoffrey.levand@am.sony.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox