From e9ffb4a03231cd2ce6e4b46fc34e71da61464005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Sun, 17 Sep 2023 15:12:55 +0200 Subject: [PATCH] esp32-idf init --- CMakeLists.txt | 8 ++++++++ main/CMakeLists.txt | 2 ++ main/main.c | 6 ++++++ sdkconfig.defaults | 29 +++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 main/CMakeLists.txt create mode 100644 main/main.c create mode 100644 sdkconfig.defaults diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..664d458 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +# For more information about build system see +# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html +# The following five lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.16) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(main) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..cf2c455 --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "main.c" + INCLUDE_DIRS ".") diff --git a/main/main.c b/main/main.c new file mode 100644 index 0000000..7b66f33 --- /dev/null +++ b/main/main.c @@ -0,0 +1,6 @@ +#include + +void app_main(void) +{ + +} diff --git a/sdkconfig.defaults b/sdkconfig.defaults new file mode 100644 index 0000000..a1bf9bc --- /dev/null +++ b/sdkconfig.defaults @@ -0,0 +1,29 @@ +CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n + +CONFIG_PARTITION_TABLE_OFFSET=0xf000 +CONFIG_SECURE_SIGNED_ON_BOOT=y +CONFIG_SECURE_SIGNED_ON_UPDATE=y +CONFIG_SECURE_SIGNED_APPS=y +CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME=y +CONFIG_SECURE_BOOT=y +CONFIG_SECURE_BOOT_V1_ENABLED=y +# CONFIG_SECURE_BOOTLOADER_ONE_TIME_FLASH is not set +CONFIG_SECURE_BOOTLOADER_REFLASHABLE=y +CONFIG_SECURE_BOOT_BUILD_SIGNED_BINARIES=y +CONFIG_SECURE_BOOT_SIGNING_KEY="/home/tobast/random/esp32/keys/sb_0/signing_key.pem" +CONFIG_SECURE_BOOTLOADER_KEY_ENCODING_256BIT=y +# CONFIG_SECURE_BOOTLOADER_KEY_ENCODING_192BIT is not set +CONFIG_SECURE_BOOT_INSECURE=y +# CONFIG_SECURE_FLASH_ENC_ENABLED is not set + +# +# Potentially insecure options +# +CONFIG_SECURE_BOOT_ALLOW_ROM_BASIC=y +CONFIG_SECURE_BOOT_ALLOW_JTAG=y +# CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION is not set +# end of Potentially insecure options +# end of Security features + +# Deprecated options for backward compatibility +CONFIG_SECURE_BOOT_ENABLED=y