update cmake build to work with esp32s2 and rp2040

This commit is contained in:
hathach
2021-01-22 14:58:32 +07:00
parent 67a9cdc35b
commit b6e9c42b02
8 changed files with 38 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.5)
# Add example src and bsp directories
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2/boards" "${TOP}/hw/bsp/esp32s2/components")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(SUPPORTED_TARGETS esp32s2)

View File

@@ -1,2 +0,0 @@
# Cross Compiler for ESP32
CROSS_COMPILE = xtensa-esp32s2-elf-