forked from espressif/esp-idf
esp_common: move esp_err
This commit is contained in:
@@ -9,15 +9,13 @@ if(BOOTLOADER_BUILD)
|
|||||||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-Wl,--gc-sections")
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-Wl,--gc-sections")
|
||||||
else()
|
else()
|
||||||
# Regular app build
|
# Regular app build
|
||||||
list(APPEND srcs "src/esp_err.c"
|
list(APPEND srcs "src/esp_err_to_name.c")
|
||||||
"src/esp_err_to_name.c")
|
|
||||||
|
|
||||||
# Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here.
|
# Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here.
|
||||||
idf_component_register(SRCS "${srcs}"
|
idf_component_register(SRCS "${srcs}"
|
||||||
INCLUDE_DIRS include
|
INCLUDE_DIRS include
|
||||||
REQUIRES ${target} espcoredump esp_timer esp_ipc esp_pm esp_hw_support
|
REQUIRES ${target} espcoredump esp_timer esp_ipc esp_pm esp_hw_support
|
||||||
PRIV_REQUIRES soc
|
PRIV_REQUIRES soc)
|
||||||
LDFRAGMENTS "linker.lf")
|
|
||||||
|
|
||||||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_LIBRARIES "-Wl,--gc-sections")
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY LINK_LIBRARIES "-Wl,--gc-sections")
|
||||||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-Wl,--gc-sections")
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-Wl,--gc-sections")
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
[mapping:esp_common]
|
|
||||||
archive: libesp_common.a
|
|
||||||
entries:
|
|
||||||
esp_err (noflash)
|
|
@@ -16,7 +16,8 @@ set(srcs "intr_alloc.c"
|
|||||||
"task_wdt.c"
|
"task_wdt.c"
|
||||||
"int_wdt.c"
|
"int_wdt.c"
|
||||||
"stack_check.c"
|
"stack_check.c"
|
||||||
"freertos_hooks.c")
|
"freertos_hooks.c"
|
||||||
|
"esp_err.c")
|
||||||
|
|
||||||
if(NOT (${target} STREQUAL "esp32c3") )
|
if(NOT (${target} STREQUAL "esp32c3") )
|
||||||
list(APPEND srcs "dbg_stubs.c")
|
list(APPEND srcs "dbg_stubs.c")
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
@@ -5,6 +5,7 @@ entries:
|
|||||||
panic_handler (noflash)
|
panic_handler (noflash)
|
||||||
panic_arch (noflash)
|
panic_arch (noflash)
|
||||||
reset_reason (noflash)
|
reset_reason (noflash)
|
||||||
|
esp_err (noflash)
|
||||||
system_api:esp_system_abort (noflash)
|
system_api:esp_system_abort (noflash)
|
||||||
|
|
||||||
if ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF:
|
if ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF:
|
||||||
|
Reference in New Issue
Block a user