seabios: upgraded package to upstream

Upgraded sys-firmware/seabios to version 1.7.3.

BUG=chromium:220911
TEST=`cbuildbot {arm,amd64,x86}-generic-full` passes

Change-Id: I0b5eac6a2d85cce328a1496a9068daa67fc4f7aa
Reviewed-on: https://chromium-review.googlesource.com/196112
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/metadata/md5-cache/sys-firmware/seabios-1.7.2.2 b/metadata/md5-cache/sys-firmware/seabios-1.7.2.2
deleted file mode 100644
index 4a61955..0000000
--- a/metadata/md5-cache/sys-firmware/seabios-1.7.2.2
+++ /dev/null
@@ -1,13 +0,0 @@
-DEFINED_PHASES=compile configure install prepare pretend setup
-DEPEND=!binary? ( >=sys-power/iasl-20060912 || ( >=dev-lang/python-2.7.3-r2:2.7 >=dev-lang/python-2.6.8-r3:2.6 ) )
-DESCRIPTION=Open Source implementation of a 16-bit x86 BIOS
-EAPI=5
-HOMEPAGE=http://www.seabios.org
-IUSE=+binary
-KEYWORDS=amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd
-LICENSE=LGPL-3 GPL-3
-REQUIRED_USE=ppc? ( binary ) ppc64? ( binary )
-SLOT=0
-SRC_URI=http://code.coreboot.org/p/seabios/downloads/get/seabios-1.7.2.2.tar.gz http://code.coreboot.org/p/seabios/downloads/get/bios.bin-1.7.2.2.gz http://dev.gentoo.org/~cardoe/distfiles/seabios-1.7.2.2.tar.gz http://dev.gentoo.org/~cardoe/distfiles/bios.bin-1.7.2.2.gz
-_eclasses_=eutils	a108f00cccac414097bcbbbb5de01762	multilib	fac675dcccf94392371a6abee62d909f	python-any-r1	08d3455b23110d650f173ab0a090818b	python-utils-r1	3eaef07c45447158fad343dac1667938	toolchain-funcs	48b38a216afb92db6314d6c3187abea3
-_md5_=eac7a41c555ddad1c53b43d8120f322a
diff --git a/metadata/md5-cache/sys-firmware/seabios-1.7.3.2 b/metadata/md5-cache/sys-firmware/seabios-1.7.3.2
new file mode 100644
index 0000000..11d1b13
--- /dev/null
+++ b/metadata/md5-cache/sys-firmware/seabios-1.7.3.2
@@ -0,0 +1,13 @@
+DEFINED_PHASES=compile configure install prepare pretend setup
+DEPEND=!binary? ( >=sys-power/iasl-20060912 ) || ( >=dev-lang/python-2.7.3-r2:2.7 >=dev-lang/python-2.6.8-r3:2.6 )
+DESCRIPTION=Open Source implementation of a 16-bit x86 BIOS
+EAPI=5
+HOMEPAGE=http://www.seabios.org
+IUSE=+binary
+KEYWORDS=*
+LICENSE=LGPL-3 GPL-3
+REQUIRED_USE=ppc? ( binary ) ppc64? ( binary )
+SLOT=0
+SRC_URI=http://code.coreboot.org/p/seabios/downloads/get/seabios-1.7.3.2.tar.gz http://code.coreboot.org/p/seabios/downloads/get/bios.bin-1.7.3.2.gz http://dev.gentoo.org/~cardoe/distfiles/seabios-1.7.3.2.tar.gz http://dev.gentoo.org/~cardoe/distfiles/bios.bin-1.7.3.2.gz
+_eclasses_=eutils	a108f00cccac414097bcbbbb5de01762	multilib	fac675dcccf94392371a6abee62d909f	python-any-r1	08d3455b23110d650f173ab0a090818b	python-utils-r1	3eaef07c45447158fad343dac1667938	toolchain-funcs	48b38a216afb92db6314d6c3187abea3
+_md5_=a7ad7c5f89e76f12fb7155b0c5c682d8
diff --git a/sys-firmware/seabios/Manifest b/sys-firmware/seabios/Manifest
index 9aa32da..98763c4 100644
--- a/sys-firmware/seabios/Manifest
+++ b/sys-firmware/seabios/Manifest
@@ -1,2 +1,2 @@
-DIST bios.bin-1.7.2.2.gz 71896 SHA256 c285c3f6c6819ded8e536d2719e28d1840f50730bc4ef790125cc905c91b0416 SHA512 f14a66733a8806d3d12dc3e58dd0969172f1aef9c3826f2b6e87b805cb789cbea7d1e766e8b0e0f1d729e30def575f0ed6515a702ef709e932e78f7e87279db9 WHIRLPOOL 1e9748c768bbc9886e60cb3d6ad091e0193b3e2f9e44867d30bc2270126e8087f04911ab7c9788d3107c067d9ad4929b9a7e9f5fc18e4baa53416a21fbd184d0
-DIST seabios-1.7.2.2.tar.gz 448904 SHA256 5ef40e80c8e4ae825922766e82f28232958056f82912a72916ca5dae2147deaa SHA512 2fbe56d04af92b7e7166d2c4b0af0395750c57449735302ee4ef3794a5789a1d1922f9fce53970d3f1923f8ca82daa1d3e4041caaae884c9366c41e11e316e17 WHIRLPOOL 1ffcdc294f7827f669db34e120ccbf6da183359360010288556157d9287b2f55097c90750c3a3f252560363f2b938e8ce95bfb17300e1bc6549a2ae3216a041e
+DIST bios.bin-1.7.3.2.gz 72910 SHA256 a0d1fb258982d4198f070f5727b95835fb2552c836df129df1c253237d9a9f5a SHA512 95eb695ddbfcba7d18c9dffb6c1591f7866df531c75baad0e04f93af576be9aa4860812c5b43296e2f0ca056311e7d7c2c4c2b6ac7f0a345de2ae9021be52c62 WHIRLPOOL af9f1672399f0f663d620b233cb7bf35069934f5d3878d31f664d565755b291bb96c058a9ce455c653b32a87daba8c3f8f0cda8d6c7f4388870846009af0c293
+DIST seabios-1.7.3.2.tar.gz 463900 SHA256 22ed5ba16e3acdf02abc5a7cafafe34f41a02039ef5d0051f5ee4cc183f23255 SHA512 891aa2dcf94d2a84bd1a0b66c724880ec895fe6c79bd9aea06d2125e1bd1442aa47b84fc03e1456900a29dfad9bb90c26123569d18a523572be330efc6504984 WHIRLPOOL 419f20f2854e79c65bbcdd34a3632dfc99248a153ce4fe0cd09ef6bec1bfc7a21a2ae28a6fa87cb9bda4eaebc24c09cf0f48bcf60db3b5c7a050edb699084e16
diff --git a/sys-firmware/seabios/seabios-1.7.2.2.ebuild b/sys-firmware/seabios/seabios-1.7.3.2.ebuild
similarity index 70%
rename from sys-firmware/seabios/seabios-1.7.2.2.ebuild
rename to sys-firmware/seabios/seabios-1.7.3.2.ebuild
index 792c931..07d97fd 100644
--- a/sys-firmware/seabios/seabios-1.7.2.2.ebuild
+++ b/sys-firmware/seabios/seabios-1.7.3.2.ebuild
@@ -1,27 +1,27 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/seabios-1.7.2.2.ebuild,v 1.4 2013/09/14 10:04:38 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/seabios-1.7.3.2.ebuild,v 1.1 2014/01/19 23:01:55 cardoe Exp $
 
 EAPI=5
 
 PYTHON_COMPAT=( python{2_6,2_7} )
 
