Failure to BSP with RSB BSP Build

I was trying to build BSP with the help quick start docs but it failed with the following error

+ ./waf configure --prefix=/home/mirage/quick-start/rtems/7 --rtems-config=config.ini
Setting top to                           : /home/mirage/quick-start/src/rsb/rtems/build/rtems-kernel-bsps-1/rtems-kernel-bsps-1-6745aab2fa111b6f6a34622a662d3415242500e0/rtems-6745aab2fa111b6f6a34622a662d3415242500e0 
Setting out to                           : /home/mirage/quick-start/src/rsb/rtems/build/rtems-kernel-bsps-1/rtems-kernel-bsps-1-6745aab2fa111b6f6a34622a662d3415242500e0/rtems-6745aab2fa111b6f6a34622a662d3415242500e0/build 
Configure RTEMS version                  : 7.0.74fffa09a3df68b7e6cacabbde243ea7828edb34 
Regenerate build specification cache (needs a couple of seconds)...
Section name 'erc32' is a malformed 'arch/bsp' tuple
(complete log in /home/mirage/quick-start/src/rsb/rtems/build/rtems-kernel-bsps-1/rtems-kernel-bsps-1-6745aab2fa111b6f6a34622a662d3415242500e0/rtems-6745aab2fa111b6f6a34622a662d3415242500e0/build/config.log)
shell cmd failed: /bin/sh -ex  /home/mirage/quick-start/src/rsb/rtems/build/rtems-kernel-bsps-1/do-build
error: building rtems-kernel-bsps-1

I checked out the generated config.ini and it only has [erc32] instead of [sparc/erc32] as arch/bsp is expected

Considering this --with-rtems-tests=yes was also passed as one of the arguments
It is expected that BUILD_TESTS = True is present as one of the KV pairs under [erc32] in generated config but the script doesn’t generate it.

Trying to build it manually works

EDIT: my bad it does add the BUILD_TEST=True KV but it is not directly under the bsp section header
Sorry for the confusion

I am not exactly sure but could it be due to this?
in src/rsb/rtems/config/tools/rtems-kernel-common.cfg

#
# Separate out the arch and bsp
#
%define rtems_arch %(echo %{rtems_bsp} | sed -e 's^\/.*^^g')
%define rtems_bsp  %(echo %{rtems_bsp} | sed -e 's^.*\/^^g')
    for bsp in %{rtems_bsp}
    do
     echo "[$bsp]" >> %{config_file}

we are re-assigning the rtems_bsp to just be the bsp part without the rtems_arch part, causing the bug

It really should be [sparc/erc32] if you edit config.ini and change that does rsb build correctly?

Yes it looks like a bug.

sorry for the radio silence
I opened a bug report here

I didn’t edit the modified generated config but i did manually wrote the config according to 2.5.2, last week and it was building

1 Like