PPC compiles fixes
Here is a patch that should make the PPC port of GRUB 2 compile. I made these changes on an iBook from someone else and since I don't have PPC hardware I can't test it further. I hope Marco can test it.
Jeroen Dekkers
Index: conf/powerpc-ieee1275.rmk
===================================================================
RCS file: /cvsroot/grub/grub2/conf/powerpc-ieee1275.rmk,v retrieving revision 1.2
powerpc-ieee1275.rmk +4 -2
@@ -27,8 +27,10 @@ grub_emu_SOURCES = kern/main.c kern/devi disk/powerpc/ieee1275/partition.c \ util/i386/pc/biosdisk.c fs/fat.c fs/ext2.c \ normal/cmdline.c normal/command.c normal/main.c normal/menu.c \ + normal/arg.c \ util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \ - kern/env.c + kern/env.c commands/ls.c \ + commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c grub_emu_LDFLAGS = -lncurses grubof_SOURCES = boot/powerpc/ieee1275/cmain.c boot/powerpc/ieee1275/ieee1275.c \
@@ -43,7 +45,7 @@ grubof_SOURCES = boot/powerpc/ieee1275/c grubof_HEADERS = grub/powerpc/ieee1275/ieee1275.h grubof_CFLAGS = $(COMMON_CFLAGS) grubof_ASFLAGS = $(COMMON_ASFLAGS) -grubof_LDFLAGS = -Wl,-Ttext,0x200000,-Bstatic +grubof_LDFLAGS = -nostdlib -static-libgcc -lgcc -Wl,-Ttext,0x200000,-Bstatic # For genmoddep. genmoddep_SOURCES = util/genmoddep.c
Index: kern/powerpc/ieee1275/init.c
===================================================================
RCS file: /cvsroot/grub/grub2/kern/powerpc/ieee1275/init.c,v retrieving revision 1.2
powerpc/ieee1275/init.c +1 -1
@@ -27,7 +27,7 @@#include <grub/normal.h> #include <grub/fs.h> #include <grub/setjmp.h> -#include <env.h> +#include <grub/env.h> void grub_ofdisk_init (void );void grub_console_init (void );
At Fri, 30 Apr 2004 21:15:38 +0200,
Jeroen Dekkers wrote:
is a patch that should make the PPC port of GRUB 2 compile.
Quoted 2 lines
I made these changes on an iBook from someone else and since I don't have PPC hardware I can't test it further. I hope Marco can test it.
<SNIP>
Marco wanted a changelog entry, so here it is:
2004-04-30 Jeroen Dekkers <[email protected]>
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c, commands/ls.c, commands/terminal.c, commands/boot.c, commands/cmp.c and commands/cat.c.
(grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
* kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of "env.h"
Quoted 8 lines · Jeroen Dekkers
At Fri, 30 Apr 2004 21:15:38 +0200,
Jeroen Dekkers wrote:
is a patch that should make the PPC port of GRUB 2 compile.Quoted 2 lines
I made these changes on an iBook from someone else and since I don't have PPC hardware I can't test it further. I hope Marco can test it.
<SNIP>
Marco wanted a changelog entry, so here it is:
That is the normal procedure. You know patches won't be committed without changelog entry, and I do not have the time to write them for everyone.
I've tested the patch and it works correctly. Thanks for your contribution.
Feel free to commit the patch.
Thanks,
Marco
At Fri, 30 Apr 2004 22:34:12 +0200,
Quoted 12 lines · Marco Gerards
Quoted 8 lines · Jeroen Dekkers
At Fri, 30 Apr 2004 21:15:38 +0200,
Jeroen Dekkers wrote:
is a patch that should make the PPC port of GRUB 2 compile.Quoted 2 lines
I made these changes on an iBook from someone else and since I don't have PPC hardware I can't test it further. I hope Marco can test it.
<SNIP>
Marco wanted a changelog entry, so here it is:
Quoted 8 lines
That is the normal procedure. You know patches won't be committed without changelog entry, and I do not have the time to write them for everyone.
I've tested the patch and it works correctly. Thanks for your contribution.
Feel free to commit the patch.
Done.
Jeroen Dekkers