Questions about waf config system: "grp" and updating configure.ac

dufault at hda.com dufault at hda.com
Fri Apr 9 12:50:07 UTC 2021



> On Apr 9, 2021, at 08:25 , Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 09/04/2021 14:01, dufault at hda.com wrote:
> 
>> I checked all the "spec/build/bsps/ARCH/grp.yml" files and don't see anything like "variant" to restrict specifications to a subset of the BSPs in "ARCH".
> 
> This is the wrong level for BSP-specific options. You have to look for:
> 
> spec/build/bsps/ARCH/FAMILY/grp.yml

This won't work, "powerpc/shared/console" is shared across powerpc FAMILYs:

[dufault at gen6 powerpc]$ grep -r shared/console .
./beatnik/bspbeatnik.yml:- bsps/powerpc/shared/console/console.c
./beatnik/bspbeatnik.yml:- bsps/powerpc/shared/console/uart.c
./haleakala/bsphaleakala.yml:- bsps/powerpc/shared/console/console.c
./haleakala/bsphaleakala.yml:- bsps/powerpc/shared/console/uart.c
./motorola_powerpc/obj.yml:- bsps/powerpc/shared/console/console.c
./motorola_powerpc/obj.yml:- bsps/powerpc/shared/console/uart.c
./mvme3100/bspmvme3100.yml:- bsps/powerpc/shared/console/console.c
./mvme3100/bspmvme3100.yml:- bsps/powerpc/shared/console/uart.c
./mvme5500/bspmvme5500.yml:- bsps/powerpc/shared/console/console.c
./mvme5500/bspmvme5500.yml:- bsps/powerpc/shared/console/uart.c
[dufault at gen6 powerpc]$

There is a missing FAMILY ("mvmexxxx") for the PowerPC VME boards "beatnik" (supports MVME5500 and MVME6100), "mvme3100", and "mvme5500" where we would put a "grp.yml" file for the console baud and other shared items on the VME boards.  There are still other FAMILY members outside of that non-existent VME family that wouldn't be addressed ("haleakala", "motorola_powerpc").  Adding FAMILY "mvmexxxx" is a valuable cleanup, but not one I can do now when I'm trying to cleanly-enough fix the default console baud and then move on to other pressing items.

I'll leave "uid: ../../optconsolebaud" in "spec/build/bsps/powerpc/{beatnik,haleakala,motorola_powerpc,mvme3100,mvme5500}/bsp*yml".

> 
>> 
>> So, instead of changing the
>> "powerpc/{beatnik/haleakala,motorola_powerpc,mvme3100,mvme5500}/bsp*.yml}" files to add the build-dependency on "uid: ../../optconsolebaud" can I put it in the "spec/build/bsps/powerpc/grp.yml" file?
> Actually, it would be nice if all BSPs use the same option for this setting. However, this requires that someone has the time to convert all console drivers to use this option. Also the removal of the old build system is required for cleanup work like this.
> 

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering

This email is delivered through the public internet using protocols subject to interception and tampering.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210409/a2e03b17/attachment.bin>


More information about the devel mailing list