cmake: some formatting fixes

Do not include bootloader in flash target when secure boot is enabled.
Emit signing warning on all cases where signed apps are enabled (secure
boot and signed images)
Follow convention of capital letters for SECURE_BOOT_SIGNING_KEY
variable, since it is
relevant to other components, not just bootloader.
Pass signing key and verification key via config, not requiring
bootloader to know parent app dir.
Misc. variables name corrections
This commit is contained in:
Renz Christian Bagaporo 2019-06-21 14:29:32 +08:00
parent 047cf71c01
commit 9b350f9ecc
25 changed files with 491 additions and 467 deletions

View file

@ -1,7 +1,9 @@
set(srcs "app_trace.c" set(srcs
"app_trace_util.c" "app_trace.c"
"host_file_io.c" "app_trace_util.c"
"gcov/gcov_rtio.c") "host_file_io.c"
"gcov/gcov_rtio.c")
set(include_dirs "include") set(include_dirs "include")
if(CONFIG_SYSVIEW_ENABLE) if(CONFIG_SYSVIEW_ENABLE)
@ -10,12 +12,13 @@ if(CONFIG_SYSVIEW_ENABLE)
sys_view/SEGGER sys_view/SEGGER
sys_view/Sample/OS) sys_view/Sample/OS)
list(APPEND srcs "sys_view/SEGGER/SEGGER_SYSVIEW.c" list(APPEND srcs
"sys_view/Sample/Config/SEGGER_SYSVIEW_Config_FreeRTOS.c" "sys_view/SEGGER/SEGGER_SYSVIEW.c"
"sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.c" "sys_view/Sample/Config/SEGGER_SYSVIEW_Config_FreeRTOS.c"
"sys_view/esp32/SEGGER_RTT_esp32.c" "sys_view/Sample/OS/SEGGER_SYSVIEW_FreeRTOS.c"
"sys_view/ext/heap_trace_module.c" "sys_view/esp32/SEGGER_RTT_esp32.c"
"sys_view/ext/logging.c") "sys_view/ext/heap_trace_module.c"
"sys_view/ext/logging.c")
endif() endif()
if(CONFIG_HEAP_TRACING_TOHOST) if(CONFIG_HEAP_TRACING_TOHOST)

View file

@ -1,4 +1,5 @@
idf_component_register(SRCS "esp_ota_ops.c" "esp_app_desc.c" idf_component_register(SRCS "esp_ota_ops.c"
"esp_app_desc.c"
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
REQUIRES spi_flash partition_table bootloader_support) REQUIRES spi_flash partition_table bootloader_support)

View file

@ -1,21 +1,23 @@
set(srcs "src/bootloader_clock.c" set(srcs
"src/bootloader_common.c" "src/bootloader_clock.c"
"src/bootloader_flash.c" "src/bootloader_common.c"
"src/bootloader_random.c" "src/bootloader_flash.c"
"src/bootloader_utility.c" "src/bootloader_random.c"
"src/esp_image_format.c" "src/bootloader_utility.c"
"src/flash_partitions.c" "src/esp_image_format.c"
"src/flash_qio_mode.c") "src/flash_partitions.c"
"src/flash_qio_mode.c")
if(BOOTLOADER_BUILD) if(BOOTLOADER_BUILD)
set(include_dirs "include" "include_bootloader") set(include_dirs "include" "include_bootloader")
set(requires soc) #unfortunately the header directly uses SOC registers set(requires soc) #unfortunately the header directly uses SOC registers
set(priv_requires micro-ecc spi_flash efuse) set(priv_requires micro-ecc spi_flash efuse)
list(APPEND srcs "src/bootloader_init.c" list(APPEND srcs
"src/${IDF_TARGET}/bootloader_sha.c" "src/bootloader_init.c"
"src/${IDF_TARGET}/flash_encrypt.c" "src/${IDF_TARGET}/bootloader_sha.c"
"src/${IDF_TARGET}/secure_boot_signatures.c" "src/${IDF_TARGET}/flash_encrypt.c"
"src/${IDF_TARGET}/secure_boot.c") "src/${IDF_TARGET}/secure_boot_signatures.c"
"src/${IDF_TARGET}/secure_boot.c")
if(CONFIG_SECURE_SIGNED_APPS) if(CONFIG_SECURE_SIGNED_APPS)
get_filename_component(secure_boot_verification_key get_filename_component(secure_boot_verification_key
@ -51,8 +53,9 @@ if(BOOTLOADER_BUILD)
"${secure_boot_verification_key}") "${secure_boot_verification_key}")
endif() endif()
else() else()
list(APPEND srcs "src/idf/bootloader_sha.c" list(APPEND srcs
"src/idf/secure_boot_signatures.c") "src/idf/bootloader_sha.c"
"src/idf/secure_boot_signatures.c")
set(include_dirs "include") set(include_dirs "include")
set(priv_include_dirs "include_bootloader") set(priv_include_dirs "include_bootloader")
set(requires soc) #unfortunately the header directly uses SOC registers set(requires soc) #unfortunately the header directly uses SOC registers

View file

@ -1,30 +1,31 @@
set(include_dirs port/include port/include/coap libcoap/include libcoap/include/coap2) set(include_dirs port/include port/include/coap libcoap/include libcoap/include/coap2)
set(srcs "libcoap/src/address.c" set(srcs
"libcoap/src/async.c" "libcoap/src/address.c"
"libcoap/src/block.c" "libcoap/src/async.c"
"libcoap/src/coap_event.c" "libcoap/src/block.c"
"libcoap/src/coap_hashkey.c" "libcoap/src/coap_event.c"
"libcoap/src/coap_session.c" "libcoap/src/coap_hashkey.c"
"libcoap/src/coap_time.c" "libcoap/src/coap_session.c"
"libcoap/src/coap_debug.c" "libcoap/src/coap_time.c"
"libcoap/src/encode.c" "libcoap/src/coap_debug.c"
"libcoap/src/mem.c" "libcoap/src/encode.c"
"libcoap/src/net.c" "libcoap/src/mem.c"
"libcoap/src/option.c" "libcoap/src/net.c"
"libcoap/src/pdu.c" "libcoap/src/option.c"
"libcoap/src/resource.c" "libcoap/src/pdu.c"
"libcoap/src/str.c" "libcoap/src/resource.c"
"libcoap/src/subscribe.c" "libcoap/src/str.c"
"libcoap/src/uri.c" "libcoap/src/subscribe.c"
"libcoap/src/coap_notls.c" "libcoap/src/uri.c"
"port/coap_io.c") "libcoap/src/coap_notls.c"
"port/coap_io.c")
set(COMPONENT_REQUIRES lwip) set(COMPONENT_REQUIRES lwip)
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${include_dirs}" INCLUDE_DIRS "${include_dirs}"
REQUIRES lwip) REQUIRES lwip)
# Silence format truncation warning, until it is fixed upstream # Silence format truncation warning, until it is fixed upstream
set_source_files_properties(libcoap/src/coap_debug.c PROPERTIES COMPILE_FLAGS -Wno-format-truncation) set_source_files_properties(libcoap/src/coap_debug.c PROPERTIES COMPILE_FLAGS -Wno-format-truncation)

