ele-dev / Huawei-PSU-Regulator

An automatic power regulator for linux systems
GNU General Public License v3.0
2 stars 0 forks source link

[DevOps] CMake configuration for native and cross compilation #10

Open ele-dev opened 2 months ago

ele-dev commented 2 months ago

At the moment the cmake config only allows native builds (host=target system). Since the most common target is a raspberry pi OS running on ARM architecture, it would be very handy to add the option for cross compilation (e.g. host=x86, target=aarch64). This way, releases including executable binary + config file for arm systems could be created on the developer machine.