Rename Kconfig options (root)
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
// Enabling exceptions only when they are enabled in menuconfig
|
||||
//
|
||||
# include <sdkconfig.h>
|
||||
# ifndef CONFIG_CXX_EXCEPTIONS
|
||||
# ifndef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
# define ASIO_NO_EXCEPTIONS
|
||||
# endif // CONFIG_CXX_EXCEPTIONS
|
||||
# endif // CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
||||
//
|
||||
// LWIP compatifility inet and address macros/functions
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
//
|
||||
// This exception stub is enabled only if exceptions are disabled in menuconfig
|
||||
//
|
||||
#if !defined(CONFIG_CXX_EXCEPTIONS) && defined (ASIO_NO_EXCEPTIONS)
|
||||
#if !defined(CONFIG_COMPILER_CXX_EXCEPTIONS) && defined (ASIO_NO_EXCEPTIONS)
|
||||
|
||||
#include "esp_log.h"
|
||||
|
||||
@@ -34,6 +34,6 @@ void throw_exception(const Exception& e)
|
||||
abort();
|
||||
}
|
||||
}}
|
||||
#endif // CONFIG_CXX_EXCEPTIONS==1 && defined (ASIO_NO_EXCEPTIONS)
|
||||
#endif // CONFIG_COMPILER_CXX_EXCEPTIONS==1 && defined (ASIO_NO_EXCEPTIONS)
|
||||
|
||||
#endif // _ESP_EXCEPTION_H_
|
||||
|
||||
@@ -5,6 +5,6 @@ register_component()
|
||||
target_link_libraries(${COMPONENT_LIB} stdc++)
|
||||
target_link_libraries(${COMPONENT_LIB} "-u __cxa_guard_dummy")
|
||||
|
||||
if(NOT CONFIG_CXX_EXCEPTIONS)
|
||||
if(NOT CONFIG_COMPILER_CXX_EXCEPTIONS)
|
||||
target_link_libraries(${COMPONENT_LIB} "-u __cxx_fatal_exception")
|
||||
endif()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# is taken from cxx_guards.o instead of libstdc++.a
|
||||
COMPONENT_ADD_LDFLAGS += -u __cxa_guard_dummy
|
||||
|
||||
ifndef CONFIG_CXX_EXCEPTIONS
|
||||
ifndef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
# If exceptions are disabled, ensure our fatal exception
|
||||
# hooks are preferentially linked over libstdc++ which
|
||||
# has full exception support
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <bits/functexcept.h>
|
||||
#include <sdkconfig.h>
|
||||
|
||||
#ifndef CONFIG_CXX_EXCEPTIONS
|
||||
#ifndef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
||||
const char *FATAL_EXCEPTION = "Fatal C++ exception: ";
|
||||
|
||||
@@ -81,4 +81,4 @@ extern "C" void __cxa_call_terminate(void) __attribute__((alias("__cxx_fatal_exc
|
||||
|
||||
bool std::uncaught_exception() __attribute__((alias("__cxx_fatal_exception_bool")));
|
||||
|
||||
#endif // CONFIG_CXX_EXCEPTIONS
|
||||
#endif // CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
||||
@@ -196,7 +196,7 @@ TEST_CASE("before scheduler has started, static initializers work correctly", "[
|
||||
TEST_ASSERT_EQUAL(2, StaticInitTestBeforeScheduler::order);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CXX_EXCEPTIONS
|
||||
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
||||
TEST_CASE("c++ exceptions work", "[cxx]")
|
||||
{
|
||||
@@ -259,7 +259,7 @@ TEST_CASE("c++ exceptions emergency pool", "[cxx] [ignore]")
|
||||
thrown_value = e;
|
||||
printf("Got exception %d\n", thrown_value);
|
||||
}
|
||||
#if CONFIG_CXX_EXCEPTIONS_EMG_POOL_SIZE > 0
|
||||
#if CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE > 0
|
||||
// free all memory
|
||||
while (pprev) {
|
||||
p = (void **)(*pprev);
|
||||
@@ -274,7 +274,7 @@ TEST_CASE("c++ exceptions emergency pool", "[cxx] [ignore]")
|
||||
#endif
|
||||
}
|
||||
|
||||
#else // !CONFIG_CXX_EXCEPTIONS
|
||||
#else // !CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
||||
TEST_CASE("std::out_of_range exception when -fno-exceptions", "[cxx][reset=abort,SW_CPU_RESET]")
|
||||
{
|
||||
|
||||
@@ -570,7 +570,7 @@ menu "ESP32-specific"
|
||||
|
||||
config ESP32_DEBUG_STUBS_ENABLE
|
||||
bool "OpenOCD debug stubs"
|
||||
default OPTIMIZATION_LEVEL_DEBUG
|
||||
default COMPILER_OPTIMIZATION_LEVEL_DEBUG
|
||||
depends on !ESP32_TRAX
|
||||
help
|
||||
Debug stubs are used by OpenOCD to execute pre-compiled onboard code which does some useful debugging,
|
||||
|
||||
@@ -454,16 +454,16 @@ void start_cpu1_default(void)
|
||||
}
|
||||
#endif //!CONFIG_FREERTOS_UNICORE
|
||||
|
||||
#ifdef CONFIG_CXX_EXCEPTIONS
|
||||
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
size_t __cxx_eh_arena_size_get()
|
||||
{
|
||||
return CONFIG_CXX_EXCEPTIONS_EMG_POOL_SIZE;
|
||||
return CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void do_global_ctors(void)
|
||||
{
|
||||
#ifdef CONFIG_CXX_EXCEPTIONS
|
||||
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
static struct object ob;
|
||||
__register_frame_info( __eh_frame, &ob );
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "unity.h"
|
||||
|
||||
#if CONFIG_STACK_CHECK
|
||||
#if CONFIG_COMPILER_STACK_CHECK
|
||||
|
||||
static void recur_and_smash()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "unity.h"
|
||||
|
||||
#if CONFIG_STACK_CHECK
|
||||
#if CONFIG_COMPILER_STACK_CHECK
|
||||
|
||||
static void recur_and_smash_cxx()
|
||||
{
|
||||
|
||||
@@ -105,7 +105,7 @@ void _esp_error_check_failed_without_abort(esp_err_t rc, const char *file, int l
|
||||
esp_err_t __err_rc = (x); \
|
||||
(void) sizeof(__err_rc); \
|
||||
} while(0)
|
||||
#elif defined(CONFIG_OPTIMIZATION_ASSERTIONS_SILENT)
|
||||
#elif defined(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT)
|
||||
#define ESP_ERROR_CHECK(x) do { \
|
||||
esp_err_t __err_rc = (x); \
|
||||
if (__err_rc != ESP_OK) { \
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_system.h"
|
||||
|
||||
#if CONFIG_STACK_CHECK
|
||||
#if CONFIG_COMPILER_STACK_CHECK
|
||||
|
||||
#define LOG_LOCAL_LEVEL CONFIG_LOG_DEFAULT_LEVEL
|
||||
#include "esp_log.h"
|
||||
|
||||
@@ -410,7 +410,7 @@ menu "FreeRTOS"
|
||||
|
||||
config FREERTOS_TASK_FUNCTION_WRAPPER
|
||||
bool "Enclose all task functions in a wrapper function"
|
||||
depends on OPTIMIZATION_LEVEL_DEBUG
|
||||
depends on COMPILER_OPTIMIZATION_LEVEL_DEBUG
|
||||
default y
|
||||
help
|
||||
If enabled, all FreeRTOS task functions will be enclosed in a wrapper function.
|
||||
|
||||
@@ -48,9 +48,9 @@ inline static void multi_heap_assert(bool condition, const char *format, int lin
|
||||
*/
|
||||
#ifndef NDEBUG
|
||||
if(!condition) {
|
||||
#ifndef CONFIG_OPTIMIZATION_ASSERTIONS_SILENT
|
||||
#ifndef CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT
|
||||
ets_printf(format, line, address);
|
||||
#endif // CONFIG_OPTIMIZATION_ASSERTIONS_SILENT
|
||||
#endif // CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT
|
||||
abort();
|
||||
}
|
||||
#else // NDEBUG
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include_next <assert.h>
|
||||
|
||||
#if defined(CONFIG_OPTIMIZATION_ASSERTIONS_SILENT) && !defined(NDEBUG)
|
||||
#if defined(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT) && !defined(NDEBUG)
|
||||
#undef assert
|
||||
#define assert(__e) ((__e) ? (void)0 : abort())
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user