diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /sys-boot/raspberrypi-mkimage | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'sys-boot/raspberrypi-mkimage')
8 files changed, 0 insertions, 204 deletions
diff --git a/sys-boot/raspberrypi-mkimage/Manifest b/sys-boot/raspberrypi-mkimage/Manifest deleted file mode 100644 index 7cdc404c89fa..000000000000 --- a/sys-boot/raspberrypi-mkimage/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX raspberrypi-mkimage-0_p20120201-args-uncompressed.txt 157 BLAKE2B e391372f9872df41203cfcbceb65518852cd6023151fb87acc9f26ac9d428be211376eec01ab919e927df1aa5d987292c3e1f2df8ccf82c34b36062c1719b926 SHA512 f9f3ad4640ae4973b97924f08ded2a6fad4f8fea576715053d860a15e2ba3dfc39c5082eee95ef0f7fa4ccb36e9a39d9d2f2e90ab7d0550a0a51d6b31cf6030d -AUX raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt 201 BLAKE2B aec1ca663709a2816a2ce45bbe5a18103e84b4df0b3cc498b77d2ae64ba3fedd99dcd435dba02955fb1e7769bbc9af2386dddff6e24db6910a966e1253b5b178 SHA512 cc0ce918e1533222be481aade51fd7ec2ba6b41a23470517efb1260d790ff958c8f4c6232e632faf8be4664a264d12034c4f01a67ef29d9124cafd4f58d94ebd -AUX raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch 224 BLAKE2B 6b758469b620406246ff19a911271e60d20c31b573a17b45193dbf5df68a623d80400c72f5ff75a25388ab72c1e9dff9e18a516ed3112b2f2c55f63031ff492d SHA512 338a39f6050b1f49640aa42b6100bdaea965d44f541d57ea5758efe83f0ba4749b135f20474a14d66ebd8c46a22d4db4ed87bdbd849b04421a067f5376dfa9dd -AUX raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch 1294 BLAKE2B 2c64091cca326a285dababae93a3f5a7ff40b9684717c8c5c49514ba5b13c119da1f05b568b68bbe25d1cc606788c5a9fc515cd8278b26406f87b3b98b857c4c SHA512 71495224bbe3d5064eda438f2d5534422a5e94be8d0a47a4020feab62a67fdebe6a29ced6b97aea970e505edeebd43a8aa9642198979ad57293b6d6cf4221633 -AUX raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py 822 BLAKE2B 10897863e4a6177c0a646c85ed4d835b6971b4ff1eeb296a7022b3c874020b2350c0ebf2a3c16f6ce1422ac442b95c9fa30e626bec0e616ba34253ea09a6175a SHA512 00a3e1936b44e7a3c73b3ca0fc9597016a31dce869da04101785c1e5fd0987747a828092335402820cba96caae1c9d463a9bba6a5ec1e4ccc89bb6a31f025c5c -EBUILD raspberrypi-mkimage-0_p20120201.ebuild 1177 BLAKE2B 8fd5e93eb0f883d4f667001328ecdb90d08a47813907f5e85a6a0cbc35356adcd288b9eed2176482f76360f485dba86a08162e1552f83a4323f3a9f73fdc4fa3 SHA512 0447155122c30ee4e58851bc7db51612b2483602d5d2688aa036651f1aacfa215a1895e1bfe157fb120681f1ae3c1e12d84c5be6e87251f1cb635ea8d7d511b9 -MISC metadata.xml 249 BLAKE2B 4a52a1f36d321e29fdfc7b2b391378a0fc64e56cb593df93d3bc522d327e6c438a6312cdc21f04c72242c53760f4de8cd82255499bddc53f0761c4991a61eb7b SHA512 10102614b4f775e819bdadb9db011535be6e16de0c06fbcdeddf16a45b65f0aaac58d5ae2899e9e69a6460ddcae2c1673a578bb7b30d6035c7697d872cf95baa 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 deleted file mode 100644 index 09398b47eee8..000000000000 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt +++ /dev/null @@ -1,12 +0,0 @@ -; kernel args (place at 0x00000100) -0x00000005 -0x54410001 -0x00000001 -0x00001000 -0x00000000 -0x00000004 -0x54410002 -0x08000000 -0x00000000 -0x00000000 -0x00000000 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 deleted file mode 100644 index 1cf5888278af..000000000000 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt +++ /dev/null @@ -1,17 +0,0 @@ -; bootloader (place at 0x00000000) -0xea000006 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 - -0xe3a00000 -0xe3a01042 -0xe3811c0c -0xe59f2000 -0xe59ff000 -0x00000100 -0x00008000 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 deleted file mode 100644 index 28b8a6f3170f..000000000000 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/imagetool-uncompressed.py -+++ b/imagetool-uncompressed.py -@@ -46,7 +47,7 @@ - f = open(args.bootimage, "wb") - - for m in mem: -- f.write(chr(m)) -+ f.write(chr(m).encode('latin1')) - - f.write(kernel_image) - f.close() 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 deleted file mode 100644 index adba8bbcdbbf..000000000000 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- a/imagetool-uncompressed.py -+++ b/imagetool-uncompressed.py -@@ -3,15 +3,23 @@ - import os - import re - import sys -+import argparse - --try: -- kernel_image = sys.argv[1] --except: -- kernel_image = "" -- --if kernel_image == "": -- print("usage : imagetool-uncompressed.py <kernel image>"); -- sys.exit(0) -+parser = argparse.ArgumentParser(description='Prepare kernel files for Raspberry Pi bootloader') -+parser.add_argument('--force', '-f', action='store_true', default=False, -+ help='overwrite target file') -+parser.add_argument('kernel', -+ help='kernel file from /usr/src/linux*/arch/arm/boot/Image') -+parser.add_argument('bootimage', -+ help='file to be placed in /boot/kernel.img') -+args = parser.parse_args() -+if os.path.exists(args.bootimage) and not args.force: -+ print('Target file exists, use --force to override') -+ sys.exit(1) -+ -+f = open(args.kernel, 'rb') -+kernel_image = f.read() -+f.close() - - re_line = re.compile(r"0x(?P<value>[0-9a-f]{8})") - -@@ -35,11 +43,10 @@ - load_to_mem("boot-uncompressed.txt", 0x00000000) - load_to_mem("args-uncompressed.txt", 0x00000100) - --f = open("first32k.bin", "wb") -+f = open(args.bootimage, "wb") - - for m in mem: - f.write(chr(m)) - -+f.write(kernel_image) - f.close() -- --os.system("cat first32k.bin " + kernel_image + " > kernel.img") 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 deleted file mode 100644 index 46ff4fc8ea6b..000000000000 --- a/sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env python2 - -import os -import re -import sys - -try: - kernel_image = sys.argv[1] -except: - kernel_image = "" - -if kernel_image == "": - print("usage : imagetool-uncompressed.py <kernel image>"); - sys.exit(0) - -re_line = re.compile(r"0x(?P<value>[0-9a-f]{8})") - -mem = [0 for i in range(32768)] - -def load_to_mem(name, addr): - f = open(name) - - for l in f.readlines(): - m = re_line.match(l) - - if m: - value = int(m.group("value"), 16) - - for i in range(4): - mem[addr] = int(value >> i * 8 & 0xff) - addr += 1 - - f.close() - -load_to_mem("boot-uncompressed.txt", 0x00000000) -load_to_mem("args-uncompressed.txt", 0x00000100) - -f = open("first32k.bin", "wb") - -for m in mem: - f.write(chr(m)) - -f.close() - -os.system("cat first32k.bin " + kernel_image + " > kernel.img") diff --git a/sys-boot/raspberrypi-mkimage/metadata.xml b/sys-boot/raspberrypi-mkimage/metadata.xml deleted file mode 100644 index 03d6b306d326..000000000000 --- a/sys-boot/raspberrypi-mkimage/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="github">raspberrypi/tools</remote-id> - </upstream> -</pkgmetadata> diff --git a/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild b/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild deleted file mode 100644 index ed0353e2b3c3..000000000000 --- a/sys-boot/raspberrypi-mkimage/raspberrypi-mkimage-0_p20120201.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_6 ) -DISTUTILS_IN_SOURCE_BUILD=1 - -inherit distutils-r1 - -DESCRIPTION="Raspberry Pi kernel mangling tool mkimage/imagetool-uncompressed.py" -HOMEPAGE="https://github.com/raspberrypi/tools/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="" - -DEPEND="" -RDEPEND="" - -PATCHES=( "${FILESDIR}"/${P}-imagetool-uncompressed.patch ) - -src_unpack() { - mkdir "${S}" || die - cp {"${FILESDIR}"/${P}-,"${S}"/}imagetool-uncompressed.py || die -} - -python_prepare_all() { - sed -e '/^load_to_mem("/s:(":("'${EPREFIX}'/usr/share/'${PN}'/:' \ - -e '1s:python2:python:' \ - -i imagetool-uncompressed.py || die - - distutils-r1_python_prepare_all -} - -python_prepare() { - if python_is_python3; then - eapply "${FILESDIR}"/${P}-imagetool-uncompressed-python3.patch - fi -} - -python_compile() { :; } - -python_install() { - python_doscript imagetool-uncompressed.py -} - -python_install_all() { - insinto /usr/share/${PN} - newins {"${FILESDIR}"/${P}-,}args-uncompressed.txt - newins {"${FILESDIR}"/${P}-,}boot-uncompressed.txt - - distutils-r1_python_install_all -} |