meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin.inc
Quentin Schulz e59f6fcb66 bsp: rkbin: fix build since S = "${WORKDIR}/git" is implied by OE-Core
S = "${WORKDIR}/git" is now implied when using the git fetcher and since
commit 46480a5e6674 ("insane/do_qa_unpack: add checks that ensure S is
set correctly") the build fails if it is set to such a value.

Therefore, let's remove the line in rkbin to make the build of those
recipes successful again.

Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
2025-06-25 11:43:24 -04:00

48 lines
1.2 KiB
PHP

SRC_URI = "git://github.com/rockchip-linux/rkbin;protocol=https;branch=master"
SRCREV = "f43a462e7a1429a9d407ae52b4745033034a6cf9"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
inherit bin_package deploy
INHIBIT_DEFAULT_DEPS = "1"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE:rk3308 = "rk3308"
COMPATIBLE_MACHINE:rk3566 = "rk3566"
COMPATIBLE_MACHINE:rk3568 = "rk3568"
COMPATIBLE_MACHINE:rk3588s = "rk3588s"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install() {
# Nothing in this recipe is useful in a filesystem
:
}
PACKAGES = "${PN}"
ALLOW_EMPTY:${PN} = "1"
RKBIN_BINDIR:rk3308 ?= "bin/rk33/"
RKBIN_BINDIR:rk3566 ?= "bin/rk35/"
RKBIN_BINDIR:rk3568 ?= "bin/rk35/"
RKBIN_BINDIR:rk3588s ?= "bin/rk35/"
do_deploy() {
if [ -z "${RKBIN_BINDIR}" ]; then
bbfatal "Non-empty RKBIN_BINDIR:<MACHINE> required!"
fi
if [ -z "${RKBIN_BINFILE}" ]; then
bbfatal "Non-empty RKBIN_BINFILE:<MACHINE> required!"
fi
if [ -z "${RKBIN_DEPLOY_FILENAME}" ]; then
bbfatal "Non-empty RKBIN_DEPLOY_FILENAME:<MACHINE> required!"
fi
install -m 644 ${S}/${RKBIN_BINDIR}${RKBIN_BINFILE} ${DEPLOYDIR}/${RKBIN_DEPLOY_FILENAME}
}
addtask deploy after do_install