fix(linux): Miscellaneous fixes for linux build on MacOS

This commit fixes some compilation errors for the linux build on MacOS.
This commit is contained in:
Sudeep Mohanty 2024-05-23 11:32:56 +02:00
parent 19c784efef
commit ac64aa0c60
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,7 @@ esp_err_t esp_efuse_utility_burn_chip_opt(bool ignore_coding_errors, bool verify
// This function reads EFUSE_BLKx_WDATAx_REG registers, and checks possible to write these data with RS coding scheme.
// The RS coding scheme does not require data changes for the encoded data. esp32s2 has special registers for this.
// They will be filled during the burn operation.
esp_err_t esp_efuse_utility_apply_new_coding_scheme()
esp_err_t esp_efuse_utility_apply_new_coding_scheme(void)
{
// start with EFUSE_BLK1. EFUSE_BLK0 - always uses EFUSE_CODING_SCHEME_NONE.
for (int num_block = EFUSE_BLK1; num_block < EFUSE_BLK_MAX; num_block++) {

View File

@ -17,4 +17,8 @@ uint32_t esp_log_early_timestamp(void)
return milliseconds;
}
uint32_t esp_log_timestamp(void) __attribute__((alias("esp_log_early_timestamp")));
// Avoid using __attribute(alias) here since linux target builds on MacOS fail to compile.
uint32_t esp_log_timestamp(void)
{
return esp_log_early_timestamp();
}