chore(cmake): add CONFIG_CHERRYUSB check, update custom file cmake

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-05-09 18:43:26 +08:00
parent 19f7548b60
commit 8393ed986a
2 changed files with 26 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.15)
if(CONFIG_CHERRYUSB)
if(BL_SDK_BASE)
set(CONFIG_CHERRYUSB_DEVICE_CDC_ACM 1)
set(CONFIG_CHERRYUSB_DEVICE_HID 1)
@@ -172,3 +174,5 @@ elseif(HPM_SDK_BASE)
sdk_inc(${cherryusb_incs})
sdk_src(${cherryusb_srcs})
endif()
endif()