Board-specific package - possible?

Hi, I would like to make a package specific to a particular board (the package would contain a script for SIM switching).

I see there a packages which are platform-specific (RPi ones), but what I need is just a single board dependency:

Is it possible to do?

No, that's not possible to express with packaging metadata. The closest you can get, would be depending on the target - and then bailing out in the executable, in case it's executed on a non-compatible device. This way you can prevent potentially harmful operations on different devices, leaving 'wasting' some space on the overlay the worst that could happen, if users decide to install the package nevertheless.

1 Like