blob: b5515c2c8841af21d7007824f999c2d425e9963d [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
CROS_WORKON_COMMIT="2ff0450528547862b33c2d1ec32d60341d850c94"
CROS_WORKON_TREE="8682449abb1ce8d9d6b908f825a0eca4b0e9f2cc"
EAPI=2
CROS_WORKON_PROJECT="chromiumos/third_party/seabios"
inherit toolchain-funcs
DESCRIPTION="Open Source implementation of X86 BIOS"
HOMEPAGE="http://www.coreboot.org/SeaBIOS"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND=""
DEPEND=""
CROS_WORKON_LOCALNAME="seabios"
# This must be inherited *after* EGIT/CROS_WORKON variables defined
inherit cros-workon
src_compile() {
export LD="$(tc-getLD).bfd"
export CC="$(tc-getCC) -fuse-ld=bfd"
emake defconfig || die "${P}: configuration failed"
emake || die "${P}: compilation failed"
}
src_install() {
dodir /firmware
insinto /firmware
doins out/bios.bin.elf || die
}