Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-embedded/u-boot-tools/, dev-embedded/u-boot-tools/files/
Date: Mon, 04 Jan 2016 22:53:52
Message-Id: 1451947962.cbac0c51832ecc772ae353910253bff66f61853d.anarchy@gentoo
1 commit: cbac0c51832ecc772ae353910253bff66f61853d
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 4 22:52:42 2016 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 4 22:52:42 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=cbac0c51
7
8 dev-embedded/u-boot-tools: Add patch for missing includes for musl
9
10 dev-embedded/u-boot-tools/ChangeLog-2015 | 193 +++++++++++++++++++++
11 dev-embedded/u-boot-tools/Manifest | 5 +
12 .../files/u-boot-tools-2015.04-musl-support.patch | 49 ++++++
13 dev-embedded/u-boot-tools/metadata.xml | 5 +
14 .../u-boot-tools/u-boot-tools-2015.04.ebuild | 48 +++++
15 5 files changed, 300 insertions(+)
16
17 diff --git a/dev-embedded/u-boot-tools/ChangeLog-2015 b/dev-embedded/u-boot-tools/ChangeLog-2015
18 new file mode 100644
19 index 0000000..033f78c
20 --- /dev/null
21 +++ b/dev-embedded/u-boot-tools/ChangeLog-2015
22 @@ -0,0 +1,193 @@
23 +# ChangeLog for dev-embedded/u-boot-tools
24 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
25 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/u-boot-tools/ChangeLog,v 1.40 2015/05/05 09:19:51 aballier Exp $
26 +
27 +*u-boot-tools-2015.04 (05 May 2015)
28 +
29 + 05 May 2015; Alexis Ballier <aballier@g.o>
30 + +u-boot-tools-2015.04.ebuild:
31 + bump to 2015.04; install mkimage man page
32 +
33 + 02 Mar 2015; Markos Chandras <hwoarang@g.o>
34 + u-boot-tools-2015.01.ebuild:
35 + unset a few KBUILD variables. Bug #540476
36 +
37 +*u-boot-tools-2015.01 (11 Feb 2015)
38 +
39 + 11 Feb 2015; Markos Chandras <hwoarang@g.o>
40 + +u-boot-tools-2015.01.ebuild:
41 + Version bump
42 +
43 + 03 May 2014; Mikle Kolyada <zlogene@g.o> u-boot-tools-2014.01.ebuild:
44 + x86 stable wrt bug #502646
45 +
46 + 03 May 2014; Mikle Kolyada <zlogene@g.o> u-boot-tools-2014.01.ebuild:
47 + amd64 stable wrt bug #502646
48 +
49 + 01 Apr 2014; Markus Meier <maekke@g.o> u-boot-tools-2014.01.ebuild:
50 + arm stable, bug #502646
51 +
52 + 25 Jan 2014; Tim Harder <radhermit@g.o> -u-boot-tools-2011.12.ebuild,
53 + -u-boot-tools-2012.10.ebuild:
54 + Remove old.
55 +
56 +*u-boot-tools-2014.01 (25 Jan 2014)
57 +
58 + 25 Jan 2014; Tim Harder <radhermit@g.o> +u-boot-tools-2014.01.ebuild:
59 + Version bump.
60 +
61 + 26 Dec 2013; Mike Frysinger <vapier@g.o> u-boot-tools-2013.07.ebuild:
62 + Stabilize for all #495366.
63 +
64 +*u-boot-tools-2013.07 (27 Sep 2013)
65 +
66 + 27 Sep 2013; Markos Chandras <hwoarang@g.o>
67 + +files/u-boot-no-config.h.patch, +u-boot-tools-2013.07.ebuild:
68 + Version bump
69 +
70 + 10 Nov 2012; Mike Frysinger <vapier@g.o> u-boot-tools-2012.10.ebuild:
71 + Clean up build.
72 +
73 + 09 Nov 2012; Markos Chandras <hwoarang@g.o>
74 + u-boot-tools-2012.10.ebuild:
75 + s/ewarn/einfo/
76 +
77 + 09 Nov 2012; Markos Chandras <hwoarang@g.o>
78 + u-boot-tools-2012.10.ebuild:
79 + Fix typo in comment
80 +
81 +*u-boot-tools-2012.10 (09 Nov 2012)
82 +
83 + 09 Nov 2012; Markos Chandras <hwoarang@g.o>
84 + +u-boot-tools-2012.10.ebuild:
85 + Version bump. Bug #437576
86 +
87 + 05 Sep 2012; Tim Harder <radhermit@g.o>
88 + -files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch,
89 + -u-boot-tools-2011.06.ebuild,
90 + -files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch,
91 + -u-boot-tools-2011.09.ebuild,
92 + -files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch:
93 + Remove old.
94 +
95 + 08 Aug 2012; Andreas Schuerch <nativemad@g.o>
96 + u-boot-tools-2011.12.ebuild:
97 + x86 stable, see bug 418675
98 +
99 + 05 Aug 2012; Markus Meier <maekke@g.o> u-boot-tools-2011.12.ebuild:
100 + arm stable, bug #418675
101 +
102 + 03 Aug 2012; Markos Chandras <hwoarang@g.o>
103 + u-boot-tools-2011.12.ebuild:
104 + Stable on amd64 wrt bug #418675
105 +
106 + 16 Jan 2012; Tim Harder <radhermit@g.o> -u-boot-tools-2010.06.ebuild,
107 + -u-boot-tools-2010.12.ebuild:
108 + Remove old.
109 +
110 +*u-boot-tools-2011.12 (01 Jan 2012)
111 +
112 + 01 Jan 2012; Tim Harder <radhermit@g.o> +u-boot-tools-2011.12.ebuild:
113 + Version bump.
114 +
115 +*u-boot-tools-2011.09 (14 Oct 2011)
116 +
117 + 14 Oct 2011; Mike Frysinger <vapier@g.o>
118 + +files/2011.09/0001-Build-timestamp_autogenerated.h-without-config.patch,
119 + +files/2011.09/0002-Safer-timestamp_autogenerated.h-generation.patch,
120 + +files/2011.09/0003-ublimage-NAND-block-size-isn-t-set-at-build-time.patch,
121 + +u-boot-tools-2011.09.ebuild:
122 + Version bump.
123 +
124 + 14 Oct 2011; Mike Frysinger <vapier@g.o> u-boot-tools-2011.06.ebuild:
125 + Stabilize for all.
126 +
127 +*u-boot-tools-2011.06 (21 Aug 2011)
128 +
129 + 21 Aug 2011; Tim Harder <radhermit@g.o> +u-boot-tools-2011.06.ebuild:
130 + Version bump
131 +
132 +*u-boot-tools-2010.12 (14 Mar 2011)
133 +
134 + 14 Mar 2011; Tim Harder <radhermit@g.o> -u-boot-tools-2009.03.ebuild,
135 + -u-boot-tools-2009.11.1.ebuild, +u-boot-tools-2010.12.ebuild:
136 + Version bump (bug #355669 by Jacob Galbreath) and remove old. Update to EAPI
137 + 4 and remove unnecessary compile setup and die usage.
138 +
139 + 07 Mar 2011; Raúl Porcel <armin76@g.o> u-boot-tools-2010.06.ebuild:
140 + x86stable wrt #355671
141 +
142 + 06 Mar 2011; Michael Weber <xmw@g.o> u-boot-tools-2010.06.ebuild:
143 + arm stable (bug 355671)
144 +
145 + 21 Feb 2011; Markos Chandras <hwoarang@g.o>
146 + u-boot-tools-2010.06.ebuild:
147 + Stable on amd64 wrt bug #355671
148 +
149 +*u-boot-tools-2010.06 (15 Aug 2010)
150 +
151 + 15 Aug 2010; Mike Frysinger <vapier@g.o> +u-boot-tools-2010.06.ebuild:
152 + Version bump #319647 by Jesse Adelman.
153 +
154 +*u-boot-tools-2009.11.1 (05 Jun 2010)
155 +
156 + 05 Jun 2010; Raúl Porcel <armin76@g.o>
157 + +u-boot-tools-2009.11.1.ebuild:
158 + Version bump
159 +
160 +*u-boot-tools-2009.08 (04 Sep 2009)
161 +
162 + 04 Sep 2009; Mike Frysinger <vapier@g.o>
163 + +u-boot-tools-2009.08.ebuild:
164 + Version bump.
165 +
166 +*u-boot-tools-2009.08_rc3 (26 Aug 2009)
167 +
168 + 26 Aug 2009; Raúl Porcel <armin76@g.o>
169 + +u-boot-tools-2009.08_rc3.ebuild:
170 + Version bump
171 +
172 +*u-boot-tools-2009.06 (19 Jul 2009)
173 +
174 + 19 Jul 2009; Mike Frysinger <vapier@g.o>
175 + +u-boot-tools-2009.06.ebuild:
176 + Version bump.
177 +
178 + 07 May 2009; Raúl Porcel <armin76@g.o>
179 + u-boot-tools-2009.03.ebuild:
180 + amd64/arm/x86 stable
181 +
182 +*u-boot-tools-2009.03 (29 Mar 2009)
183 +
184 + 29 Mar 2009; Raúl Porcel <armin76@g.o>
185 + +u-boot-tools-2009.03.ebuild:
186 + Version bump
187 +
188 +*u-boot-tools-2009.01 (16 Mar 2009)
189 +
190 + 16 Mar 2009; Raúl Porcel <armin76@g.o>
191 + +u-boot-tools-2009.01.ebuild:
192 + Version bump wrt #258414
193 +
194 + 25 Nov 2008; Raúl Porcel <armin76@g.o>
195 + u-boot-tools-2008.10.ebuild:
196 + arm stable
197 +
198 + 26 Oct 2008; Markus Meier <maekke@g.o> u-boot-tools-1.3.1.ebuild:
199 + amd64/x86 stable, bug #242518
200 +
201 +*u-boot-tools-2008.10 (26 Oct 2008)
202 +
203 + 26 Oct 2008; Mike Frysinger <vapier@g.o>
204 + +u-boot-tools-2008.10.ebuild:
205 + Version bump.
206 +
207 + 12 May 2008; <solar@g.o> u-boot-tools-1.3.1.ebuild:
208 + - keyworded ~arm per request. Builds native but fails at cross-compiles.
209 + TODO: Fix CROSS_COMPILE= logic to allow the variable to be passed so it gets
210 + the right CTARGET-CC
211 +
212 +*u-boot-tools-1.3.1 (24 Dec 2007)
213 +
214 + 24 Dec 2007; Mike Frysinger <vapier@g.o> +u-boot-tools-1.3.1.ebuild:
215 + Initial import. Ebuild by me.
216
217 diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest
218 new file mode 100644
219 index 0000000..d638d5f
220 --- /dev/null
221 +++ b/dev-embedded/u-boot-tools/Manifest
222 @@ -0,0 +1,5 @@
223 +AUX u-boot-tools-2015.04-musl-support.patch 1132 SHA256 a76b667d2c53151e28ad1e834dc058dda053fdb0488b02b143eaa65b21a06f0d SHA512 e7e96944ff82a56fee2c032f2503b48e50a4e9a1654445f305963b65a8d97046d1f284a25a5033f4ce25359bb296927b1520ceb553436b2b26f50b13d73d225e WHIRLPOOL cd1de1ebd12580156193db07da9fe8505ed28bc6db8a029b1a8a8c40a4c45bebb04690f50f64b55ee0db1a823536d51471ae832dcb17dec1598a3486af3e4628
224 +DIST u-boot-2015.04.tar.bz2 9471487 SHA256 0a1a70df586655f527befa6f12e184e96ed61b126e5a567382321b17200f5d60 SHA512 e50a3d7e44bf588a7cf8e28cdf3342bc38bd1bf55231d579c2501b75386cfff0fbc7a34648d893971e0095510c9d582b7180427832cb78470b4e7af2ce0e3646 WHIRLPOOL dbfd4b13b82505ef94e8b394ba260684ee18c881bd84adfc841194ce6a4b967c8514cedfcac6777045a50b940e3a1882af667e152dc0fc0d3b9254a7dfca89d0
225 +EBUILD u-boot-tools-2015.04.ebuild 1015 SHA256 bce3a8289d663e8301ce26861a77e5454421b2fa31b067e22ee3ea14cf348569 SHA512 fb9c881e000d51de5d799c4576b552fddbb90ed427eaa5a695003e175daa50182688f56b29bb88343ec6e600e0e921ce96b3df4f703d10eff7abaa27c80f9730 WHIRLPOOL 11c9a786f22da21c62e76e5e7a13ad3469a82d8ee189ef55826d40b61fac5f588c73755ee2cdda02fad59a9b00cf5c362be23dcff585b16c153dac504009f50c
226 +MISC ChangeLog-2015 5985 SHA256 42713615155e36eef4d72dfdb4200b01ef285a4343145e8cf57d3a4023c290d8 SHA512 dc39ecc02c08703c4315f19e6d02fa5fb15b464d366a790ed9edaf8cff4fd3e30e810c32a9244cce452a010383479340aac4b0c29ce766abf8cc54d77d8eb20f WHIRLPOOL e55bd174beb38ad6f55f0a4a487af10c3d3321f198a0d7ea281fd8e1aeb57c034a6ce53a7b44c97b975cac6514e3223b688cd432db7e540d11bd9aa680125302
227 +MISC metadata.xml 165 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a SHA512 2be6b57c8e55824d56afbe9ab641639e6e1b4cf73bf2795c2778e373777ad545b5211e06510f13703583e7bb18817f623bc00dddbc8c52ad5f100f085e5dfddf WHIRLPOOL 7fe27fc76b523efadbe65a61c187e78592bc1563423791709914a6263c587a8843c75e19c64f989c7fc8a105c6433a874116ec670df3a27b930634d7e14fb1fe
228
229 diff --git a/dev-embedded/u-boot-tools/files/u-boot-tools-2015.04-musl-support.patch b/dev-embedded/u-boot-tools/files/u-boot-tools-2015.04-musl-support.patch
230 new file mode 100644
231 index 0000000..a4e7245
232 --- /dev/null
233 +++ b/dev-embedded/u-boot-tools/files/u-boot-tools-2015.04-musl-support.patch
234 @@ -0,0 +1,49 @@
235 +diff --git a/include/image.h b/include/image.h
236 +index 3844be6..60b924a 100644
237 +--- a/include/image.h
238 ++++ b/include/image.h
239 +@@ -23,6 +23,7 @@
240 + struct lmb;
241 +
242 + #ifdef USE_HOSTCC
243 ++#include <sys/types.h>
244 +
245 + /* new uImage format support enabled on host */
246 + #define CONFIG_FIT 1
247 +diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
248 +index 1173eea..daa02a7 100644
249 +--- a/tools/env/fw_env.c
250 ++++ b/tools/env/fw_env.c
251 +@@ -8,6 +8,8 @@
252 + * SPDX-License-Identifier: GPL-2.0+
253 + */
254 +
255 ++#define _GNU_SOURCE
256 ++
257 + #include <errno.h>
258 + #include <env_flags.h>
259 + #include <fcntl.h>
260 +diff --git a/tools/imagetool.h b/tools/imagetool.h
261 +index 3e15b4e..b7874f4 100644
262 +--- a/tools/imagetool.h
263 ++++ b/tools/imagetool.h
264 +@@ -16,6 +16,7 @@
265 + #include <stdlib.h>
266 + #include <string.h>
267 + #include <sys/stat.h>
268 ++#include <sys/types.h>
269 + #include <time.h>
270 + #include <unistd.h>
271 + #include <u-boot/sha1.h>
272 +diff --git a/tools/proftool.c b/tools/proftool.c
273 +index 3482951..9ce7a77 100644
274 +--- a/tools/proftool.c
275 ++++ b/tools/proftool.c
276 +@@ -16,6 +16,7 @@
277 + #include <string.h>
278 + #include <unistd.h>
279 + #include <sys/param.h>
280 ++#include <sys/types.h>
281 +
282 + #include <compiler.h>
283 + #include <trace.h>
284
285 diff --git a/dev-embedded/u-boot-tools/metadata.xml b/dev-embedded/u-boot-tools/metadata.xml
286 new file mode 100644
287 index 0000000..9211408
288 --- /dev/null
289 +++ b/dev-embedded/u-boot-tools/metadata.xml
290 @@ -0,0 +1,5 @@
291 +<?xml version="1.0" encoding="UTF-8"?>
292 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
293 +<pkgmetadata>
294 +<herd>dev-embedded</herd>
295 +</pkgmetadata>
296
297 diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2015.04.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2015.04.ebuild
298 new file mode 100644
299 index 0000000..0c145d4
300 --- /dev/null
301 +++ b/dev-embedded/u-boot-tools/u-boot-tools-2015.04.ebuild
302 @@ -0,0 +1,48 @@
303 +# Copyright 1999-2015 Gentoo Foundation
304 +# Distributed under the terms of the GNU General Public License v2
305 +# $Id$
306 +
307 +EAPI="5"
308 +
309 +inherit eutils toolchain-funcs
310 +
311 +MY_P="u-boot-${PV/_/-}"
312 +DESCRIPTION="utilities for working with Das U-Boot"
313 +HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
314 +SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
315 +
316 +LICENSE="GPL-2"
317 +SLOT="0"
318 +KEYWORDS="~amd64 ~arm ~x86"
319 +IUSE=""
320 +
321 +S=${WORKDIR}/${MY_P}
322 +
323 +src_prepare() {
324 + epatch "${FILESDIR}"/${P}-musl-support.patch
325 +}
326 +
327 +src_compile() {
328 + # Unset a few KBUILD variables. Bug #540476
329 + unset KBUILD_OUTPUT KBUILD_SRC
330 + emake defconfig
331 + emake \
332 + HOSTSTRIP=: \
333 + STRIP=: \
334 + HOSTCC="$(tc-getCC)" \
335 + HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
336 + HOSTLDFLAGS="${LDFLAGS}" \
337 + CONFIG_ENV_OVERWRITE=y \
338 + tools-all
339 +}
340 +
341 +src_install() {
342 + cd tools
343 + dobin bmp_logo gen_eth_addr img2srec mkimage
344 + dobin easylogo/easylogo
345 + dobin env/fw_printenv
346 + dosym fw_printenv /usr/bin/fw_setenv
347 + insinto /etc
348 + doins env/fw_env.config
349 + doman "${S}/doc/mkimage.1"
350 +}