blob: 08215b02ab037c7f7fb544c34b9770ec9660c636 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="228261196c51a06406c94fd406eebfc4050bc648"
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="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
}