View file

@ -1,6 +1,6 @@
idf_component_register(SRCS "commands.c" idf_component_register(SRCS "commands.c"
"split_argv.c" "split_argv.c"
"argtable3/argtable3.c" "argtable3/argtable3.c"
"linenoise/linenoise.c" "linenoise/linenoise.c"
INCLUDE_DIRS "." INCLUDE_DIRS "."
REQUIRES vfs) REQUIRES vfs)

View file

@ -1,4 +1,5 @@
set(srcs "can.c" set(srcs
"can.c"
"gpio.c" "gpio.c"
"i2c.c" "i2c.c"
"i2s.c" "i2s.c"

View file

@ -7,9 +7,10 @@ if(EXISTS "${COMPONENT_DIR}/${soc_name}")
set(include_dirs include ${soc_name}/include) set(include_dirs include ${soc_name}/include)
endif() endif()
list(APPEND srcs "src/esp_efuse_api.c" list(APPEND srcs
"src/esp_efuse_fields.c" "src/esp_efuse_api.c"
"src/esp_efuse_utility.c") "src/esp_efuse_fields.c"
"src/esp_efuse_utility.c")
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES bootloader_support soc PRIV_REQUIRES bootloader_support soc

View file

@ -4,30 +4,31 @@ if(BOOTLOADER_BUILD)
target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld") target_linker_script(${COMPONENT_LIB} INTERFACE "ld/esp32.peripherals.ld")
else() else()
# Regular app build # Regular app build
set(srcs "brownout.c" set(srcs
"cache_err_int.c" "brownout.c"
"cache_sram_mmu.c" "cache_err_int.c"
"clk.c" "cache_sram_mmu.c"
"cpu_start.c" "clk.c"
"crosscore_int.c" "cpu_start.c"
"dport_access.c" "crosscore_int.c"
"dport_panic_highint_hdl.S" "dport_access.c"
"esp_adapter.c" "dport_panic_highint_hdl.S"
"esp_timer_esp32.c" "esp_adapter.c"
"esp_himem.c" "esp_timer_esp32.c"
"gdbstub.c" "esp_himem.c"
"hw_random.c" "gdbstub.c"
"int_wdt.c" "hw_random.c"
"intr_alloc.c" "int_wdt.c"
"panic.c" "intr_alloc.c"
"pm_esp32.c" "panic.c"
"pm_trace.c" "pm_esp32.c"
"reset_reason.c" "pm_trace.c"
"sleep_modes.c" "reset_reason.c"
"spiram.c" "sleep_modes.c"
"spiram_psram.c" "spiram.c"
"system_api.c" "spiram_psram.c"
"task_wdt.c") "system_api.c"
"task_wdt.c")
set(include_dirs "include") set(include_dirs "include")
set(requires driver esp_event efuse soc) #unfortunately rom/uart uses SOC registers directly set(requires driver esp_event efuse soc) #unfortunately rom/uart uses SOC registers directly

View file

@ -6,5 +6,5 @@ idf_component_register(SRCS "src/httpd_main.c"
"src/util/ctrl_sock.c" "src/util/ctrl_sock.c"
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS "src/port/esp32" "src/util" PRIV_INCLUDE_DIRS "src/port/esp32" "src/util"
REQUIRES nghttp REQUIRES nghttp # for http_parser.h
PRIV_REQUIRES lwip) # for http_parser.h PRIV_REQUIRES lwip)

View file

@ -1,24 +1,21 @@
idf_build_get_property(idf_target IDF_TARGET) idf_build_get_property(idf_target IDF_TARGET)
idf_build_get_property(build_dir BUILD_DIR)
set(srcs
"src/coexist.c"
"src/fast_crypto_ops.c"
"src/lib_printf.c"
"src/mesh_event.c"
"src/phy_init.c"
"src/restore.c"
"src/wifi_init.c")
if(NOT CONFIG_ESP32_NO_BLOBS) if(NOT CONFIG_ESP32_NO_BLOBS)
set(ldfragments "linker.lf") set(ldfragments "linker.lf")
endif() endif()
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "src/coexist.c"
"src/fast_crypto_ops.c"
"src/lib_printf.c"
"src/mesh_event.c"
"src/phy_init.c"
"src/restore.c"
"src/wifi_init.c"
INCLUDE_DIRS "include" "${idf_target}/include" INCLUDE_DIRS "include" "${idf_target}/include"
PRIV_REQUIRES wpa_supplicant nvs_flash PRIV_REQUIRES wpa_supplicant nvs_flash
LDFRAGMENTS "${ldfragments}") LDFRAGMENTS "${ldfragments}")
idf_build_get_property(build_dir BUILD_DIR)
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib_${idf_target}") target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib_${idf_target}")
if(NOT CONFIG_ESP32_NO_BLOBS) if(NOT CONFIG_ESP32_NO_BLOBS)

View file

@ -2,7 +2,7 @@ idf_component_register(SRCS "src/core_dump_common.c"
"src/core_dump_flash.c" "src/core_dump_flash.c"
"src/core_dump_port.c" "src/core_dump_port.c"
"src/core_dump_uart.c" "src/core_dump_uart.c"
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS "include_core_dump" PRIV_INCLUDE_DIRS "include_core_dump"
LDFRAGMENTS linker.lf LDFRAGMENTS linker.lf
PRIV_REQUIRES spi_flash soc) PRIV_REQUIRES spi_flash soc)

View file

@ -1,14 +1,12 @@
set(srcs "src/diskio.c" idf_component_register(SRCS "src/diskio.c"
"src/diskio_rawflash.c" "src/diskio_rawflash.c"
"src/diskio_sdmmc.c" "src/diskio_sdmmc.c"
"src/diskio_wl.c" "src/diskio_wl.c"
"src/ff.c" "src/ff.c"
"src/ffsystem.c" "src/ffsystem.c"
"src/ffunicode.c" "src/ffunicode.c"
"src/vfs_fat.c" "src/vfs_fat.c"
"src/vfs_fat_sdmmc.c" "src/vfs_fat_sdmmc.c"
"src/vfs_fat_spiflash.c") "src/vfs_fat_spiflash.c"
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS src INCLUDE_DIRS src
REQUIRES wear_levelling sdmmc) REQUIRES wear_levelling sdmmc)

View file

