mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
rpi-mkimage: Integrate package
Tool needed to convert bootable images in kernel.img files which can be loaded by rpi bootloader. Change-Id: I0088707be5d31d77def1087f51e3f8cc886d19db Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
This commit is contained in:
parent
34047964fe
commit
833e61aa5c
25
recipes-bsp/rpi-mkimage/rpi-mkimage/License
Normal file
25
recipes-bsp/rpi-mkimage/rpi-mkimage/License
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
Copyright (c) 2012, Broadcom Europe Ltd
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the copyright holder nor the
|
||||||
|
names of its contributors may be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
When using open, use path relative to imagetool-uncompressed.py
|
||||||
|
|
||||||
|
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
|
||||||
|
|
||||||
|
Index: git/mkimage/imagetool-uncompressed.py
|
||||||
|
===================================================================
|
||||||
|
--- a/mkimage/imagetool-uncompressed.py
|
||||||
|
+++ b/mkimage/imagetool-uncompressed.py
|
||||||
|
@@ -18,7 +18,7 @@ re_line = re.compile(r"0x(?P<value>[0-9a
|
||||||
|
mem = [0 for i in range(32768)]
|
||||||
|
|
||||||
|
def load_to_mem(name, addr):
|
||||||
|
- f = open(name)
|
||||||
|
+ f = open(os.path.dirname(__file__) + '/' + name)
|
||||||
|
|
||||||
|
for l in f.readlines():
|
||||||
|
m = re_line.match(l)
|
22
recipes-bsp/rpi-mkimage/rpi-mkimage_git.bb
Normal file
22
recipes-bsp/rpi-mkimage/rpi-mkimage_git.bb
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
SUMMARY = "RaspberryPi tool to produce kernel.img"
|
||||||
|
LICENSE = "Broadcom"
|
||||||
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/License;md5=957f6640d5e2d2acfce73a36a56cb32f"
|
||||||
|
SECTION = "bootloader"
|
||||||
|
|
||||||
|
DEPENDS = "python"
|
||||||
|
|
||||||
|
SRCREV = "330c72c2412f75a32932c4d9b51c9c678bce4180"
|
||||||
|
SRC_URI = " \
|
||||||
|
git://github.com/raspberrypi/tools.git;branch=master;protocol=git \
|
||||||
|
file://License \
|
||||||
|
file://open-files-relative-to-script.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
do_install () {
|
||||||
|
install -d ${D}${libexecdir}
|
||||||
|
cp ./mkimage/* ${D}${libexecdir}
|
||||||
|
}
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native"
|
Loading…
Reference in New Issue
Block a user