/[gentoo-x86]/sys-boot/grub/grub-9999.ebuild
Gentoo

Diff of /sys-boot/grub/grub-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.55 Revision 1.56
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.55 2012/03/06 01:35:58 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.56 2012/03/08 05:28:57 floppym Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" 8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
40 qemu-mips yeeloong 40 qemu-mips yeeloong
41 # amd64, x86, ppc, ppc64: 41 # amd64, x86, ppc, ppc64:
42 ieee1275 42 ieee1275
43 # amd64, x86: 43 # amd64, x86:
44 coreboot multiboot efi-32 pc qemu 44 coreboot multiboot efi-32 pc qemu
45 # amd64: 45 # amd64, ia64:
46 efi-64 46 efi-64
47) 47)
48IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}" 48IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}"
49 49
50# os-prober: Used on runtime to detect other OSes 50# os-prober: Used on runtime to detect other OSes
115 popd > /dev/null || die 115 popd > /dev/null || die
116} 116}
117 117
118grub_src_configure() { 118grub_src_configure() {
119 local platform=$1 119 local platform=$1
120 local target 120 local target=
121 local with_platform 121 local with_platform=
122 122
123 [[ -z ${platform} ]] && die "${FUNCNAME} [platform]" 123 [[ -z ${platform} ]] && die "${FUNCNAME} [platform]"
124 124
125 # check if we have to specify the target (EFI) 125 # check if we have to specify the target (EFI)
126 # or just append correct --with-platform 126 # or just append correct --with-platform
127 if [[ ${platform} == efi* ]]; then 127 if [[ ${platform} == efi-32 ]]; then
128 # EFI platform hack 128 # Build 32-bit EFI on 64-bit system
129 [[ ${platform/*-} == 32 ]] && target=i386 129 target="--target=i386"
130 [[ ${platform/*-} == 64 ]] && target=x86_64
131 # program-prefix is required empty because otherwise it is equal to
132 # target variable, which we do not want at all
133 with_platform="
134 --with-platform=${platform/-*}
135 --target=${target}
136 --program-prefix=
137 "
138 elif [[ ${platform} != "guessed" ]]; then
139 with_platform=" --with-platform=${platform}"
140 fi 130 fi
141 131
132 case ${platform} in
133 efi-*) with_platform="--with-platform=${platform%-*}" ;;
134 guessed) ;;
135 *) with_platform="--with-platform=${platform}" ;;
136 esac
137
142 ECONF_SOURCE="${S}" \ 138 ECONF_SOURCE="${S}" \
143 econf \ 139 econf \
144 --disable-werror \ 140 --disable-werror \
141 --program-prefix= \
145 --program-transform-name="s,grub,grub2," \ 142 --program-transform-name="s,grub,grub2," \
146 --with-grubdir=grub2 \ 143 --with-grubdir=grub2 \
144 ${target} \
145 ${with_platform} \
147 $(use_enable debug mm-debug) \ 146 $(use_enable debug mm-debug) \
148 $(use_enable debug grub-emu-usb) \ 147 $(use_enable debug grub-emu-usb) \
149 $(use_enable device-mapper) \ 148 $(use_enable device-mapper) \
150 $(use_enable efiemu) \ 149 $(use_enable efiemu) \
151 $(use_enable mount grub-mount) \ 150 $(use_enable mount grub-mount) \
152 $(use_enable nls) \ 151 $(use_enable nls) \
153 $(use_enable truetype grub-mkfont) \ 152 $(use_enable truetype grub-mkfont) \
154 $(use_enable libzfs) \ 153 $(use_enable libzfs) \
155 $(use sdl && use_enable debug grub-emu-sdl) \ 154 $(use sdl && use_enable debug grub-emu-sdl)
156 ${with_platform}
157} 155}
158 156
159grub_src_compile() { 157grub_src_compile() {
160 default_src_compile 158 default_src_compile
161 pax-mark -mpes "${grub_binaries[@]}" 159 pax-mark -mpes "${grub_binaries[@]}"

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20