1 |
commit: e747c2787e38a9257e7444025bfccbd35231de71 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 18:36:26 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 20:05:07 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e747c278 |
7 |
|
8 |
sys-firmware/seabios: version bump to 1.10.1 #599084 |
9 |
|
10 |
sys-firmware/seabios/Manifest | 3 + |
11 |
sys-firmware/seabios/seabios-1.10.1.ebuild | 143 +++++++++++++++++++++++++++++ |
12 |
2 files changed, 146 insertions(+) |
13 |
|
14 |
diff --git a/sys-firmware/seabios/Manifest b/sys-firmware/seabios/Manifest |
15 |
index 4f7b1e1..d46b9d6 100644 |
16 |
--- a/sys-firmware/seabios/Manifest |
17 |
+++ b/sys-firmware/seabios/Manifest |
18 |
@@ -1,6 +1,9 @@ |
19 |
+DIST bios.bin-1.10.1.xz 63668 SHA256 39d39cfa8166d947439081dedebb8c79a159de9b8b5447afb4876416fcf17d9d SHA512 9e3ba9c7dac3f03f9c57898a993eab34f8f3fecb0ac4718f6d4d6b1a825651a255e48fb7dc29a339249f42668469946f238674cb1f8308cf9b4a3e1e82c346d3 WHIRLPOOL 1208730ef4ee8455fe1e051b3350463d458ccf734c0fdd12d06b91dd0edbb96b2e6ec7bcc5b37902a98465c73bbf327fc3c42b7f1587bae1871d4ab9a70f5e50 |
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.10.1.tar.gz 588092 SHA256 5063ddbac61ec4e61a12daa83931c37e5629b1c18502f7c00ed4e696c2a1d2cb SHA512 b2f1c2b15853b1cc949f741ae13f32fd133efb0d0917e1cdfb253f9cd0bc9bb0b42c592cdd87bc74ccbb12a4301c102ae723ccdb490ea4716e0c9dca3dd3fead WHIRLPOOL 723d4835288566bbb6a3c3b7df2486c0a7f949590404230667a4e4490317591bcdb99dd9b0933770d8c1416c25f6a8d20b153d7410787e19d8ecbd92a7312af9 |
23 |
DIST seabios-1.7.5.tar.gz 537566 SHA256 858d9eda4ad91efa1c45a5a401d560ef9ca8dd172f03b0a106f06661c252dc51 SHA512 ecf5fb9ac44dde6e4ac00baa6c920dde51b923f23dd74e62c5a02eceaf235e57b885975c5a8bd0927e268115c72bd1143a080fdfd4eff4e168ebeaa30436280e WHIRLPOOL 5e1e99b3bd82a8607c5986fde4592c7437bec4bd78abd5873710f6c431d075436725e8d0d32e9f0dd2921c9d84b8613108b21d31c5309a73e337ead7adf35e90 |
24 |
DIST seabios-1.8.2.tar.gz 538497 SHA256 f59479307fdae840de398b75aacb2333c8eba24a5964d68c77e32ca6c987ee61 SHA512 798d222d5f5725a805cde9e6000b5ce714d0551fd4a3c2642cc6e77b2bdab1a9e239939a358a23bbe0e00112f5ad70696c87d20b90655463c835541fc04e1a00 WHIRLPOOL 9cda0ad502a59dd718c543b759ac3fcf5acb4adee70c3da9bfea95ab188415acf6425827de77f45421ec3be8fd9e0c37fb486e62828217ba3e83f88d942a3f4a |
25 |
DIST seabios_1.7.5-1_all.deb 112098 SHA256 61bab13a733e8087147ae4798f0053c6d632866e332a1ee3af2265e4f57ced36 SHA512 891a26e084ccac8e9badce5a58eeadfb958af9d5ed087a99998f92153718e8231c14abfae0ed86bde870aa9e2f29fd93d5cc04515695e6f2d7b9fcaaef11bfce WHIRLPOOL d47ad79e7bd701862d059d86c7cb3b730b0303c5170ec52a481df5326cad0cd98ea78fcdb2730623b6b65289d9042f4685991eb515402543083cd8228f849959 |
26 |
DIST seavgabios-1.8.2.tar.xz 20284 SHA256 d28ff071ee56f7bd88cec2482908f469d553cd8b61485a8e89989c26cb5c0e4a SHA512 16d2b54cd98aa22f7af21d8c51a4cf87d9462ec0c99bf703bf7f6c3c4e0be4cbd313b8cf0fb79cdb7b6a7f94441493a4f9669b6d44297e12f03a749befa2d845 WHIRLPOOL 9d61957ec4e3a0c5e4b999495119c6cfb4f2165d98b652b530dbee3ceb19b18a75d07902a5ee15b41b877154bb9ac19163d75c6024a40c4e94e6cf5cdf561e9d |
27 |
+DIST seavgabios-bin-1.10.1.tar.xz 20408 SHA256 88c310f2f1ddbbca3e00f8895706b3df718046bd729ab719c4e4bd01f502bd6d SHA512 7fe97efaf61c2d1e72c8df27b5108c80f6a51f5a7370de68720b0f71abe05ae5765dd867d127df2fa6182b5d4702a9ef7549e7170fec5071b31a6066db20c219 WHIRLPOOL 484c2f0302bf232e8065ec8cc1566731a962a2f76e01df2b7b21611b3c3ab47b04f1de192a3675130942a42c97f78e210d14ac2e36a7c36d8c28eff4e1618abc |
28 |
|
29 |
diff --git a/sys-firmware/seabios/seabios-1.10.1.ebuild b/sys-firmware/seabios/seabios-1.10.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000..ef12120 |
32 |
--- /dev/null |
33 |
+++ b/sys-firmware/seabios/seabios-1.10.1.ebuild |
34 |
@@ -0,0 +1,143 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI="5" |
39 |
+ |
40 |
+PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
41 |
+ |
42 |
+inherit eutils toolchain-funcs python-any-r1 |
43 |
+ |
44 |
+# SeaBIOS maintainers sometimes don't release stable tarballs or stable |
45 |
+# binaries to generate the stable tarball the following is necessary: |
46 |
+# git clone git://git.seabios.org/seabios.git && cd seabios |
47 |
+# git archive --output seabios-${PV}.tar.gz --prefix seabios-${PV}/ rel-${PV} |
48 |
+ |
49 |
+if [[ ${PV} == *9999* || -n "${EGIT_COMMIT}" ]] ; then |
50 |
+ EGIT_REPO_URI="git://git.seabios.org/seabios.git" |
51 |
+ inherit git-2 |
52 |
+else |
53 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
54 |
+ # Upstream hasn't released a new binary. We snipe ours from Fedora for now. |
55 |
+ # https://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz |
56 |
+ # http://fedora.mirror.lstn.net/ |
57 |
+ # http://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/s/ |
58 |
+ # seabios-bin-1.10.1-1.fc26.noarch.rpm |
59 |
+ # seavgabios-bin-1.10.1-1.fc26.noarch.rpm |
60 |
+ SRC_URI="!binary? ( https://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz ) |
61 |
+ binary? ( |
62 |
+ mirror://gentoo/bios.bin-${PV}.xz |
63 |
+ seavgabios? ( mirror://gentoo/seavgabios-bin-${PV}.tar.xz ) |
64 |
+ )" |
65 |
+fi |
66 |
+ |
67 |
+DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS" |
68 |
+HOMEPAGE="https://www.seabios.org/" |
69 |
+ |
70 |
+LICENSE="LGPL-3 GPL-3" |
71 |
+SLOT="0" |
72 |
+IUSE="+binary debug +seavgabios" |
73 |
+ |
74 |
+REQUIRED_USE="debug? ( !binary ) |
75 |
+ !amd64? ( !x86? ( binary ) )" |
76 |
+ |
77 |
+# The amd64/x86 check is needed to workaround #570892. |
78 |
+SOURCE_DEPEND=" |
79 |
+ >=sys-power/iasl-20060912 |
80 |
+ ${PYTHON_DEPS}" |
81 |
+DEPEND=" |
82 |
+ !binary? ( |
83 |
+ amd64? ( ${SOURCE_DEPEND} ) |
84 |
+ x86? ( ${SOURCE_DEPEND} ) |
85 |
+ )" |
86 |
+RDEPEND="" |
87 |
+ |
88 |
+pkg_pretend() { |
89 |
+ if ! use binary; then |
90 |
+ ewarn "You have decided to compile your own SeaBIOS. This is not" |
91 |
+ ewarn "supported by upstream unless you use their recommended" |
92 |
+ ewarn "toolchain (which you are not)." |
93 |
+ elog |
94 |
+ ewarn "If you are intending to use this build with QEMU, realize" |
95 |
+ ewarn "you will not receive any support if you have compiled your" |
96 |
+ ewarn "own SeaBIOS. Virtual machines subtly fail based on changes" |
97 |
+ ewarn "in SeaBIOS." |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ use binary || python-any-r1_pkg_setup |
103 |
+} |
104 |
+ |
105 |
+src_unpack() { |
106 |
+ default |
107 |
+ |
108 |
+ # This simplifies the logic between binary & source builds. |
109 |
+ mkdir -p "${S}" |
110 |
+} |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ use binary && return |
114 |
+ |
115 |
+ epatch "${FILESDIR}"/${P}-fstack-check.patch #559980 |
116 |
+ epatch_user |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ use binary && return |
121 |
+ |
122 |
+ tc-ld-disable-gold #438058 |
123 |
+ |
124 |
+ if use debug ; then |
125 |
+ echo "CONFIG_DEBUG_LEVEL=8" >.config |
126 |
+ fi |
127 |
+ _emake config |
128 |
+} |
129 |
+ |
130 |
+_emake() { |
131 |
+ LANG=C \ |
132 |
+ emake V=1 \ |
133 |
+ CC="$(tc-getCC)" \ |
134 |
+ LD="$(tc-getLD)" \ |
135 |
+ AR="$(tc-getAR)" \ |
136 |
+ OBJCOPY="$(tc-getOBJCOPY)" \ |
137 |
+ RANLIB="$(tc-getRANLIB)" \ |
138 |
+ OBJDUMP="$(tc-getOBJDUMP)" \ |
139 |
+ HOST_CC="$(tc-getBUILD_CC)" \ |
140 |
+ VERSION="Gentoo/${EGIT_COMMIT:-${PVR}}" \ |
141 |
+ "$@" |
142 |
+} |
143 |
+ |
144 |
+src_compile() { |
145 |
+ use binary && return |
146 |
+ |
147 |
+ _emake out/bios.bin |
148 |
+ mv out/bios.bin ../bios.bin |
149 |
+ |
150 |
+ if use seavgabios ; then |
151 |
+ local config t targets=( |
152 |
+ cirrus |
153 |
+ isavga |
154 |
+ qxl |
155 |
+ stdvga |
156 |
+ virtio |
157 |
+ vmware |
158 |
+ ) |
159 |
+ for t in "${targets[@]}" ; do |
160 |
+ emake clean distclean |
161 |
+ cp "${FILESDIR}/seavgabios/config.vga-${t}" .config || die |
162 |
+ _emake oldnoconfig |
163 |
+ _emake out/vgabios.bin |
164 |
+ cp out/vgabios.bin ../vgabios-${t}.bin || die |
165 |
+ done |
166 |
+ fi |
167 |
+} |
168 |
+ |
169 |
+src_install() { |
170 |
+ insinto /usr/share/seabios |
171 |
+ newins ../bios.bin* bios.bin |
172 |
+ |
173 |
+ if use seavgabios ; then |
174 |
+ insinto /usr/share/seavgabios |
175 |
+ doins ../vgabios*.bin |
176 |
+ fi |
177 |
+} |