sys-boot/grub: add xen-32 platform

This builds 32-bit Xen on amd64.

Bug: https://bugs.gentoo.org/586996
This commit is contained in:
Douglas Freed
2016-06-28 21:43:11 -04:00
committed by Mike Gilbert
parent 35de785f36
commit d61119fb4e
5 changed files with 23 additions and 2 deletions

View File

@@ -18,6 +18,10 @@
#--- END OF EXAMPLES ---
# Mike Gilbert <floppym@gentoo.org> (23 Jun 2016)
# This flag only has meaning on amd64
sys-boot/grub:2 -grub_platforms_xen-32
# Nathan Phillip Brink <binki@gentoo.org> (26 Sep 2015)
# git useflag requires dev-libs/libgit2 which few arches support
dev-util/geany-plugins -git

View File

@@ -5,6 +5,10 @@
# This file requires >=portage-2.1.1
# New entries go on top.
# Mike Gilbert <floppym@gentoo.org> (23 Jun 2016)
# This flag only has meaning on amd64
sys-boot/grub:2 grub_platforms_xen-32
# Brian Evans <grknight@gentoo.org> (14 Jun 2016)
# Igbinary is not ready for php 7
>=dev-php/pecl-redis-3.0 igbinary

View File

@@ -18,3 +18,4 @@ qemu - QEMU platform support
qemu-mips - QEMU MIPS platform support
uboot - U-Boot platform support
xen - XEN (pvgrub2) platform support
xen-32 - Build 32-bit XEN (pvgrub2) platform support on amd64

View File

@@ -51,7 +51,7 @@ LICENSE="GPL-3 fonts? ( GPL-2-with-font-exception ) themes? ( BitstreamVera )"
SLOT="2/${PVR}"
IUSE="debug device-mapper doc efiemu +fonts mount +multislot nls static sdl test +themes truetype libzfs"
GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot qemu qemu-mips pc uboot xen )
GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot qemu qemu-mips pc uboot xen xen-32 )
IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}"
REQUIRED_USE="
@@ -85,6 +85,7 @@ DEPEND="${RDEPEND}
sys-apps/texinfo
fonts? ( media-libs/freetype:2 )
grub_platforms_xen? ( app-emulation/xen-tools:= )
grub_platforms_xen-32? ( app-emulation/xen-tools:= )
static? (
app-arch/xz-utils[static-libs(+)]
truetype? (
@@ -180,6 +181,11 @@ grub_configure() {
local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}"
export TARGET_CFLAGS TARGET_CPPFLAGS
fi ;;
xen-32)
platform=xen
if [[ ${CHOST} == x86_64* ]]; then
local CTARGET=i386
fi ;;
guessed) ;;
*) platform=${MULTIBUILD_VARIANT} ;;
esac

View File

@@ -48,7 +48,7 @@ LICENSE="GPL-3 fonts? ( GPL-2-with-font-exception ) themes? ( BitstreamVera )"
SLOT="2/${PVR}"
IUSE="debug device-mapper doc efiemu +fonts mount +multislot nls static sdl test +themes truetype libzfs"
GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot qemu qemu-mips pc uboot xen )
GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot qemu qemu-mips pc uboot xen xen-32 )
IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}"
REQUIRED_USE="
@@ -82,6 +82,7 @@ DEPEND="${RDEPEND}
sys-apps/texinfo
fonts? ( media-libs/freetype:2 )
grub_platforms_xen? ( app-emulation/xen-tools:= )
grub_platforms_xen-32? ( app-emulation/xen-tools:= )
static? (
app-arch/xz-utils[static-libs(+)]
truetype? (
@@ -181,6 +182,11 @@ grub_configure() {
local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}"
export TARGET_CFLAGS TARGET_CPPFLAGS
fi ;;
xen-32)
platform=xen
if [[ ${CHOST} == x86_64* ]]; then
local CTARGET=i386
fi ;;
guessed) ;;
*) platform=${MULTIBUILD_VARIANT} ;;
esac