Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-firmware/seabios/files/seavgabios/, sys-firmware/seabios/
Date: Sun, 30 Aug 2015 00:16:28
Message-Id: 1440893563.bc189a5a2a37d9b2439fe24dc507bdbe55155b17.vapier@gentoo
1 commit: bc189a5a2a37d9b2439fe24dc507bdbe55155b17
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 00:11:00 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 00:12:43 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc189a5a
7
8 sys-firmware/seabios: version bump to 1.8.2
9
10 sys-firmware/seabios/Manifest | 3 +
11 .../seabios/files/seavgabios/config.vga-virtio | 6 +
12 sys-firmware/seabios/seabios-1.8.2.ebuild | 126 +++++++++++++++++++++
13 3 files changed, 135 insertions(+)
14
15 diff --git a/sys-firmware/seabios/Manifest b/sys-firmware/seabios/Manifest
16 index 65ec211..4f7b1e1 100644
17 --- a/sys-firmware/seabios/Manifest
18 +++ b/sys-firmware/seabios/Manifest
19 @@ -1,3 +1,6 @@
20 DIST bios.bin-1.7.5.gz 78943 SHA256 2e83e68e6cff73ede1c2490dabad74c177d7b67f9d93a5ed5f2ef39e76dea0ea SHA512 153a4cf190843540a9a72fcb0cf34f1f9f6ff2efb4b4f700c515dea467b101a8999421b53c2f21599864e2e803ae455a4ae39c7e8be9491c4383b4bfbe734014 WHIRLPOOL 2383f5f3a91581b0ee0ff19fd429a67b7fe09db05c456b98aee01ab9008a12d265e56f81b4d60224c7be15a86da9d2288f83a1d83f621b2ff00ab3aaccb277a4
21 +DIST bios.bin-1.8.2.xz 67428 SHA256 b4628fdbfc39fd73e7ab0c54dfc26128b6011d34778e381c1b2d2340209be838 SHA512 2b2339c02134bcbd6e71e8d31f9907a160534a047bc91502c215d3d4c79431b962177ac43d826cc5689d71dfc0995bc8a9a5caf1a35929f308b3c2bdad720c15 WHIRLPOOL 050a7880d0da8bb8be1ce3e1262f7e5107a5a426eb31ce9629ef497305e390d348de7ed3c7595248010eb02481a2b4a9e4dca94b3a9c954c18b8a9624f46bbc6
22 DIST seabios-1.7.5.tar.gz 537566 SHA256 858d9eda4ad91efa1c45a5a401d560ef9ca8dd172f03b0a106f06661c252dc51 SHA512 ecf5fb9ac44dde6e4ac00baa6c920dde51b923f23dd74e62c5a02eceaf235e57b885975c5a8bd0927e268115c72bd1143a080fdfd4eff4e168ebeaa30436280e WHIRLPOOL 5e1e99b3bd82a8607c5986fde4592c7437bec4bd78abd5873710f6c431d075436725e8d0d32e9f0dd2921c9d84b8613108b21d31c5309a73e337ead7adf35e90
23 +DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a5964d68c77e32ca6c987ee61 SHA512 798d222d5f5725a805cde9e6000b5ce714d0551fd4a3c2642cc6e77b2bdab1a9e239939a358a23bbe0e00112f5ad70696c87d20b90655463c835541fc04e1a00 WHIRLPOOL 9cda0ad502a59dd718c543b759ac3fcf5acb4adee70c3da9bfea95ab188415acf6425827de77f45421ec3be8fd9e0c37fb486e62828217ba3e83f88d942a3f4a
24 DIST seabios_1.7.5-1_all.deb 112098 SHA256 61bab13a733e8087147ae4798f0053c6d632866e332a1ee3af2265e4f57ced36 SHA512 891a26e084ccac8e9badce5a58eeadfb958af9d5ed087a99998f92153718e8231c14abfae0ed86bde870aa9e2f29fd93d5cc04515695e6f2d7b9fcaaef11bfce WHIRLPOOL d47ad79e7bd701862d059d86c7cb3b730b0303c5170ec52a481df5326cad0cd98ea78fcdb2730623b6b65289d9042f4685991eb515402543083cd8228f849959
25 +DIST seavgabios-1.8.2.tar.xz 20284 SHA256 d28ff071ee56f7bd88cec2482908f469d553cd8b61485a8e89989c26cb5c0e4a SHA512 16d2b54cd98aa22f7af21d8c51a4cf87d9462ec0c99bf703bf7f6c3c4e0be4cbd313b8cf0fb79cdb7b6a7f94441493a4f9669b6d44297e12f03a749befa2d845 WHIRLPOOL 9d61957ec4e3a0c5e4b999495119c6cfb4f2165d98b652b530dbee3ceb19b18a75d07902a5ee15b41b877154bb9ac19163d75c6024a40c4e94e6cf5cdf561e9d
26
27 diff --git a/sys-firmware/seabios/files/seavgabios/config.vga-virtio b/sys-firmware/seabios/files/seavgabios/config.vga-virtio
28 new file mode 100644
29 index 0000000..aa7a15b
30 --- /dev/null
31 +++ b/sys-firmware/seabios/files/seavgabios/config.vga-virtio
32 @@ -0,0 +1,6 @@
33 +CONFIG_BUILD_VGABIOS=y
34 +CONFIG_VGA_BOCHS=y
35 +CONFIG_VGA_PCI=y
36 +CONFIG_OVERRIDE_PCI_ID=y
37 +CONFIG_VGA_VID=0x1af4
38 +CONFIG_VGA_DID=0x1050
39
40 diff --git a/sys-firmware/seabios/seabios-1.8.2.ebuild b/sys-firmware/seabios/seabios-1.8.2.ebuild
41 new file mode 100644
42 index 0000000..61b1a8d
43 --- /dev/null
44 +++ b/sys-firmware/seabios/seabios-1.8.2.ebuild
45 @@ -0,0 +1,126 @@
46 +# Copyright 1999-2015 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +# $Id$
49 +
50 +EAPI="5"
51 +
52 +PYTHON_COMPAT=( python2_7 )
53 +
54 +inherit eutils toolchain-funcs python-any-r1
55 +
56 +# SeaBIOS maintainers sometimes don't release stable tarballs or stable
57 +# binaries to generate the stable tarball the following is necessary:
58 +# git clone git://git.seabios.org/seabios.git && cd seabios
59 +# git archive --output seabios-${PV}.tar.gz --prefix seabios-${PV}/ rel-${PV}
60 +
61 +if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then
62 + EGIT_REPO_URI="git://git.seabios.org/seabios.git"
63 + inherit git-2
64 +else
65 + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
66 + # Upstream hasn't released a new binary. We snipe ours from Fedora for now.
67 + # http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz
68 + SRC_URI="!binary? ( http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz )
69 + binary? (
70 + mirror://gentoo/bios.bin-${PV}.xz
71 + seavgabios? ( mirror://gentoo/seavgabios-${PV}.tar.xz )
72 + )"
73 +fi
74 +
75 +DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS"
76 +HOMEPAGE="http://www.seabios.org"
77 +
78 +LICENSE="LGPL-3 GPL-3"
79 +SLOT="0"
80 +IUSE="+binary +seavgabios"
81 +
82 +REQUIRED_USE="ppc? ( binary )
83 + ppc64? ( binary )"
84 +
85 +DEPEND="
86 + !binary? (
87 + >=sys-power/iasl-20060912
88 + ${PYTHON_DEPS}
89 + )"
90 +RDEPEND=""
91 +
92 +pkg_pretend() {
93 + if ! use binary; then
94 + ewarn "You have decided to compile your own SeaBIOS. This is not"
95 + ewarn "supported by upstream unless you use their recommended"
96 + ewarn "toolchain (which you are not)."
97 + elog
98 + ewarn "If you are intending to use this build with QEMU, realize"
99 + ewarn "you will not receive any support if you have compiled your"
100 + ewarn "own SeaBIOS. Virtual machines subtly fail based on changes"
101 + ewarn "in SeaBIOS."
102 + fi
103 +}
104 +
105 +pkg_setup() {
106 + use binary || python-any-r1_pkg_setup
107 +}
108 +
109 +src_unpack() {
110 + default
111 +
112 + # This simplifies the logic between binary & source builds.
113 + mkdir -p "${S}"
114 +}
115 +
116 +src_prepare() {
117 + use binary || epatch_user
118 +}
119 +
120 +src_configure() {
121 + use binary || tc-ld-disable-gold #438058
122 +}
123 +
124 +_emake() {
125 + LANG=C \
126 + emake V=1 \
127 + CC="$(tc-getCC)" \
128 + LD="$(tc-getLD)" \
129 + AR="$(tc-getAR)" \
130 + OBJCOPY="$(tc-getOBJCOPY)" \
131 + RANLIB="$(tc-getRANLIB)" \
132 + OBJDUMP="$(tc-getOBJDUMP)" \
133 + HOST_CC="$(tc-getBUILD_CC)" \
134 + VERSION="Gentoo/${EGIT_COMMIT:-${PVR}}" \
135 + "$@"
136 +}
137 +
138 +src_compile() {
139 + use binary && return
140 +
141 + _emake out/bios.bin
142 + mv out/bios.bin ../bios.bin
143 +
144 + if use seavgabios ; then
145 + local config t targets=(
146 + cirrus
147 + isavga
148 + qxl
149 + stdvga
150 + virtio
151 + vmware
152 + )
153 + for t in "${targets[@]}" ; do
154 + emake clean distclean
155 + cp "${FILESDIR}/seavgabios/config.vga-${t}" .config || die
156 + _emake oldnoconfig
157 + _emake out/vgabios.bin
158 + cp out/vgabios.bin ../vgabios-${t}.bin || die
159 + done
160 + fi
161 +}
162 +
163 +src_install() {
164 + insinto /usr/share/seabios
165 + newins ../bios.bin* bios.bin
166 +
167 + if use seavgabios ; then
168 + insinto /usr/share/seavgabios
169 + doins ../vgabios*.bin
170 + fi
171 +}