initial support for ppc in grub-mkimage (bugs for now)

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-25 22:26:29 +02:00
parent 2fa6a5dd44
commit 2296410ffb
12 changed files with 133 additions and 57 deletions

View file

@ -46,6 +46,8 @@
#define GRUB_PLATFORM_IMAGE_DEFAULT GRUB_PLATFORM_IMAGE_RAW
#define EM_TARGET EM_MIPS
#ifndef ASM_FILE
typedef enum {

View file

@ -21,8 +21,27 @@
#include <grub/symbol.h>
#define GRUB_PLATFORM_IMAGE_FORMATS "raw, elf"
#define GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT "raw"
#define GRUB_PLATFORM_IMAGE_DEFAULT GRUB_PLATFORM_IMAGE_RAW
#define GRUB_KERNEL_MACHINE_PREFIX 0x4
#define GRUB_KERNEL_MACHINE_DATA_END 0x44
#define GRUB_KERNEL_MACHINE_LINK_ALIGN 4
#define EM_TARGET EM_PPC
#define GRUB_KERNEL_MACHINE_LINK_ADDR 0x200000
#ifndef ASM_FILE
typedef enum {
GRUB_PLATFORM_IMAGE_RAW,
GRUB_PLATFORM_IMAGE_ELF
}
grub_platform_image_format_t;
#define GRUB_PLATFORM_IMAGE_RAW GRUB_PLATFORM_IMAGE_RAW
#define GRUB_PLATFORM_IMAGE_ELF GRUB_PLATFORM_IMAGE_ELF
/* The prefix which points to the directory where GRUB modules and its
configuration file are located. */
extern char grub_prefix[];

View file

@ -26,7 +26,4 @@
rewrite grub-mkimage to generate valid ELF files. */
#define GRUB_MOD_GAP 0x8000
#define GRUB_KERNEL_CPU_PREFIX 0x4
#define GRUB_KERNEL_CPU_DATA_END 0x44
#endif