From 49b8163828f0e4cf3af700747edd42675755bb99 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Mon, 5 May 2025 16:20:39 +0200 Subject: [PATCH] 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 --- .../rkbin/rockchip-rkbin-native_git.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes-bsp/rkbin/rockchip-rkbin-native_git.bb diff --git a/recipes-bsp/rkbin/rockchip-rkbin-native_git.bb b/recipes-bsp/rkbin/rockchip-rkbin-native_git.bb new file mode 100644 index 0000000..2adccdd --- /dev/null +++ b/recipes-bsp/rkbin/rockchip-rkbin-native_git.bb @@ -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}" +}