summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-23 11:40:27 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-23 11:40:27 +0200
commite20a0fe53f1bc45de5e6211b4ea43b4484f340d7 (patch)
tree5dfe82090738c3ef0ab923b47188b4c44b3ea324 /sys-boot/raspberrypi-mkimage/files
parentsci-libs/Fiona: Remove last-rited pkg (diff)
downloadgentoo-e20a0fe53f1bc45de5e6211b4ea43b4484f340d7.tar.gz
gentoo-e20a0fe53f1bc45de5e6211b4ea43b4484f340d7.tar.bz2
gentoo-e20a0fe53f1bc45de5e6211b4ea43b4484f340d7.zip
sys-boot/raspberrypi-mkimage: Remove last-rited pkg
Closes: https://bugs.gentoo.org/718530 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-boot/raspberrypi-mkimage/files')
-rw-r--r--sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt12
-rw-r--r--sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt17
-rw-r--r--sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch11
-rw-r--r--sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch48
-rw-r--r--sys-boot/raspberrypi-mkimage/files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py45
5 files changed, 0 insertions, 133 deletions
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")