Why do the UNOR4 boards have two logical names?

Just wondering why the boards.txt define -D defines for a logical board name for the MINIMA and WIFI, which is different than the automatically generated defines by platform board name.

That is:

Minima adds:
minima.build.defines=-DF_CPU=48000000 -DARDUINO_UNOR4_MINIMA

WiFi add:
unor4wifi.build.defines=-DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI

But by the standard Arduino build setup, they also generate:

Minima: -DARDUINO_MINIMA
Wifi: -DARDUINO_UNOWIFIR4

Is there a reason there are two different names? And which one is the preferred name when a sketch or library needs to know which board it is building for.

Thanks
Kurt

there is ARDUINO_ARCH_RENESAS_UNO

Thanks,

One of the reasons I am asking, is I now have the WiFi board running pretty well with Native USB, i.e. the solder jumper logically closed. For this I created a new variant. Will mention more about this on the more appropriate thread, but I needed to update the WifiS3 library, where it had #if

#ifdef ARDUINO_UNOWIFIR4

And likewise: arduinoBLE:
#if defined(ARDUINO_UNOR4_WIFI)

(And one other location in library)

So two Arduino libraries checking different defines for the same board.