bsp: rkbin: fix build issues around S and WORKDIR
cover bsp: rkbin: fix build issues around S and WORKDIR
Since commit 46480a5e6674 ("insane/do_qa_unpack: add checks that ensure S is set correctly"), three recipes fail to build because they either:
- set S to WORKDIR/git which isn't allowed anymore for git-fetched recipes,
- have WORKDIR in S which isn't allowed anymore, UNPACKDIR should be used instead,
This fixes the build issues seen on master.
---
Quentin Schulz (2):
bsp: rkbin: fix build since S = "${WORKDIR}/git" is implied by OE-Core
bsp: rkbin-native: fix build since ${WORKDIR} isn't allowed in S anymorerecipes-bsp/rkbin/rk3308-rkbin_git.bb | 2 -- recipes-bsp/rkbin/rockchip-rkbin-native_git.bb | 2 +- recipes-bsp/rkbin/rockchip-rkbin.inc | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-)
---
base-commit: 961768ccd13630a4b98701f5821372a9ede86e85
change-id: 20250625-s-unpackdir-8fee740998d0
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>
PATCH 1/2 bsp: rkbin: fix build since S = "${WORKDIR}/git" is implied by OE-Core
From: Quentin Schulz <[email protected]>
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.
--- recipes-bsp/rkbin/rk3308-rkbin_git.bb | 2 -- recipes-bsp/rkbin/rockchip-rkbin.inc | 2 -- 2 files changed, 4 deletions(-)
recipes-bsp/rkbin/rk3308-rkbin_git.bb +0 -2
@@ -13,8 +13,6 @@ PROVIDES += "optee-os" inherit bin_package deploy -S = "${WORKDIR}/git" - COMPATIBLE_MACHINE = "^$" COMPATIBLE_MACHINE:rk3308 = "rk3308"
recipes-bsp/rkbin/rockchip-rkbin.inc +0 -2
@@ -7,8 +7,6 @@ inherit bin_package deploy INHIBIT_DEFAULT_DEPS = "1" -S = "${WORKDIR}/git" - COMPATIBLE_MACHINE = "^$" COMPATIBLE_MACHINE:rk3308 = "rk3308" COMPATIBLE_MACHINE:rk3566 = "rk3566"
Signature · 1 line
2.49.0
PATCH 2/2 bsp: rkbin-native: fix build since ${WORKDIR} isn't allowed in S anymore
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
Since commit 46480a5e6674 ("insane/do_qa_unpack: add checks that ensure S is set correctly") it is not allowed to have S refer to WORKDIR directly and we should instead use UNPACKDIR.
The default path of S is ${UNPACKDIR}/${BP} which is where the git fetcher will unpack the sources. However, we want to go into the tools/ directory, hence S being ${UNPACKDIR}/${BP}/tools now.
--- recipes-bsp/rkbin/rockchip-rkbin-native_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-bsp/rkbin/rockchip-rkbin-native_git.bb +1 -1
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://../LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5" inherit native -S = "${WORKDIR}/git/tools" +S = "${UNPACKDIR}/${BP}/tools" # ddrbin_tool.py only uses python and core modules. # Yocto depends on a host python anyway so we can simply ignore that dependency
Signature · 1 line
2.49.0
Trevor Woerner
AppliedQuoted 16 lines · Quentin Schulz via lists.yoctoproject.org
Since commit
46480a5e6674("insane/do_qa_unpack: add checks that ensure S is set correctly"), three recipes fail to build because they either:- set S to WORKDIR/git which isn't allowed anymore for git-fetched recipes,
- have WORKDIR in S which isn't allowed anymore, UNPACKDIR should be used instead,This fixes the build issues seen on master.
Signed-off-by Quentin Schulz <[email protected]>---
Quentin Schulz (2):bsp: rkbin: fix build since S = "${WORKDIR}/git" is implied by OE-Core bsp: rkbin-native: fix build since ${WORKDIR} isn't allowed in S anymore
Quoted 7 lines
recipes-bsp/rkbin/rk3308-rkbin_git.bb | 2 -- recipes-bsp/rkbin/rockchip-rkbin-native_git.bb | 2 +- recipes-bsp/rkbin/rockchip-rkbin.inc | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-)---
base-commit:961768ccd13630a4b98701f5821372a9ede86e85
change-id: 20250625-s-unpackdir-8fee740998d0
Applied to meta-rockchip, master branch. Thanks!