All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Pruznick <michael_pruznick@mvista.com>
To: linux-mips@linux-mips.org
Subject: PATCH:2.4:makefile/vmlinux.srec
Date: Mon, 04 Aug 2003 18:05:34 -0600	[thread overview]
Message-ID: <3F2EF4CE.5D5BBC1E@mvista.com> (raw)


This patch allows an srec kernel to be built directly.

cvs diff -uN arch/mips/Makefile arch/mips/boot/Makefile
Index: arch/mips/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.78.2.36
diff -u -r1.78.2.36 Makefile
--- arch/mips/Makefile  5 Jul 2003 13:17:03 -0000       1.78.2.36
+++ arch/mips/Makefile  4 Aug 2003 23:53:38 -0000
@@ -627,6 +627,9 @@
 vmlinux.ecoff: vmlinux
        @$(MAKEBOOT) $@
 
+vmlinux.srec: vmlinux
+       @$(MAKEBOOT) $@
+
 archclean:
        @$(MAKEBOOT) clean
        rm -f arch/$(ARCH)/ld.script
Index: arch/mips/boot/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips/boot/Makefile,v
retrieving revision 1.13.2.2
diff -u -r1.13.2.2 Makefile
--- arch/mips/boot/Makefile     1 Aug 2002 18:20:59 -0000       1.13.2.2
+++ arch/mips/boot/Makefile     4 Aug 2003 23:53:38 -0000
@@ -24,7 +24,7 @@
 drop-sections  = .reginfo .mdebug
 strip-flags    = $(addprefix --remove-section=,$(drop-sections))
 
-all: vmlinux.ecoff addinitrd
+all: vmlinux.ecoff vmlinux.srec addinitrd
 
 vmlinux.ecoff: $(CONFIGURE) elf2ecoff $(TOPDIR)/vmlinux
        ./elf2ecoff $(TOPDIR)/vmlinux vmlinux.ecoff $(E2EFLAGS)
@@ -32,6 +32,9 @@
 elf2ecoff: elf2ecoff.c
        $(HOSTCC) -o $@ $^
 
+vmlinux.srec: $(CONFIGURE) $(TOPDIR)/vmlinux
+       $(OBJCOPY) -S -O srec $(strip-flags) $(TOPDIR)/vmlinux vmlinux.srec
+
 addinitrd: addinitrd.c
        $(HOSTCC) -o $@ $^
 
@@ -40,10 +43,12 @@
 
 clean:
        rm -f vmlinux.ecoff
+       rm -f vmlinux.srec
        rm -f zImage zImage.tmp
 
 mrproper:
        rm -f vmlinux.ecoff
+       rm -f vmlinux.srec
        rm -f addinitrd
        rm -f elf2ecoff

                 reply	other threads:[~2003-08-05  0:05 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=3F2EF4CE.5D5BBC1E@mvista.com \
    --to=michael_pruznick@mvista.com \
    --cc=linux-mips@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.