summaryrefslogtreecommitdiff
path: root/package/grub
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-07 09:27:47 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-01-07 09:28:27 +0100
commitd0a6bb0f9ec973373dad3927f45c85ffd75632b1 (patch)
tree9d99b8d9d89e5911205e1d3a0f681af42fb2335b /package/grub
parentdfc401b5dcb9ea23101f3a00399ebce4a571dc80 (diff)
grub: add basic ppc support
Diffstat (limited to 'package/grub')
-rw-r--r--package/grub/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/grub/Makefile b/package/grub/Makefile
index 735e10d5e..d6b59b96d 100644
--- a/package/grub/Makefile
+++ b/package/grub/Makefile
@@ -13,16 +13,17 @@ PKG_URL:= http://www.gnu.org/software/grub
PKG_SITES:= git://git.savannah.gnu.org/grub.git
PKG_NOPARALLEL:= 1
-PKG_ARCH_DEPENDS:= x86 x86_64 mips mips64
+PKG_ARCH_DEPENDS:= x86 x86_64 mips mips64 ppc ppc64
PKG_SUBPKGS:= GRUB GRUB_TOOLS
PKGSD_GRUB_TOOLS:= grub2 tools
-PKG_CHOICES_GRUB:= PC EFI_X86 EFI_X86_64 ARC
+PKG_CHOICES_GRUB:= PC EFI_X86 EFI_X86_64 ARC IEEE1275
PKGCD_PC:= build for PC BIOS
PKGCD_EFI_X86:= build for EFI x86
PKGCD_EFI_X86_64:= build for EFI x86_64
PKGCD_ARC:= build for MIPS/MIPS64 ARC
+PKGCD_IEEE1275:= build for OpenFirmware
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
@@ -46,6 +47,16 @@ GRUB_PLATFORM= arc
GRUB_MODULES= boot linux ext2 fat part_msdos part_gpt normal
endif
+ifeq ($(ADK_PACKAGE_GRUB_IEEE1275),y)
+GRUB_ARCH= powerpc-ieee1275
+GRUB_IMAGE= grub.img
+GRUB_DIR= boot/grub
+GRUB_PREFIX= (hd0,msdos1)/boot/grub
+GRUB_TARGET= powerpc
+GRUB_PLATFORM= ieee1275
+GRUB_MODULES= boot linux ext2 fat part_msdos part_gpt normal
+endif
+
ifeq ($(ADK_PACKAGE_GRUB_PC),y)
HOST_CONFIGURE_ARGS+= --with-platform=pc
GRUB_ARCH= i386-pc