diff options
| author | hathach <[email protected]> | 2021-01-22 14:58:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-01-22 14:58:32 +0700 |
| commit | b6e9c42b0217124aaf47e1d65e4eac39c3d3d681 (patch) | |
| tree | 4dec4c9c6500f2b315a024076018a056d9756cc4 /hw | |
| parent | 67a9cdc35baf3767bd24c78c68e0b969d2d7c191 (diff) | |
update cmake build to work with esp32s2 and rp2040
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/esp32s2/family.cmake | 6 | ||||
| -rw-r--r-- | hw/bsp/esp32s2/family.mk | 2 | ||||
| -rw-r--r-- | hw/bsp/rp2040/boards/raspberry_pi_pico/board_raspberry_pi_pico.c (renamed from hw/bsp/raspberry_pi_pico/board_raspberry_pi_pico.c) | 0 | ||||
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 3 | ||||
| -rw-r--r-- | hw/bsp/rp2040/family_extra.cmake | 1 |
5 files changed, 10 insertions, 2 deletions
diff --git a/hw/bsp/esp32s2/family.cmake b/hw/bsp/esp32s2/family.cmake new file mode 100644 index 000000000..c19221b14 --- /dev/null +++ b/hw/bsp/esp32s2/family.cmake @@ -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) diff --git a/hw/bsp/esp32s2/family.mk b/hw/bsp/esp32s2/family.mk deleted file mode 100644 index 167ef6226..000000000 --- a/hw/bsp/esp32s2/family.mk +++ /dev/null @@ -1,2 +0,0 @@ -# Cross Compiler for ESP32 -CROSS_COMPILE = xtensa-esp32s2-elf- diff --git a/hw/bsp/raspberry_pi_pico/board_raspberry_pi_pico.c b/hw/bsp/rp2040/boards/raspberry_pi_pico/board_raspberry_pi_pico.c index efdb54733..efdb54733 100644 --- a/hw/bsp/raspberry_pi_pico/board_raspberry_pi_pico.c +++ b/hw/bsp/rp2040/boards/raspberry_pi_pico/board_raspberry_pi_pico.c diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake new file mode 100644 index 000000000..8a3882cc0 --- /dev/null +++ b/hw/bsp/rp2040/family.cmake @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.12) +set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk) +include(${PICO_SDK_PATH}/pico_sdk_init.cmake) diff --git a/hw/bsp/rp2040/family_extra.cmake b/hw/bsp/rp2040/family_extra.cmake new file mode 100644 index 000000000..661845844 --- /dev/null +++ b/hw/bsp/rp2040/family_extra.cmake @@ -0,0 +1 @@ +pico_sdk_init() |
