rockchip-rkbin: fail if lacking an override
PATCH 1/1 rockchip-rkbin: fail if lacking an override
Looking forward, rkbin should only be used by specific Rockchip platforms for which TF-A support is not (yet?) available. If rkbin gets added by accident without an override, add a bbfatal to let the user know an override is required.
--- recipes-bsp/rkbin/rockchip-rkbin_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-bsp/rkbin/rockchip-rkbin_git.bb +5 -1
@@ -25,7 +25,7 @@ do_install() { PACKAGES = "${PN}" ALLOW_EMPTY:${PN} = "1" -do_deploy() { +do_deploy:rk3588s() { # Prebuilt TF-A install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3588.elf # Prebuilt OPTEE-OS
@@ -34,4 +34,8 @@ do_deploy() { install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v*.bin ${DEPLOYDIR}/ddr-rk3588.bin } +do_deploy() { + bbfatal "COMPATIBLE_MACHINE requires a corresponding do_deploy:<MACHINE>() override" +} + addtask deploy after do_install
Signature · 1 line
2.41.0.327.gaa9166bcc0ba
Hi Trevor,
Looks good to me,
Cheers,
Quentin
Quoted 43 lines · Trevor Woerner via lists.yoctoproject.org
Looking forward, rkbin should only be used by specific Rockchip platforms for which TF-A support is not (yet?) available. If rkbin gets added by accident without an override, add a bbfatal to let the user know an override is required.
Signed-off-by Trevor Woerner <[email protected]>--- recipes-bsp/rkbin/rockchip-rkbin_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)recipes-bsp/rkbin/rockchip-rkbin_git.bb +5
-2@@ -25,7 +25,7 @@ do_install() { PACKAGES = "${PN}" ALLOW_EMPTY:${PN} = "1" -do_deploy() { +do_deploy:rk3588s() { # Prebuilt TF-A install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3588.elf # Prebuilt OPTEE-OS@@ -34,4 +34,8 @@ do_deploy() { install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v*.bin ${DEPLOYDIR}/ddr-rk3588.bin } +do_deploy() { + bbfatal "COMPATIBLE_MACHINE requires a corresponding do_deploy:<MACHINE>() override" +} + addtask deploy after do_install -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#61484): https://lists.yoctoproject.org/g/yocto/message/61484
Mute This Topic: https://lists.yoctoproject.org/mt/102179996/6293953
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-