board: anbernic: Fix the RG-DS Kconfig target guard
PATCH 1/1 board: anbernic: Fix the RG-DS Kconfig target guard
The RG-DS target is named TARGET_ANBERNIC_RG_DS_RK3568, but the board Kconfig tests the undefined TARGET_RG_DS_RK3568 symbol. The board specific defaults therefore never apply.
In particular, SYS_CONFIG_NAME falls back to rk3568_common instead of selecting anbernic-rg-ds-rk3568. This omits the board header which adds the serial and video console settings.
Use the actual RG-DS target symbol. Keep it distinct from the RGXX3 target as discussed during review of the original board support.
---
Testing:
- Generated anbernic-rg-ds-rk3568_defconfig and verified that CONFIG_SYS_CONFIG_NAME selects anbernic-rg-ds-rk3568.
board/anbernic/rg-ds_rk3568/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/anbernic/rg-ds_rk3568/Kconfig +1 -1
@@ -1,4 +1,4 @@ -if TARGET_RG_DS_RK3568 +if TARGET_ANBERNIC_RG_DS_RK3568 config SYS_BOARD default "rg-ds_rk3568"
Quoted 28 lines · Pengpeng Hou
The RG-DS target is named
TARGET_ANBERNIC_RG_DS_RK3568, but the boardKconfigtests the undefinedTARGET_RG_DS_RK3568symbol. The board specific defaults therefore never apply.In particular,
SYS_CONFIG_NAMEfalls back tork3568_commoninstead of selecting anbernic-rg-ds-rk3568. This omits the board header which adds the serial and video console settings.Use the actual RG-DS target symbol. Keep it distinct from the RGXX3 target as discussed during review of the original board support.
Fixes 1998fe69f7e1 ("board: rockchip: add Anbernic RG-DS")Signed-off-by Pengpeng Hou <[email protected]>---
Testing:
- Generated anbernic-rg-ds-rk3568_defconfig and verified thatCONFIG_SYS_CONFIG_NAMEselects anbernic-rg-ds-rk3568.board/anbernic/rg-ds_rk3568/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/anbernic/rg-ds_rk3568/Kconfig +0
-0
board/anbernic/rg-ds_rk3568/Kconfig line 4
Quoted 5 lines
board/anbernic/rg-ds_rk3568/Kconfig +1
-1@@ -1,4 +1,4 @@ -if TARGET_RG_DS_RK3568 +if TARGET_ANBERNIC_RG_DS_RK3568 config SYS_BOARD default "rg-ds_rk3568"
Somehow I missed this on the upstream, but it is on my local branch. Good catch and thank you.
-Chris
Hi Pengpeng Hou,
Quoted 8 lines · Pengpeng Hou
The RG-DS target is named
TARGET_ANBERNIC_RG_DS_RK3568, but the boardKconfigtests the undefinedTARGET_RG_DS_RK3568symbol. The board specific defaults therefore never apply.In particular,
SYS_CONFIG_NAMEfalls back tork3568_commoninstead of selecting anbernic-rg-ds-rk3568. This omits the board header which adds the serial and video console settings.
Quoted 6 lines
Use the actual RG-DS target symbol. Keep it distinct from the RGXX3 target as discussed during review of the original board support.
Fixes 1998fe69f7e1 ("board: rockchip: add Anbernic RG-DS")Signed-off-by Pengpeng Hou <[email protected]>
Thanks!
Quentin
Quoted 9 lines · Pengpeng Hou
The RG-DS target is named
TARGET_ANBERNIC_RG_DS_RK3568, but the boardKconfigtests the undefinedTARGET_RG_DS_RK3568symbol. The board specific defaults therefore never apply.In particular,
SYS_CONFIG_NAMEfalls back tork3568_commoninstead of selecting anbernic-rg-ds-rk3568. This omits the board header which adds the serial and video console settings.[...]
Applied to https://git.u-boot-project.org/u-boot/custodians/u-boot-rockchip (u-boot-rockchip-2026.10), thanks!
[1/1] board: anbernic: Fix the RG-DS Kconfig target guard
https://git.u-boot-project.org/u-boot/custodians/u-boot-rockchip/-/commit/508732ba45b8a328e2b38e9fa02820904922e421
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>