sparc32: Fix obvious build issues for tftpboot.img build.
authorRobert Reif <reif@earthlink.net>
Sun, 21 Jun 2009 16:45:44 +0000 (16:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2009 02:55:58 +0000 (19:55 -0700)
Signed-off-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/boot/Makefile
arch/sparc/boot/piggyback_32.c

index 96041a8d39e8cf2e01695c0536502440e43e0f0d..5e2caeb31109e54c70813676575f79862ca5383f 100644 (file)
@@ -58,7 +58,7 @@ $(obj)/image: $(obj)/btfix.o FORCE
 $(obj)/zImage: $(obj)/image
        $(call if_changed,strip)
 
-$(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE
+$(obj)/tftpboot.img: $(obj)/piggyback_32 $(obj)/System.map $(obj)/image FORCE
        $(call if_changed,elftoaout)
        $(call if_changed,piggy)
 
index c9f500c1a8b23b9253213baaa58a9e53aaaa9af6..3f0f93354543288802363e41f980e9d2439a3047 100644 (file)
@@ -70,7 +70,7 @@ void die(char *str)
 int main(int argc,char **argv)
 {
        static char aout_magic[] = { 0x01, 0x03, 0x01, 0x07 };
-       unsigned char buffer[1024], *q, *r;
+       char buffer[1024], *q, *r;
        unsigned int i, j, k, start, end, offset;
        FILE *map;
        struct stat s;