cris.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. diff -Nur linux-2.6.28.orig/arch/cris/arch-v32/boot/compressed/Makefile linux-2.6.28/arch/cris/arch-v32/boot/compressed/Makefile
  2. --- linux-2.6.28.orig/arch/cris/arch-v32/boot/compressed/Makefile 2008-12-25 00:26:37.000000000 +0100
  3. +++ linux-2.6.28/arch/cris/arch-v32/boot/compressed/Makefile 2009-01-02 16:46:24.000000000 +0100
  4. @@ -6,7 +6,6 @@
  5. ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
  6. ldflags-y += -T $(srctree)/$(src)/decompress.lds
  7. OBJECTS = $(obj)/head.o $(obj)/misc.o
  8. -OBJCOPYFLAGS = -O binary --remove-section=.bss
  9. quiet_cmd_image = BUILD $@
  10. cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
  11. diff -Nur linux-2.6.28.orig/arch/cris/arch-v32/boot/compressed/misc.c linux-2.6.28/arch/cris/arch-v32/boot/compressed/misc.c
  12. --- linux-2.6.28.orig/arch/cris/arch-v32/boot/compressed/misc.c 2008-12-25 00:26:37.000000000 +0100
  13. +++ linux-2.6.28/arch/cris/arch-v32/boot/compressed/misc.c 2009-01-02 16:47:08.000000000 +0100
  14. @@ -5,7 +5,7 @@
  15. * adapted for Linux.
  16. *
  17. * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
  18. - * puts by Nick Holloway 1993, better puts by Martin Mares 1995
  19. + * putstr by Nick Holloway 1993, better putstr by Martin Mares 1995
  20. * adaptation for Linux/CRIS Axis Communications AB, 1999
  21. *
  22. */
  23. @@ -98,7 +98,7 @@
  24. static void error(char *m);
  25. -static void puts(const char *);
  26. +static void putstr(const char *);
  27. /* the "heap" is put directly after the BSS ends, at end */
  28. @@ -125,7 +125,7 @@
  29. }
  30. static void
  31. -puts(const char *s)
  32. +putstr(const char *s)
  33. {
  34. #ifndef CONFIG_ETRAX_DEBUG_PORT_NULL
  35. while (*s) {
  36. @@ -197,9 +197,9 @@
  37. static void
  38. error(char *x)
  39. {
  40. - puts("\r\n\n");
  41. - puts(x);
  42. - puts("\r\n\n -- System halted\n");
  43. + putstr("\r\n\n");
  44. + putstr(x);
  45. + putstr("\r\n\n -- System halted\n");
  46. while(1); /* Halt */
  47. }
  48. @@ -308,11 +308,11 @@
  49. __asm__ volatile ("move $vr,%0" : "=rm" (revision));
  50. if (revision < 32)
  51. {
  52. - puts("You need an ETRAX FS to run Linux 2.6/crisv32.\r\n");
  53. + putstr("You need an ETRAX FS to run Linux 2.6/crisv32.\r\n");
  54. while(1);
  55. }
  56. - puts("Uncompressing Linux...\r\n");
  57. + putstr("Uncompressing Linux...\r\n");
  58. gunzip();
  59. - puts("Done. Now booting the kernel.\r\n");
  60. + putstr("Done. Now booting the kernel.\r\n");
  61. }
  62. diff -Nur linux-2.6.28.orig/arch/cris/arch-v32/boot/Makefile linux-2.6.28/arch/cris/arch-v32/boot/Makefile
  63. --- linux-2.6.28.orig/arch/cris/arch-v32/boot/Makefile 2008-12-25 00:26:37.000000000 +0100
  64. +++ linux-2.6.28/arch/cris/arch-v32/boot/Makefile 2009-01-02 16:46:10.000000000 +0100
  65. @@ -4,8 +4,8 @@
  66. OBJCOPYFLAGS = -O binary -R .note -R .comment
  67. -subdir- := compressed rescue
  68. -targets := Image
  69. +subdir- := compressed
  70. +targets := Image zImage
  71. $(obj)/Image: vmlinux FORCE
  72. $(call if_changed,objcopy)
  73. @@ -13,7 +13,6 @@
  74. $(obj)/compressed/vmlinux: $(obj)/Image FORCE
  75. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  76. - $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
  77. $(obj)/zImage: $(obj)/compressed/vmlinux
  78. @cp $< $@