chore(cmake): CMake cleanup and simplifications (#2620)

* CMake cleanup and simplifications

* Position Independent Code is need for radiolib_native

* Some more cleanup & repair

* Fix SIMU_SRC scope issue

* fix: avoid warnings due to assembler statements from StdPeriph on arm64 native
This commit is contained in:
Raphael Coeffic
2022-12-12 13:58:27 +10:00
committed by GitHub
parent 1bf415544f
commit 48be7c263b
14 changed files with 175 additions and 107 deletions
+4
View File
@@ -155,10 +155,14 @@ const char * nchar2string(const char * string, int size)
return _stringResult;
}
extern bool _eeprom_write_simu_delay;
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
simuInit();
_eeprom_write_simu_delay = false;
startEepromThread(nullptr);
#if defined(EEPROM_SIZE)
eeprom = (uint8_t *)malloc(EEPROM_SIZE);