Skip to contentSkip to conversation

board: anbernic: Fix the RG-DS Kconfig target guard

PATCH In review Pengpeng Hou 4 participants 4 messages Sep 6 – Sep 18

lore
Share & tools
lore
#0 lore raw

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.

Fixes 1998fe69f7e1 ("board: rockchip: add Anbernic RG-DS")

---
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
index 867694065..1d1043f8c 100644
@@ -1,4 +1,4 @@
-if TARGET_RG_DS_RK3568
+if TARGET_ANBERNIC_RG_DS_RK3568
 
 config SYS_BOARD
 	default "rg-ds_rk3568"
#1 lore raw
Quoted 28 lines · Pengpeng Hou

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.

Fixes 1998fe69f7e1 ("board: rockchip: add Anbernic RG-DS")

---
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 +0 -0
index 867694065..1d1043f8c 100644

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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Pengpeng Hou

Hi Pengpeng Hou,

Quoted 8 lines · Pengpeng Hou

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.

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")

Thanks!
Quentin

#3 lore raw
In reply to Pengpeng Hou
Quoted 9 lines · Pengpeng Hou

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.

[...]

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]>