-inherit eutils python-any-r1
+inherit eutils toolchain-funcs python-any-r1
 
 #BACKPORTS=1
 
-# SeaBIOS maintainers don't release stable tarballs or stable binaries
-# to generate the stable tarball the following is necessary:
+# SeaBIOS maintainers sometimes don't release stable tarballs or stable
+# binaries to generate the stable tarball the following is necessary:
 # git clone git://git.seabios.org/seabios.git && cd seabios
 # git archive --output seabios-${PV}.tar.gz --prefix seabios-${PV}/ rel-${PV}
 
 if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then
 	EGIT_REPO_URI="git://git.seabios.org/seabios.git"
 	inherit git-2
-	KEYWORDS=""
+	KEYWORDS="*"
 	SRC_URI=""
 else
-	KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+	KEYWORDS="*"
 	SRC_URI="http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz
 	http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz
 	http://dev.gentoo.org/~cardoe/distfiles/${P}.tar.gz
@@ -39,12 +39,8 @@
 REQUIRED_USE="ppc? ( binary )
 	ppc64? ( binary )"
 
-DEPEND="
-	!binary? (
-		>=sys-power/iasl-20060912
-		${PYTHON_DEPS}
-	)
-"
+DEPEND="!binary? ( >=sys-power/iasl-20060912 )
+	${PYTHON_DEPS}"
 RDEPEND=""
 
 pkg_pretend() {
@@ -58,12 +54,15 @@
 		ewarn "own SeaBIOS. Virtual machines subtly fail based on changes"
 		ewarn "in SeaBIOS."
 	fi
+
+	local myld=$(tc-getLD)
+
+	${myld} -v | grep -q "GNU gold" && \
+	ewarn "gold linker unable to handle 16-bit code using ld.bfd.  bug #438058"
 }
 
 pkg_setup() {
-	if ! use binary; then
-		python-any-r1_pkg_setup
-	fi
+	use binary || python-any-r1_pkg_setup
 }
 
 src_prepare() {
@@ -84,7 +83,15 @@
 
 src_compile() {
 	if ! use binary ; then
-		LANG=C emake out/bios.bin
+		LANG=C emake \
+			CC=$(tc-getCC) \
+			LD="$(tc-getLD).bfd" \
+			AR=$(tc-getAR) \
+			OBJCOPY=$(tc-getOBJCOPY) \
+			RANLIB=$(tc-getRANLIB) \
+			OBJDUMP=$(tc-getPROG OBJDUMP objdump) \
+			HOST_CC=$(tc-getBUILD_CC) \
+			out/bios.bin
 	fi
 }