esp32-idf init
This commit is contained in:
parent
b13d2798a9
commit
e9ffb4a032
4 changed files with 45 additions and 0 deletions
8
CMakeLists.txt
Normal file
8
CMakeLists.txt
Normal file
|
@ -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)
|
2
main/CMakeLists.txt
Normal file
2
main/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
idf_component_register(SRCS "main.c"
|
||||||
|
INCLUDE_DIRS ".")
|
6
main/main.c
Normal file
6
main/main.c
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
void app_main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
29
sdkconfig.defaults
Normal file
29
sdkconfig.defaults
Normal file
|
@ -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
|
Loading…
Reference in a new issue