@ -1,6 +1,7 @@
# The following five lines of boilerplate have to be in your project's # The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly # CMakeLists in this exact order for cmake to work correctly
set(srcs "common/esp_modbus_master.c" set(srcs
"common/esp_modbus_master.c"
"common/esp_modbus_slave.c" "common/esp_modbus_slave.c"
"modbus/mb.c" "modbus/mb.c"
"modbus/mb_m.c" "modbus/mb_m.c"

View file

@ -1,19 +1,21 @@
set(srcs "croutine.c" set(srcs
"event_groups.c" "croutine.c"
"FreeRTOS-openocd.c" "event_groups.c"
"list.c" "FreeRTOS-openocd.c"
"port.c" "list.c"
"portasm.S" "port.c"
"queue.c" "portasm.S"
"tasks.c" "queue.c"
"timers.c" "tasks.c"
"xtensa_context.S" "timers.c"
"xtensa_init.c" "xtensa_context.S"
"xtensa_intr.c" "xtensa_init.c"
"xtensa_intr_asm.S" "xtensa_intr.c"
"xtensa_overlay_os_hook.c" "xtensa_intr_asm.S"
"xtensa_vector_defaults.S" "xtensa_overlay_os_hook.c"
"xtensa_vectors.S") "xtensa_vector_defaults.S"
"xtensa_vectors.S")
# app_trace is required by FreeRTOS headers only when CONFIG_SYSVIEW_ENABLE=y, # app_trace is required by FreeRTOS headers only when CONFIG_SYSVIEW_ENABLE=y,
# but requirements can't depend on config options, so always require it. # but requirements can't depend on config options, so always require it.
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"

View file

@ -1,6 +1,7 @@
set(srcs "heap_caps.c" set(srcs
"heap_caps_init.c" "heap_caps.c"
"multi_heap.c") "heap_caps_init.c"
"multi_heap.c")
if(NOT CONFIG_HEAP_POISONING_DISABLED) if(NOT CONFIG_HEAP_POISONING_DISABLED)
list(APPEND srcs "multi_heap_poisoning.c") list(APPEND srcs "multi_heap_poisoning.c")

View file

@ -1,126 +1,129 @@
set(SRC libsodium/src/libsodium) set(SRC libsodium/src/libsodium)
# Derived from libsodium/src/libsodium/Makefile.am # Derived from libsodium/src/libsodium/Makefile.am
# (ignoring the !MINIMAL set) # (ignoring the !MINIMAL set)
set(srcs "${SRC}/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c" set(srcs
"${SRC}/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c" "${SRC}/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c"
"${SRC}/crypto_auth/crypto_auth.c" "${SRC}/crypto_aead/xchacha20poly1305/sodium/aead_xchacha20poly1305.c"
"${SRC}/crypto_auth/hmacsha256/auth_hmacsha256.c" "${SRC}/crypto_auth/crypto_auth.c"
"${SRC}/crypto_auth/hmacsha512/auth_hmacsha512.c" "${SRC}/crypto_auth/hmacsha256/auth_hmacsha256.c"
"${SRC}/crypto_auth/hmacsha512256/auth_hmacsha512256.c" "${SRC}/crypto_auth/hmacsha512/auth_hmacsha512.c"
"${SRC}/crypto_box/crypto_box.c" "${SRC}/crypto_auth/hmacsha512256/auth_hmacsha512256.c"
"${SRC}/crypto_box/crypto_box_easy.c" "${SRC}/crypto_box/crypto_box.c"
"${SRC}/crypto_box/crypto_box_seal.c" "${SRC}/crypto_box/crypto_box_easy.c"
"${SRC}/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c" "${SRC}/crypto_box/crypto_box_seal.c"
"${SRC}/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c" "${SRC}/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c"
"${SRC}/crypto_core/curve25519/ref10/curve25519_ref10.c" "${SRC}/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c"
"${SRC}/crypto_core/hchacha20/core_hchacha20.c" "${SRC}/crypto_core/curve25519/ref10/curve25519_ref10.c"
"${SRC}/crypto_core/hsalsa20/core_hsalsa20.c" "${SRC}/crypto_core/hchacha20/core_hchacha20.c"
"${SRC}/crypto_core/hsalsa20/ref2/core_hsalsa20_ref2.c" "${SRC}/crypto_core/hsalsa20/core_hsalsa20.c"
"${SRC}/crypto_core/salsa/ref/core_salsa_ref.c" "${SRC}/crypto_core/hsalsa20/ref2/core_hsalsa20_ref2.c"
"${SRC}/crypto_generichash/crypto_generichash.c" "${SRC}/crypto_core/salsa/ref/core_salsa_ref.c"
"${SRC}/crypto_generichash/blake2b/generichash_blake2.c" "${SRC}/crypto_generichash/crypto_generichash.c"
"${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-avx2.c" "${SRC}/crypto_generichash/blake2b/generichash_blake2.c"
"${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-ref.c" "${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-avx2.c"
"${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-sse41.c" "${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-ref.c"
"${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-ssse3.c" "${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-sse41.c"
"${SRC}/crypto_generichash/blake2b/ref/blake2b-ref.c" "${SRC}/crypto_generichash/blake2b/ref/blake2b-compress-ssse3.c"
"${SRC}/crypto_generichash/blake2b/ref/generichash_blake2b.c" "${SRC}/crypto_generichash/blake2b/ref/blake2b-ref.c"
"${SRC}/crypto_hash/crypto_hash.c" "${SRC}/crypto_generichash/blake2b/ref/generichash_blake2b.c"
"${SRC}/crypto_hash/sha256/hash_sha256.c" "${SRC}/crypto_hash/crypto_hash.c"
"${SRC}/crypto_hash/sha256/cp/hash_sha256_cp.c" "${SRC}/crypto_hash/sha256/hash_sha256.c"
"${SRC}/crypto_hash/sha512/hash_sha512.c" "${SRC}/crypto_hash/sha256/cp/hash_sha256_cp.c"
"${SRC}/crypto_hash/sha512/cp/hash_sha512_cp.c" "${SRC}/crypto_hash/sha512/hash_sha512.c"
"${SRC}/crypto_kdf/crypto_kdf.c" "${SRC}/crypto_hash/sha512/cp/hash_sha512_cp.c"
"${SRC}/crypto_kdf/blake2b/kdf_blake2b.c" "${SRC}/crypto_kdf/crypto_kdf.c"
"${SRC}/crypto_kx/crypto_kx.c" "${SRC}/crypto_kdf/blake2b/kdf_blake2b.c"
"${SRC}/crypto_onetimeauth/crypto_onetimeauth.c" "${SRC}/crypto_kx/crypto_kx.c"
"${SRC}/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c" "${SRC}/crypto_onetimeauth/crypto_onetimeauth.c"
"${SRC}/crypto_onetimeauth/poly1305/donna/poly1305_donna.c" "${SRC}/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c"
"${SRC}/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c" "${SRC}/crypto_onetimeauth/poly1305/donna/poly1305_donna.c"
"${SRC}/crypto_pwhash/crypto_pwhash.c" "${SRC}/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c"
"${SRC}/crypto_pwhash/argon2/argon2-core.c" "${SRC}/crypto_pwhash/crypto_pwhash.c"
"${SRC}/crypto_pwhash/argon2/argon2-encoding.c" "${SRC}/crypto_pwhash/argon2/argon2-core.c"
"${SRC}/crypto_pwhash/argon2/argon2-fill-block-ref.c" "${SRC}/crypto_pwhash/argon2/argon2-encoding.c"
"${SRC}/crypto_pwhash/argon2/argon2-fill-block-ssse3.c" "${SRC}/crypto_pwhash/argon2/argon2-fill-block-ref.c"
"${SRC}/crypto_pwhash/argon2/argon2.c" "${SRC}/crypto_pwhash/argon2/argon2-fill-block-ssse3.c"
"${SRC}/crypto_pwhash/argon2/blake2b-long.c" "${SRC}/crypto_pwhash/argon2/argon2.c"
"${SRC}/crypto_pwhash/argon2/pwhash_argon2i.c" "${SRC}/crypto_pwhash/argon2/blake2b-long.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c" "${SRC}/crypto_pwhash/argon2/pwhash_argon2i.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c"
"${SRC}/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c"
"${SRC}/crypto_scalarmult/crypto_scalarmult.c" "${SRC}/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c"
"${SRC}/crypto_scalarmult/curve25519/scalarmult_curve25519.c" "${SRC}/crypto_scalarmult/crypto_scalarmult.c"
"${SRC}/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c" "${SRC}/crypto_scalarmult/curve25519/scalarmult_curve25519.c"
"${SRC}/crypto_scalarmult/curve25519/ref10/x25519_ref10.c" "${SRC}/crypto_scalarmult/curve25519/donna_c64/curve25519_donna_c64.c"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/consts.S" "${SRC}/crypto_scalarmult/curve25519/ref10/x25519_ref10.c"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c" "${SRC}/crypto_scalarmult/curve25519/sandy2x/consts.S"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c" "${SRC}/crypto_scalarmult/curve25519/sandy2x/curve25519_sandy2x.c"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_invert.c"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_mul.S"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_nsquare.S"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c" "${SRC}/crypto_scalarmult/curve25519/sandy2x/fe51_pack.S"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/ladder.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/fe_frombytes_sandy2x.c"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/ladder_base.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/ladder.S"
"${SRC}/crypto_scalarmult/curve25519/sandy2x/sandy2x.S" "${SRC}/crypto_scalarmult/curve25519/sandy2x/ladder_base.S"
"${SRC}/crypto_secretbox/crypto_secretbox.c" "${SRC}/crypto_scalarmult/curve25519/sandy2x/sandy2x.S"
"${SRC}/crypto_secretbox/crypto_secretbox_easy.c" "${SRC}/crypto_secretbox/crypto_secretbox.c"
"${SRC}/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c" "${SRC}/crypto_secretbox/crypto_secretbox_easy.c"
"${SRC}/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c" "${SRC}/crypto_secretbox/xchacha20poly1305/secretbox_xchacha20poly1305.c"
"${SRC}/crypto_shorthash/crypto_shorthash.c" "${SRC}/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c"
"${SRC}/crypto_shorthash/siphash24/shorthash_siphash24.c" "${SRC}/crypto_shorthash/crypto_shorthash.c"
"${SRC}/crypto_shorthash/siphash24/shorthash_siphashx24.c" "${SRC}/crypto_shorthash/siphash24/shorthash_siphash24.c"
"${SRC}/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c" "${SRC}/crypto_shorthash/siphash24/shorthash_siphashx24.c"
"${SRC}/crypto_shorthash/siphash24/ref/shorthash_siphashx24_ref.c" "${SRC}/crypto_shorthash/siphash24/ref/shorthash_siphash24_ref.c"
"${SRC}/crypto_sign/crypto_sign.c" "${SRC}/crypto_shorthash/siphash24/ref/shorthash_siphashx24_ref.c"
"${SRC}/crypto_sign/ed25519/sign_ed25519.c" "${SRC}/crypto_sign/crypto_sign.c"
"${SRC}/crypto_sign/ed25519/ref10/keypair.c" "${SRC}/crypto_sign/ed25519/sign_ed25519.c"
"${SRC}/crypto_sign/ed25519/ref10/obsolete.c" "${SRC}/crypto_sign/ed25519/ref10/keypair.c"
"${SRC}/crypto_sign/ed25519/ref10/open.c" "${SRC}/crypto_sign/ed25519/ref10/obsolete.c"
"${SRC}/crypto_sign/ed25519/ref10/sign.c" "${SRC}/crypto_sign/ed25519/ref10/open.c"
"${SRC}/crypto_stream/crypto_stream.c" "${SRC}/crypto_sign/ed25519/ref10/sign.c"
"${SRC}/crypto_stream/aes128ctr/stream_aes128ctr.c" "${SRC}/crypto_stream/crypto_stream.c"
"${SRC}/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c" "${SRC}/crypto_stream/aes128ctr/stream_aes128ctr.c"
"${SRC}/crypto_stream/aes128ctr/nacl/beforenm_aes128ctr.c" "${SRC}/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c"
"${SRC}/crypto_stream/aes128ctr/nacl/consts_aes128ctr.c" "${SRC}/crypto_stream/aes128ctr/nacl/beforenm_aes128ctr.c"
"${SRC}/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c" "${SRC}/crypto_stream/aes128ctr/nacl/consts_aes128ctr.c"
"${SRC}/crypto_stream/aes128ctr/nacl/stream_aes128ctr_nacl.c" "${SRC}/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c"
"${SRC}/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c" "${SRC}/crypto_stream/aes128ctr/nacl/stream_aes128ctr_nacl.c"
"${SRC}/crypto_stream/chacha20/stream_chacha20.c" "${SRC}/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c"
"${SRC}/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c" "${SRC}/crypto_stream/chacha20/stream_chacha20.c"
"${SRC}/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c" "${SRC}/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-avx2.c"
"${SRC}/crypto_stream/chacha20/ref/chacha20_ref.c" "${SRC}/crypto_stream/chacha20/dolbeau/chacha20_dolbeau-ssse3.c"
"${SRC}/crypto_stream/salsa20/stream_salsa20.c" "${SRC}/crypto_stream/chacha20/ref/chacha20_ref.c"
"${SRC}/crypto_stream/salsa20/ref/salsa20_ref.c" "${SRC}/crypto_stream/salsa20/stream_salsa20.c"
"${SRC}/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S" "${SRC}/crypto_stream/salsa20/ref/salsa20_ref.c"
"${SRC}/crypto_stream/salsa20/xmm6/salsa20_xmm6.c" "${SRC}/crypto_stream/salsa20/xmm6/salsa20_xmm6-asm.S"
"${SRC}/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.c" "${SRC}/crypto_stream/salsa20/xmm6/salsa20_xmm6.c"
"${SRC}/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.c" "${SRC}/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-avx2.c"
"${SRC}/crypto_stream/salsa2012/stream_salsa2012.c" "${SRC}/crypto_stream/salsa20/xmm6int/salsa20_xmm6int-sse2.c"
"${SRC}/crypto_stream/salsa2012/ref/stream_salsa2012_ref.c" "${SRC}/crypto_stream/salsa2012/stream_salsa2012.c"
"${SRC}/crypto_stream/salsa208/stream_salsa208.c" "${SRC}/crypto_stream/salsa2012/ref/stream_salsa2012_ref.c"
"${SRC}/crypto_stream/salsa208/ref/stream_salsa208_ref.c" "${SRC}/crypto_stream/salsa208/stream_salsa208.c"
"${SRC}/crypto_stream/xchacha20/stream_xchacha20.c" "${SRC}/crypto_stream/salsa208/ref/stream_salsa208_ref.c"
"${SRC}/crypto_stream/xsalsa20/stream_xsalsa20.c" "${SRC}/crypto_stream/xchacha20/stream_xchacha20.c"
"${SRC}/crypto_verify/sodium/verify.c" "${SRC}/crypto_stream/xsalsa20/stream_xsalsa20.c"
"${SRC}/randombytes/randombytes.c" "${SRC}/crypto_verify/sodium/verify.c"
"${SRC}/randombytes/nativeclient/randombytes_nativeclient.c" "${SRC}/randombytes/randombytes.c"
"${SRC}/randombytes/salsa20/randombytes_salsa20_random.c" "${SRC}/randombytes/nativeclient/randombytes_nativeclient.c"
"${SRC}/randombytes/sysrandom/randombytes_sysrandom.c" "${SRC}/randombytes/salsa20/randombytes_salsa20_random.c"
"${SRC}/sodium/core.c" "${SRC}/randombytes/sysrandom/randombytes_sysrandom.c"
"${SRC}/sodium/runtime.c" "${SRC}/sodium/core.c"
"${SRC}/sodium/utils.c" "${SRC}/sodium/runtime.c"
"${SRC}/sodium/version.c" "${SRC}/sodium/utils.c"
"port/randombytes_esp32.c") "${SRC}/sodium/version.c"
"port/randombytes_esp32.c")
if(CONFIG_LIBSODIUM_USE_MBEDTLS_SHA) if(CONFIG_LIBSODIUM_USE_MBEDTLS_SHA)
list(APPEND srcs "port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c" list(APPEND srcs
"port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.c") "port/crypto_hash_mbedtls/crypto_hash_sha256_mbedtls.c"
"port/crypto_hash_mbedtls/crypto_hash_sha512_mbedtls.c")
else() else()
list(APPEND srcs "${SRC}/crypto_hash/sha256/cp/hash_sha256_cp.c" list(APPEND srcs
"${SRC}/crypto_hash/sha512/cp/hash_sha512_cp.c") "${SRC}/crypto_hash/sha256/cp/hash_sha256_cp.c"
"${SRC}/crypto_hash/sha512/cp/hash_sha512_cp.c")
endif() endif()
set(include_dirs ${SRC}/include port_include) set(include_dirs ${SRC}/include port_include)

View file

@ -6,57 +6,93 @@ set(include_dirs
port/esp32/include/arch port/esp32/include/arch
) )
set(srcs "apps/dhcpserver/dhcpserver.c" set(srcs
"apps/ping/esp_ping.c" "apps/dhcpserver/dhcpserver.c"
"apps/ping/ping.c" "apps/ping/esp_ping.c"
"apps/sntp/sntp.c" "apps/ping/ping.c"
"lwip/src/api/api_lib.c" "apps/sntp/sntp.c"
"lwip/src/api/api_msg.c" "lwip/src/api/api_lib.c"
"lwip/src/api/err.c" "lwip/src/api/api_msg.c"
"lwip/src/api/netbuf.c" "lwip/src/api/err.c"
"lwip/src/api/netdb.c" "lwip/src/api/netbuf.c"
"lwip/src/api/netifapi.c" "lwip/src/api/netdb.c"
"lwip/src/api/sockets.c" "lwip/src/api/netifapi.c"
"lwip/src/api/tcpip.c" "lwip/src/api/sockets.c"
"lwip/src/apps/sntp/sntp.c" "lwip/src/api/tcpip.c"
"lwip/src/core/def.c" "lwip/src/apps/sntp/sntp.c"
"lwip/src/core/dns.c" "lwip/src/core/def.c"
"lwip/src/core/inet_chksum.c" "lwip/src/core/dns.c"
"lwip/src/core/init.c" "lwip/src/core/inet_chksum.c"
"lwip/src/core/ip.c" "lwip/src/core/init.c"
"lwip/src/core/mem.c" "lwip/src/core/ip.c"
"lwip/src/core/memp.c" "lwip/src/core/mem.c"
"lwip/src/core/netif.c" "lwip/src/core/memp.c"
"lwip/src/core/pbuf.c" "lwip/src/core/netif.c"
"lwip/src/core/raw.c" "lwip/src/core/pbuf.c"
"lwip/src/core/stats.c" "lwip/src/core/raw.c"
"lwip/src/core/sys.c" "lwip/src/core/stats.c"
"lwip/src/core/tcp.c" "lwip/src/core/sys.c"
"lwip/src/core/tcp_in.c" "lwip/src/core/tcp.c"
"lwip/src/core/tcp_out.c" "lwip/src/core/tcp_in.c"
"lwip/src/core/timeouts.c" "lwip/src/core/tcp_out.c"
"lwip/src/core/udp.c" "lwip/src/core/timeouts.c"
"lwip/src/core/ipv4/autoip.c" "lwip/src/core/udp.c"
"lwip/src/core/ipv4/dhcp.c" "lwip/src/core/ipv4/autoip.c"
"lwip/src/core/ipv4/etharp.c" "lwip/src/core/ipv4/dhcp.c"
"lwip/src/core/ipv4/icmp.c" "lwip/src/core/ipv4/etharp.c"
"lwip/src/core/ipv4/igmp.c" "lwip/src/core/ipv4/icmp.c"
"lwip/src/core/ipv4/ip4.c" "lwip/src/core/ipv4/igmp.c"
"lwip/src/core/ipv4/ip4_addr.c" "lwip/src/core/ipv4/ip4.c"
"lwip/src/core/ipv4/ip4_frag.c" "lwip/src/core/ipv4/ip4_addr.c"
"lwip/src/core/ipv6/dhcp6.c" "lwip/src/core/ipv4/ip4_frag.c"
"lwip/src/core/ipv6/ethip6.c" "lwip/src/core/ipv6/dhcp6.c"
"lwip/src/core/ipv6/icmp6.c" "lwip/src/core/ipv6/ethip6.c"
"lwip/src/core/ipv6/inet6.c" "lwip/src/core/ipv6/icmp6.c"
"lwip/src/core/ipv6/ip6.c" "lwip/src/core/ipv6/inet6.c"
"lwip/src/core/ipv6/ip6_addr.c" "lwip/src/core/ipv6/ip6.c"
"lwip/src/core/ipv6/ip6_frag.c" "lwip/src/core/ipv6/ip6_addr.c"
"lwip/src/core/ipv6/mld6.c" "lwip/src/core/ipv6/ip6_frag.c"
"lwip/src/core/ipv6/nd6.c" "lwip/src/core/ipv6/mld6.c"
"lwip/src/netif/ethernet.c" "lwip/src/core/ipv6/nd6.c"
"lwip/src/netif/ethernetif.c" "lwip/src/netif/ethernet.c"
"lwip/src/netif/lowpan6.c" "lwip/src/netif/ethernetif.c"
"lwip/src/netif/slipif.c" "lwip/src/netif/lowpan6.c"
"lwip/src/netif/slipif.c"
"lwip/src/netif/ppp/auth.c"
"lwip/src/netif/ppp/ccp.c"
"lwip/src/netif/ppp/chap-md5.c"
"lwip/src/netif/ppp/chap-new.c"
"lwip/src/netif/ppp/chap_ms.c"
"lwip/src/netif/ppp/demand.c"
"lwip/src/netif/ppp/eap.c"
"lwip/src/netif/ppp/ecp.c"
"lwip/src/netif/ppp/eui64.c"
"lwip/src/netif/ppp/fsm.c"
"lwip/src/netif/ppp/ipcp.c"
"lwip/src/netif/ppp/ipv6cp.c"
"lwip/src/netif/ppp/lcp.c"
"lwip/src/netif/ppp/magic.c"
"lwip/src/netif/ppp/mppe.c"
"lwip/src/netif/ppp/multilink.c"
"lwip/src/netif/ppp/ppp.c"
"lwip/src/netif/ppp/pppapi.c"
"lwip/src/netif/ppp/pppcrypt.c"
"lwip/src/netif/ppp/pppoe.c"
"lwip/src/netif/ppp/pppol2tp.c"
"lwip/src/netif/ppp/pppos.c"
"lwip/src/netif/ppp/upap.c"
"lwip/src/netif/ppp/utils.c"
"lwip/src/netif/ppp/vj.c"
"port/esp32/vfs_lwip.c"
"port/esp32/debug/lwip_debug.c"
"port/esp32/freertos/sys_arch.c"
"port/esp32/netif/dhcp_state.c"
"port/esp32/netif/ethernetif.c"
"port/esp32/netif/nettestif.c"
"port/esp32/netif/wlanif.c")
if(CONFIG_LWIP_PPP_SUPPORT)
list(APPEND srcs
"lwip/src/netif/ppp/auth.c" "lwip/src/netif/ppp/auth.c"
"lwip/src/netif/ppp/ccp.c" "lwip/src/netif/ppp/ccp.c"
"lwip/src/netif/ppp/chap-md5.c" "lwip/src/netif/ppp/chap-md5.c"
@ -82,45 +118,11 @@ set(srcs "apps/dhcpserver/dhcpserver.c"
"lwip/src/netif/ppp/upap.c" "lwip/src/netif/ppp/upap.c"
"lwip/src/netif/ppp/utils.c" "lwip/src/netif/ppp/utils.c"
"lwip/src/netif/ppp/vj.c" "lwip/src/netif/ppp/vj.c"
"port/esp32/vfs_lwip.c" "lwip/src/netif/ppp/polarssl/arc4.c"
"port/esp32/debug/lwip_debug.c" "lwip/src/netif/ppp/polarssl/des.c"
"port/esp32/freertos/sys_arch.c" "lwip/src/netif/ppp/polarssl/md4.c"
"port/esp32/netif/dhcp_state.c" "lwip/src/netif/ppp/polarssl/md5.c"
"port/esp32/netif/ethernetif.c" "lwip/src/netif/ppp/polarssl/sha1.c")
"port/esp32/netif/nettestif.c"
"port/esp32/netif/wlanif.c")
if(CONFIG_LWIP_PPP_SUPPORT)
list(APPEND srcs "lwip/src/netif/ppp/auth.c"
"lwip/src/netif/ppp/ccp.c"
"lwip/src/netif/ppp/chap-md5.c"
"lwip/src/netif/ppp/chap-new.c"
"lwip/src/netif/ppp/chap_ms.c"
"lwip/src/netif/ppp/demand.c"
"lwip/src/netif/ppp/eap.c"
"lwip/src/netif/ppp/ecp.c"
"lwip/src/netif/ppp/eui64.c"
"lwip/src/netif/ppp/fsm.c"
"lwip/src/netif/ppp/ipcp.c"
"lwip/src/netif/ppp/ipv6cp.c"
"lwip/src/netif/ppp/lcp.c"
"lwip/src/netif/ppp/magic.c"
"lwip/src/netif/ppp/mppe.c"
"lwip/src/netif/ppp/multilink.c"
"lwip/src/netif/ppp/ppp.c"
"lwip/src/netif/ppp/pppapi.c"
"lwip/src/netif/ppp/pppcrypt.c"
"lwip/src/netif/ppp/pppoe.c"
"lwip/src/netif/ppp/pppol2tp.c"
"lwip/src/netif/ppp/pppos.c"
"lwip/src/netif/ppp/upap.c"
"lwip/src/netif/ppp/utils.c"
"lwip/src/netif/ppp/vj.c"
"lwip/src/netif/ppp/polarssl/arc4.c"
"lwip/src/netif/ppp/polarssl/des.c"
"lwip/src/netif/ppp/polarssl/md4.c"
"lwip/src/netif/ppp/polarssl/md5.c"
"lwip/src/netif/ppp/polarssl/sha1.c")
endif() endif()
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"

View file

@ -1,4 +1,5 @@
set(srcs "heap.c" set(srcs
"heap.c"
"locks.c" "locks.c"
"poll.c" "poll.c"
"pthread.c" "pthread.c"

View file

@ -1,26 +1,27 @@
set(srcs "nghttp2/lib/nghttp2_buf.c" set(srcs
"nghttp2/lib/nghttp2_callbacks.c" "nghttp2/lib/nghttp2_buf.c"
"nghttp2/lib/nghttp2_debug.c" "nghttp2/lib/nghttp2_callbacks.c"
"nghttp2/lib/nghttp2_frame.c" "nghttp2/lib/nghttp2_debug.c"
"nghttp2/lib/nghttp2_hd.c" "nghttp2/lib/nghttp2_frame.c"
"nghttp2/lib/nghttp2_hd_huffman.c" "nghttp2/lib/nghttp2_hd.c"
"nghttp2/lib/nghttp2_hd_huffman_data.c" "nghttp2/lib/nghttp2_hd_huffman.c"
"nghttp2/lib/nghttp2_helper.c" "nghttp2/lib/nghttp2_hd_huffman_data.c"
"nghttp2/lib/nghttp2_http.c" "nghttp2/lib/nghttp2_helper.c"
"nghttp2/lib/nghttp2_map.c" "nghttp2/lib/nghttp2_http.c"
"nghttp2/lib/nghttp2_mem.c" "nghttp2/lib/nghttp2_map.c"
"nghttp2/lib/nghttp2_npn.c" "nghttp2/lib/nghttp2_mem.c"
"nghttp2/lib/nghttp2_option.c" "nghttp2/lib/nghttp2_npn.c"
"nghttp2/lib/nghttp2_outbound_item.c" "nghttp2/lib/nghttp2_option.c"
"nghttp2/lib/nghttp2_pq.c" "nghttp2/lib/nghttp2_outbound_item.c"
"nghttp2/lib/nghttp2_priority_spec.c" "nghttp2/lib/nghttp2_pq.c"
"nghttp2/lib/nghttp2_queue.c" "nghttp2/lib/nghttp2_priority_spec.c"
"nghttp2/lib/nghttp2_rcbuf.c" "nghttp2/lib/nghttp2_queue.c"
"nghttp2/lib/nghttp2_session.c" "nghttp2/lib/nghttp2_rcbuf.c"
"nghttp2/lib/nghttp2_stream.c" "nghttp2/lib/nghttp2_session.c"
"nghttp2/lib/nghttp2_submit.c" "nghttp2/lib/nghttp2_stream.c"
"nghttp2/lib/nghttp2_version.c" "nghttp2/lib/nghttp2_submit.c"
"port/http_parser.c") "nghttp2/lib/nghttp2_version.c"
"port/http_parser.c")
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS port/include nghttp2/lib/includes) INCLUDE_DIRS port/include nghttp2/lib/includes)

View file

@ -2,15 +2,16 @@ set(include_dirs include/common
include/security include/security
include/transports) include/transports)
set(priv_include_dirs proto-c src/common src/simple_ble) set(priv_include_dirs proto-c src/common src/simple_ble)
set(srcs "src/common/protocomm.c" set(srcs
"src/security/security0.c" "src/common/protocomm.c"
"src/security/security1.c" "src/security/security0.c"
"proto-c/constants.pb-c.c" "src/security/security1.c"
"proto-c/sec0.pb-c.c" "proto-c/constants.pb-c.c"
"proto-c/sec1.pb-c.c" "proto-c/sec0.pb-c.c"
"proto-c/session.pb-c.c" "proto-c/sec1.pb-c.c"
"src/transports/protocomm_console.c" "proto-c/session.pb-c.c"
"src/transports/protocomm_httpd.c") "src/transports/protocomm_console.c"
"src/transports/protocomm_httpd.c")
if(CONFIG_BT_ENABLED) if(CONFIG_BT_ENABLED)
if(CONFIG_BT_BLUEDROID_ENABLED) if(CONFIG_BT_BLUEDROID_ENABLED)

View file

@ -9,15 +9,16 @@ if(EXISTS "${COMPONENT_DIR}/${soc_name}")
endif() endif()
list(APPEND include_dirs include) list(APPEND include_dirs include)
list(APPEND srcs "src/memory_layout_utils.c" list(APPEND srcs
"src/lldesc.c" "src/memory_layout_utils.c"
"src/hal/spi_hal.c" "src/lldesc.c"
"src/hal/spi_hal_iram.c" "src/hal/spi_hal.c"
"src/hal/spi_slave_hal.c" "src/hal/spi_hal_iram.c"
"src/hal/spi_slave_hal_iram.c" "src/hal/spi_slave_hal.c"
"src/soc_include_legacy_warn.c" "src/hal/spi_slave_hal_iram.c"
"src/hal/spi_flash_hal.c" "src/soc_include_legacy_warn.c"
"src/hal/spi_flash_hal_iram.c" "src/hal/spi_flash_hal.c"
"src/hal/spi_flash_hal_iram.c"
) )
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"

View file

@ -4,18 +4,18 @@ if(BOOTLOADER_BUILD)
# need other parts of this component # need other parts of this component
set(srcs "spi_flash_rom_patch.c") set(srcs "spi_flash_rom_patch.c")
else() else()
set(srcs "cache_utils.c" set(srcs
"flash_mmap.c" "cache_utils.c"
"flash_ops.c" "flash_mmap.c"
"partition.c" "flash_ops.c"
"spi_flash_rom_patch.c" "partition.c"
"spi_flash_chip_drivers.c" "spi_flash_rom_patch.c"
"spi_flash_chip_generic.c" "spi_flash_chip_drivers.c"
"spi_flash_chip_issi.c" "spi_flash_chip_generic.c"
"spi_flash_os_func_app.c" "spi_flash_chip_issi.c"
"spi_flash_os_func_noos.c" "spi_flash_os_func_app.c"
"memspi_host_driver.c" "spi_flash_os_func_noos.c"
) "memspi_host_driver.c")
if(NOT CONFIG_SPI_FLASH_USE_LEGACY_IMPL) if(NOT CONFIG_SPI_FLASH_USE_LEGACY_IMPL)
list(APPEND srcs "esp_flash_api.c") list(APPEND srcs "esp_flash_api.c")
endif() endif()

View file

@ -1,5 +1,6 @@
set(srcs "unity/src/unity.c" set(srcs
"unity_port_esp32.c") "unity/src/unity.c"
"unity_port_esp32.c")
if(CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL) if(CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL)
list(APPEND COMPONENT_PRIV_INCLUDEDIRS "include/priv") list(APPEND COMPONENT_PRIV_INCLUDEDIRS "include/priv")

View file

@ -1,77 +1,78 @@
set(srcs "port/os_xtensa.c" set(srcs
"src/crypto/aes-cbc.c" "port/os_xtensa.c"
"src/crypto/aes-internal-dec.c" "src/crypto/aes-cbc.c"
"src/crypto/aes-internal-enc.c" "src/crypto/aes-internal-dec.c"
"src/crypto/aes-internal.c" "src/crypto/aes-internal-enc.c"
"src/crypto/aes-unwrap.c" "src/crypto/aes-internal.c"
"src/crypto/aes-wrap.c" "src/crypto/aes-unwrap.c"
"src/crypto/bignum.c" "src/crypto/aes-wrap.c"
"src/crypto/crypto_mbedtls.c" "src/crypto/bignum.c"
"src/crypto/crypto_internal-cipher.c" "src/crypto/crypto_mbedtls.c"
"src/crypto/crypto_internal-modexp.c" "src/crypto/crypto_internal-cipher.c"
"src/crypto/crypto_internal-rsa.c" "src/crypto/crypto_internal-modexp.c"
"src/crypto/crypto_internal.c" "src/crypto/crypto_internal-rsa.c"
"src/crypto/des-internal.c" "src/crypto/crypto_internal.c"
"src/crypto/dh_group5.c" "src/crypto/des-internal.c"
"src/crypto/dh_groups.c" "src/crypto/dh_group5.c"
"src/crypto/md4-internal.c" "src/crypto/dh_groups.c"
"src/crypto/md5-internal.c" "src/crypto/md4-internal.c"
"src/crypto/md5.c" "src/crypto/md5-internal.c"
"src/crypto/ms_funcs.c" "src/crypto/md5.c"
"src/crypto/rc4.c" "src/crypto/ms_funcs.c"
"src/crypto/sha1-internal.c" "src/crypto/rc4.c"
"src/crypto/sha1-pbkdf2.c" "src/crypto/sha1-internal.c"
"src/crypto/sha1.c" "src/crypto/sha1-pbkdf2.c"
"src/crypto/sha256-internal.c" "src/crypto/sha1.c"
"src/crypto/sha256.c" "src/crypto/sha256-internal.c"
"src/fast_crypto/fast_aes-cbc.c" "src/crypto/sha256.c"
"src/fast_crypto/fast_aes-unwrap.c" "src/fast_crypto/fast_aes-cbc.c"
"src/fast_crypto/fast_aes-wrap.c" "src/fast_crypto/fast_aes-unwrap.c"
"src/fast_crypto/fast_crypto_internal-cipher.c" "src/fast_crypto/fast_aes-wrap.c"
"src/fast_crypto/fast_crypto_internal-modexp.c" "src/fast_crypto/fast_crypto_internal-cipher.c"
"src/fast_crypto/fast_crypto_internal.c" "src/fast_crypto/fast_crypto_internal-modexp.c"
"src/fast_crypto/fast_sha256-internal.c" "src/fast_crypto/fast_crypto_internal.c"
"src/fast_crypto/fast_sha256.c" "src/fast_crypto/fast_sha256-internal.c"
"src/wpa2/eap_peer/chap.c" "src/fast_crypto/fast_sha256.c"
"src/wpa2/eap_peer/eap.c" "src/wpa2/eap_peer/chap.c"
"src/wpa2/eap_peer/eap_common.c" "src/wpa2/eap_peer/eap.c"
"src/wpa2/eap_peer/eap_mschapv2.c" "src/wpa2/eap_peer/eap_common.c"
"src/wpa2/eap_peer/eap_peap.c" "src/wpa2/eap_peer/eap_mschapv2.c"
"src/wpa2/eap_peer/eap_peap_common.c" "src/wpa2/eap_peer/eap_peap.c"
"src/wpa2/eap_peer/eap_tls.c" "src/wpa2/eap_peer/eap_peap_common.c"
"src/wpa2/eap_peer/eap_tls_common.c" "src/wpa2/eap_peer/eap_tls.c"
"src/wpa2/eap_peer/eap_ttls.c" "src/wpa2/eap_peer/eap_tls_common.c"
"src/wpa2/eap_peer/mschapv2.c" "src/wpa2/eap_peer/eap_ttls.c"
"src/wpa2/tls/asn1.c" "src/wpa2/eap_peer/mschapv2.c"
"src/wpa2/tls/bignum.c" "src/wpa2/tls/asn1.c"
"src/wpa2/tls/pkcs1.c" "src/wpa2/tls/bignum.c"
"src/wpa2/tls/pkcs5.c" "src/wpa2/tls/pkcs1.c"
"src/wpa2/tls/pkcs8.c" "src/wpa2/tls/pkcs5.c"
"src/wpa2/tls/rsa.c" "src/wpa2/tls/pkcs8.c"
"src/wpa2/tls/tls_internal.c" "src/wpa2/tls/rsa.c"
"src/wpa2/tls/tlsv1_client.c" "src/wpa2/tls/tls_internal.c"
"src/wpa2/tls/tlsv1_client_read.c" "src/wpa2/tls/tlsv1_client.c"
"src/wpa2/tls/tlsv1_client_write.c" "src/wpa2/tls/tlsv1_client_read.c"
"src/wpa2/tls/tlsv1_common.c" "src/wpa2/tls/tlsv1_client_write.c"
"src/wpa2/tls/tlsv1_cred.c" "src/wpa2/tls/tlsv1_common.c"
"src/wpa2/tls/tlsv1_record.c" "src/wpa2/tls/tlsv1_cred.c"
"src/wpa2/tls/tlsv1_server.c" "src/wpa2/tls/tlsv1_record.c"
"src/wpa2/tls/tlsv1_server_read.c" "src/wpa2/tls/tlsv1_server.c"
"src/wpa2/tls/tlsv1_server_write.c" "src/wpa2/tls/tlsv1_server_read.c"
"src/wpa2/tls/x509v3.c" "src/wpa2/tls/tlsv1_server_write.c"
"src/wpa2/utils/base64.c" "src/wpa2/tls/x509v3.c"
"src/wpa2/utils/ext_password.c" "src/wpa2/utils/base64.c"
"src/wps/eap_common.c" "src/wpa2/utils/ext_password.c"
"src/wps/uuid.c" "src/wps/eap_common.c"
"src/wps/wps.c" "src/wps/uuid.c"
"src/wps/wps_attr_build.c" "src/wps/wps.c"
"src/wps/wps_attr_parse.c" "src/wps/wps_attr_build.c"
"src/wps/wps_attr_process.c" "src/wps/wps_attr_parse.c"
"src/wps/wps_common.c" "src/wps/wps_attr_process.c"
"src/wps/wps_dev_attr.c" "src/wps/wps_common.c"
"src/wps/wps_enrollee.c" "src/wps/wps_dev_attr.c"
"src/wps/wps_registrar.c" "src/wps/wps_enrollee.c"
"src/wps/wps_validate.c") "src/wps/wps_registrar.c"
"src/wps/wps_validate.c")
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include port/include INCLUDE_DIRS include port/include

View file

@ -1,5 +1,8 @@
idf_build_get_property(target IDF_TARGET) idf_build_get_property(target IDF_TARGET)
idf_component_register(SRCS "eri.c" "trax.c" "debug_helpers.c" "debug_helpers_asm.S" idf_component_register(SRCS "debug_helpers.c"
"debug_helpers_asm.S"
"eri.c"
"trax.c"
INCLUDE_DIRS include ${target}/include INCLUDE_DIRS include ${target}/include
LDFRAGMENTS linker.lf LDFRAGMENTS linker.lf
PRIV_REQUIRES soc) PRIV_REQUIRES soc)