/[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.57 Revision 1.58
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.57 2012/03/08 10:23:34 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.58 2012/03/17 22:30:14 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/"
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 # Used below for efi cross-building
126 # or just append correct --with-platform 126 tc-export CC NM OBJCOPY STRIP
127 if [[ ${platform} == efi-32 ]]; then 127 unset TARGET_CC TARGET_CFLAGS TARGET_CPPFLAGS
128 # Build 32-bit EFI on 64-bit system
129 target="--target=i386"
130 fi
131 128
132 case ${platform} in 129 case ${platform} in
133 efi-*) with_platform="--with-platform=${platform%-*}" ;; 130 efi-32)
131 if [[ ${CHOST} == x86_64* ]]; then
132 target="--target=i386"
133 export TARGET_CC="${CC}"
134 fi
135 with_platform="--with-platform=efi"
136 ;;
137 efi-64)
138 if [[ ${CHOST} == i?86* ]]; then
139 target="--target=x86_64"
140 export TARGET_CC="${CC}"
141 export TARGET_CFLAGS="-march=x86-64"
142 export TARGET_CPPFLAGS="-march=x86-64"
143 fi
144 with_platform="--with-platform=efi"
145 ;;
134 guessed) ;; 146 guessed) ;;
135 *) with_platform="--with-platform=${platform}" ;; 147 *) with_platform="--with-platform=${platform}" ;;
136 esac 148 esac
137 149
138 ECONF_SOURCE="${S}" \ 150 ECONF_SOURCE="${S}" \

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20