Skip to contentSkip to conversation

PATCH:2.6:makefile/vmlinux.srec

PATCH Michael Pruznick 1 participant 1 message Aug 6, 2003 MIPS

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Jun Sun

the make srec patch looks good to me. I will take care of it. Also, please post patches for both branches whenever possible.

Here is the 2.6 version of the 2.4 srec build patch:

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.131

mips/Makefile 4 Aug 2003 23:59:12 -0000 renamed from mips/Makefile 30 Jul 2003 12:32:17 -0000 1.131 +3 -0
diff -u -r1.131 Makefile
@@ -531,6 +531,9 @@
 vmlinux.ecoff vmlinux.rm200: vmlinux
        +@$(call makeboot,$@)
 
+vmlinux.srec: vmlinux
+       +@$(call makeboot,$@)
+
 CLEAN_FILES += vmlinux.ecoff \
               vmlinux.rm200.tmp \
               vmlinux.rm200

Index: arch/mips/boot/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips/boot/Makefile,v retrieving revision 1.22

mips/boot/Makefile 4 Aug 2003 23:59:12 -0000 renamed from mips/boot/Makefile 9 Mar 2003 13:58:13 -0000 1.22 +5 -1
diff -u -r1.22 Makefile
@@ -22,7 +22,7 @@
 drop-sections  = .reginfo .mdebug .comment .note
 strip-flags    = $(addprefix --remove-section=,$(drop-sections))
 
-all: vmlinux.ecoff addinitrd
+all: vmlinux.ecoff vmlinux.srec addinitrd
 
 vmlinux.rm200: vmlinux
        $(OBJCOPY) \
@@ -37,6 +37,9 @@
 $(obj)/elf2ecoff: $(obj)/elf2ecoff.c
        $(HOSTCC) -o $@ $^
 
+vmlinux.srec:  vmlinux
+       $(OBJCOPY) -S -O srec $(strip-flags) vmlinux $(obj)/vmlinux.srec
+
 $(obj)/addinitrd: $(obj)/addinitrd.c
        $(HOSTCC) -o $@ $^
 
@@ -47,5 +50,6 @@
               elf2ecoff \
               vmlinux.ecoff \
               vmlinux.rm200 \
+              vmlinux.srec \
               zImage.tmp \
               zImage