[RTEMS Project] #4917: rtems_waf errors on checking installed BSPs
RTEMS trac
trac at rtems.org
Tue Jun 13 01:25:33 UTC 2023
#4917: rtems_waf errors on checking installed BSPs
----------------------------+-----------------------
Reporter: Utkarsh Verma | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: admin | Version: 6
Severity: normal | Keywords: rtems_waf
Blocked By: | Blocking:
----------------------------+-----------------------
I did a fresh installation of the `aarch64/raspberrypi4b` BSP on a fresh
install of RTEMS 6. However, I got an error from `rtems_waf` while
creating a new app (hello). The logs are attached below, but in summary,
here is what happens.
In `$RTEMS_PREFIX/lib/pkgconfig/`, I have three files:
{{{
aarch64-rtems6-raspberrypi4b.pc
expat.pc
gmp.pc
}}}
The `_arch_from_arch_bsp()` function in `rtems_waf/rtems.py` tries to
infer the arch name based on the file names, by splitting on hyphens. It
works for BSP names, but not on the other files, therefore the
`StopIteration` exception is thrown.
To remedy around that, I modified that function as follows:
{{{#!python
def _arch_from_arch_bsp(arch_bsp):
rtems_index = arch_bsp.find("-rtems")
if rtems_index == -1:
return None
end = arch_bsp.find("-", rtems_index + 1)
if end == -1:
return None
return arch_bsp[:end]
}}}
Fixing this function solves the issue resulting in successful compilation.
--
Ticket URL: <http://devel.rtems.org/ticket/4917>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list