From 40122200d153e0eb9fe7150839560b6357659c55 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 5 Feb 2025 21:51:02 +0800 Subject: [PATCH] chore: add more header path Signed-off-by: sakumisu <1203593632@qq.com> --- SConscript | 8 ++++++-- cherryusb.cmake | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/SConscript b/SConscript index 98b148d8..e02dd527 100644 --- a/SConscript +++ b/SConscript @@ -1,18 +1,23 @@ from building import * cwd = GetCurrentDir() -path = [cwd + '/common'] +path = [cwd] +path += [cwd + '/common'] path += [cwd + '/core'] +path += [cwd + '/class/hub'] path += [cwd + '/class/cdc'] path += [cwd + '/class/msc'] path += [cwd + '/class/hid'] path += [cwd + '/class/audio'] path += [cwd + '/class/video'] path += [cwd + '/class/wireless'] +path += [cwd + '/class/midi'] +path += [cwd + '/class/adb'] path += [cwd + '/class/dfu'] path += [cwd + '/class/midi'] path += [cwd + '/class/vendor/net'] path += [cwd + '/class/vendor/serial'] +path += [cwd + '/class/vendor/wifi'] src = [] LIBS = [] @@ -147,7 +152,6 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']): # USB HOST if GetDepend(['PKG_CHERRYUSB_HOST']): - path += [cwd + '/class/hub'] src += Glob('core/usbh_core.c') src += Glob('class/hub/usbh_hub.c') src += Glob('osal/usb_osal_rtthread.c') diff --git a/cherryusb.cmake b/cherryusb.cmake index 7d7255b9..0fe22922 100644 --- a/cherryusb.cmake +++ b/cherryusb.cmake @@ -26,6 +26,7 @@ # set(CONFIG_CHERRYUSB_HOST_HCD "ehci_xxx") list(APPEND cherryusb_incs +${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/common ${CMAKE_CURRENT_LIST_DIR}/core ${CMAKE_CURRENT_LIST_DIR}/class/hub @@ -37,6 +38,7 @@ ${CMAKE_CURRENT_LIST_DIR}/class/video ${CMAKE_CURRENT_LIST_DIR}/class/wireless ${CMAKE_CURRENT_LIST_DIR}/class/midi ${CMAKE_CURRENT_LIST_DIR}/class/adb +${CMAKE_CURRENT_LIST_DIR}/class/dfu ${CMAKE_CURRENT_LIST_DIR}/class/vendor/net ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial ${CMAKE_CURRENT_LIST_DIR}/class/vendor/wifi