bsp: rkbin: add native recipe for tools (ddrbin_tool.py)

This will allow us to use tools from rkbin repo destined to be used on
the host in recipes for the target. For example, ddrbin_tool.py which
is used to modify the configuration of the DDR bin blob.

This has limited usefulness for ddrbin_tool.py as it is a python script
with no external dependencies and could be run directly from
rockchip-ddr-bin recipe. However, this is required so we can decouple
the version of the git repo used for rockchip-ddr-bin DDR bin blob from
the version of the git repo used for ddrbin_tool.py (which is very
recent).

This recipe will be used in a later commit to modify the DDR bin blob if
need be.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
Quentin Schulz 2025-05-05 16:20:39 +02:00 committed by Trevor Woerner
parent 60b3fecc19
commit 49b8163828

View File

@ -0,0 +1,21 @@
DESCRIPTION = "Rockchip native tools related to their rkbin blobs, e.g. ddrbin_tool.py"
SRC_URI = "git://github.com/rockchip-linux/rkbin;protocol=https;branch=master"
SRCREV = "f43a462e7a1429a9d407ae52b4745033034a6cf9"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
inherit native
S = "${WORKDIR}/git/tools"
# ddrbin_tool.py only uses python and core modules.
# Yocto depends on a host python anyway so we can simply ignore that dependency
# and have ddrbin_tool.py run with the host's python instead of building python
# natively.
# DEPENDS = "python3-native"
do_install() {
install -d "${D}${bindir}"
install -m 0755 ddrbin_tool.py "${D}${bindir}"
}