Closed wcbonner closed 8 months ago
This is correct.
RPiOS uses the Debian repo for arm64. RPiOS uses the Raspbian repo for arm32.
raspbian is a build of debian, optimised to run on all Pi devices (specifically a 32-bit build with the hard float ABI).
Is the proper method of recognizing the Raspberry platform during a CMake build documented somewhere?
I think it's rare for a build to care what it is running on. These days the Pi has removed many proprietary ways of doing things, and follows standard linux APIs.
It's more likely what you really care about is 32-bit vs 64-bit, what libraries are available, hardware features etc, which all have different ways of detection.
But if you want to know if you are running on RPiOS, then /etc/rpi-issue (as mentioned in forum) seems reasonable.
I'm not sure where lsb_release pulls it's information, but I believe it is the source for the DISTRO details in CMake.
On a Pi ZeroW running Bookworm:
On a Pi4:
See this post for the issues I was having with CMake: https://forums.raspberrypi.com/viewtopic.php?t=363747