Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, sys-boot/raspberrypi-mkimage/, sys-boot/raspberrypi-mkimage/files/
Date: Sat, 23 May 2020 09:42:25
Message-Id: 1590226827.e20a0fe53f1bc45de5e6211b4ea43b4484f340d7.mgorny@gentoo
1 commit: e20a0fe53f1bc45de5e6211b4ea43b4484f340d7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 09:40:27 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 09:40:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e20a0fe5
7
8 sys-boot/raspberrypi-mkimage: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/718530
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 profiles/package.mask | 5 --
14 ...rrypi-mkimage-0_p20120201-args-uncompressed.txt | 12 -----
15 ...rrypi-mkimage-0_p20120201-boot-uncompressed.txt | 17 -------
16 ..._p20120201-imagetool-uncompressed-python3.patch | 11 -----
17 ...kimage-0_p20120201-imagetool-uncompressed.patch | 48 -------------------
18 ...i-mkimage-0_p20120201-imagetool-uncompressed.py | 45 -----------------
19 sys-boot/raspberrypi-mkimage/metadata.xml | 8 ----
20 .../raspberrypi-mkimage-0_p20120201.ebuild | 56 ----------------------
21 8 files changed, 202 deletions(-)
22
23 diff --git a/profiles/package.mask b/profiles/package.mask
24 index ba48a72cb6e..8c77d691d24 100644
25 --- a/profiles/package.mask
26 +++ b/profiles/package.mask
27 @@ -518,11 +518,6 @@ media-gfx/svg2rlg
28 # release. Bug 718326. Removal whenever it becomes an issue.
29 mail-filter/pyzor
30
31 -# Michał Górny <mgorny@g.o> (2020-04-19)
32 -# Unmaintained. Stuck on Python 3.6.
33 -# Removal in 30 days. Bug #718530.
34 -sys-boot/raspberrypi-mkimage
35 -
36 # Michał Górny <mgorny@g.o> (2020-04-19)
37 # Unmaintained. Stuck on Python 3.6. Needs version bump.
38 # Removal in 30 days. Bug #718458.
39
40 diff --git a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt b/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt
41 deleted file mode 100644
42 index 09398b47eee..00000000000
43 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt
44 +++ /dev/null
45 @@ -1,12 +0,0 @@
46 -; kernel args (place at 0x00000100)
47 -0x00000005
48 -0x54410001
49 -0x00000001
50 -0x00001000
51 -0x00000000
52 -0x00000004
53 -0x54410002
54 -0x08000000
55 -0x00000000
56 -0x00000000
57 -0x00000000
58
59 diff --git a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt b/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt
60 deleted file mode 100644
61 index 1cf5888278a..00000000000
62 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt
63 +++ /dev/null
64 @@ -1,17 +0,0 @@
65 -; bootloader (place at 0x00000000)
66 -0xea000006
67 -0xe1a00000
68 -0xe1a00000
69 -0xe1a00000
70 -0xe1a00000
71 -0xe1a00000
72 -0xe1a00000
73 -0xe1a00000
74 -
75 -0xe3a00000
76 -0xe3a01042
77 -0xe3811c0c
78 -0xe59f2000
79 -0xe59ff000
80 -0x00000100
81 -0x00008000
82
83 diff --git a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch b/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch
84 deleted file mode 100644
85 index 28b8a6f3170..00000000000
86 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch
87 +++ /dev/null
88 @@ -1,11 +0,0 @@
89 ---- a/imagetool-uncompressed.py
90 -+++ b/imagetool-uncompressed.py
91 -@@ -46,7 +47,7 @@
92 - f = open(args.bootimage, "wb")
93 -
94 - for m in mem:
95 -- f.write(chr(m))
96 -+ f.write(chr(m).encode('latin1'))
97 -
98 - f.write(kernel_image)
99 - f.close()
100
101 diff --git a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch b/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch
102 deleted file mode 100644
103 index adba8bbcdbb..00000000000
104 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch
105 +++ /dev/null
106 @@ -1,48 +0,0 @@
107 ---- a/imagetool-uncompressed.py
108 -+++ b/imagetool-uncompressed.py
109 -@@ -3,15 +3,23 @@
110 - import os
111 - import re
112 - import sys
113 -+import argparse
114 -
115 --try:
116 -- kernel_image = sys.argv[1]
117 --except:
118 -- kernel_image = ""
119 --
120 --if kernel_image == "":
121 -- print("usage : imagetool-uncompressed.py <kernel image>");
122 -- sys.exit(0)
123 -+parser = argparse.ArgumentParser(description='Prepare kernel files for Raspberry Pi bootloader')
124 -+parser.add_argument('--force', '-f', action='store_true', default=False,
125 -+ help='overwrite target file')
126 -+parser.add_argument('kernel',
127 -+ help='kernel file from /usr/src/linux*/arch/arm/boot/Image')
128 -+parser.add_argument('bootimage',
129 -+ help='file to be placed in /boot/kernel.img')
130 -+args = parser.parse_args()
131 -+if os.path.exists(args.bootimage) and not args.force:
132 -+ print('Target file exists, use --force to override')
133 -+ sys.exit(1)
134 -+
135 -+f = open(args.kernel, 'rb')
136 -+kernel_image = f.read()
137 -+f.close()
138 -
139 - re_line = re.compile(r"0x(?P<value>[0-9a-f]{8})")
140 -
141 -@@ -35,11 +43,10 @@
142 - load_to_mem("boot-uncompressed.txt", 0x00000000)
143 - load_to_mem("args-uncompressed.txt", 0x00000100)
144 -
145 --f = open("first32k.bin", "wb")
146 -+f = open(args.bootimage, "wb")
147 -
148 - for m in mem:
149 - f.write(chr(m))
150 -
151 -+f.write(kernel_image)
152 - f.close()
153 --
154 --os.system("cat first32k.bin " + kernel_image + " > kernel.img")
155
156 diff --git a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py b/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py
157 deleted file mode 100644
158 index 46ff4fc8ea6..00000000000
159 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py
160 +++ /dev/null
161 @@ -1,45 +0,0 @@
162 -#!/usr/bin/env python2
163 -
164 -import os
165 -import re
166 -import sys
167 -
168 -try:
169 - kernel_image = sys.argv[1]
170 -except:
171 - kernel_image = ""
172 -
173 -if kernel_image == "":
174 - print("usage : imagetool-uncompressed.py <kernel image>");
175 - sys.exit(0)
176 -
177 -re_line = re.compile(r"0x(?P<value>[0-9a-f]{8})")
178 -
179 -mem = [0 for i in range(32768)]
180 -
181 -def load_to_mem(name, addr):
182 - f = open(name)
183 -
184 - for l in f.readlines():
185 - m = re_line.match(l)
186 -
187 - if m:
188 - value = int(m.group("value"), 16)
189 -
190 - for i in range(4):
191 - mem[addr] = int(value >> i * 8 & 0xff)
192 - addr += 1
193 -
194 - f.close()
195 -
196 -load_to_mem("boot-uncompressed.txt", 0x00000000)
197 -load_to_mem("args-uncompressed.txt", 0x00000100)
198 -
199 -f = open("first32k.bin", "wb")
200 -
201 -for m in mem:
202 - f.write(chr(m))
203 -
204 -f.close()
205 -
206 -os.system("cat first32k.bin " + kernel_image + " > kernel.img")
207
208 diff --git a/sys-boot/raspberrypi-mkimage/metadata.xml b/sys-boot/raspberrypi-mkimage/metadata.xml
209 deleted file mode 100644
210 index 03d6b306d32..00000000000
211 --- a/sys-boot/raspberrypi-mkimage/metadata.xml
212 +++ /dev/null
213 @@ -1,8 +0,0 @@
214 -<?xml version="1.0" encoding="UTF-8"?>
215 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
216 -<pkgmetadata>
217 - <!-- maintainer-needed -->
218 - <upstream>
219 - <remote-id type="github">raspberrypi/tools</remote-id>
220 - </upstream>
221 -</pkgmetadata>
222
223 diff --git a/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild b/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild
224 deleted file mode 100644
225 index ed0353e2b3c..00000000000
226 --- a/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild
227 +++ /dev/null
228 @@ -1,56 +0,0 @@
229 -# Copyright 1999-2020 Gentoo Authors
230 -# Distributed under the terms of the GNU General Public License v2
231 -
232 -EAPI=6
233 -
234 -PYTHON_COMPAT=( python3_6 )
235 -DISTUTILS_IN_SOURCE_BUILD=1
236 -
237 -inherit distutils-r1
238 -
239 -DESCRIPTION="Raspberry Pi kernel mangling tool mkimage/imagetool-uncompressed.py"
240 -HOMEPAGE="https://github.com/raspberrypi/tools/"
241 -SRC_URI=""
242 -
243 -LICENSE="GPL-2"
244 -SLOT="0"
245 -KEYWORDS="~amd64 ~arm ~x86"
246 -IUSE=""
247 -
248 -DEPEND=""
249 -RDEPEND=""
250 -
251 -PATCHES=( "${FILESDIR}"/${P}-imagetool-uncompressed.patch )
252 -
253 -src_unpack() {
254 - mkdir "${S}" || die
255 - cp {"${FILESDIR}"/${P}-,"${S}"/}imagetool-uncompressed.py || die
256 -}
257 -
258 -python_prepare_all() {
259 - sed -e '/^load_to_mem("/s:(":("'${EPREFIX}'/usr/share/'${PN}'/:' \
260 - -e '1s:python2:python:' \
261 - -i imagetool-uncompressed.py || die
262 -
263 - distutils-r1_python_prepare_all
264 -}
265 -
266 -python_prepare() {
267 - if python_is_python3; then
268 - eapply "${FILESDIR}"/${P}-imagetool-uncompressed-python3.patch
269 - fi
270 -}
271 -
272 -python_compile() { :; }
273 -
274 -python_install() {
275 - python_doscript imagetool-uncompressed.py
276 -}
277 -
278 -python_install_all() {
279 - insinto /usr/share/${PN}
280 - newins {"${FILESDIR}"/${P}-,}args-uncompressed.txt
281 - newins {"${FILESDIR}"/${P}-,}boot-uncompressed.txt
282 -
283 - distutils-r1_python_install_all
284 -}