meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.46k stars 853 forks source link

[Feature Request]: Exclude unsupportable modules from firmware and apps #5108

Open garthvh opened 6 days ago

garthvh commented 6 days ago

Platform

NRF52, ESP32, RP2040, Linux Native, Cross-Platform

Description

As a first step towards building customized firmware it would be good if we could start by disabling modules in the firmware and apps that are unsupportable on specific hardware.

The heltec wireless paper for example does not have pins that would make most GPIO related functionality work.

BrianG61UK commented 6 days ago

You might as well forget the Heltec V3 altogether. It's unusable. There are an utterly ludicrously large number of bugs in the Heltec firmware and in client.mestastic.org on Chrome. it's as good as impossible to get recent versions of the firmware to work at all.

Talie5in commented 5 days ago

@garthvh A lot defines are already available for excluding modules at compile time - assume what is needed is code changes to signify to the phone apps what modules are/are not compiled in when connecting to the node and gathering module configs.

https://github.com/meshtastic/firmware/blob/master/src/configuration.h#L289L325