[bsp] Fix HC32 and HT32 variant builds

This commit is contained in:
CYFS 2026-07-22 10:09:38 +08:00 committed by Rbb666
parent 55cf9cd3fa
commit bb85278748
3 changed files with 8 additions and 7 deletions

View File

@ -30,12 +30,13 @@ if GetDepend(['BSP_USING_I2C']):
if GetDepend(['BSP_USING_ETH', 'RT_USING_LWIP']):
src += ['test_eth.c']
#lwIP: HTTP server
lwiphttp_src = []
lwiphttp_path = os.path.join(RTT_ROOT, 'components', 'net', 'lwip', 'lwip-2.1.2', 'src', 'apps', 'http')
VariantDir('lwip_http', lwiphttp_path, duplicate=0)
lwiphttp_src = Split("""
../../../components/net/lwip/lwip-2.1.2/src/apps/http/altcp_proxyconnect.c
../../../components/net/lwip/lwip-2.1.2/src/apps/http/fs.c
../../../components/net/lwip/lwip-2.1.2/src/apps/http/http_client.c
../../../components/net/lwip/lwip-2.1.2/src/apps/http/httpd.c
lwip_http/altcp_proxyconnect.c
lwip_http/fs.c
lwip_http/http_client.c
lwip_http/httpd.c
""")
src += lwiphttp_src

View File

@ -11,7 +11,7 @@ tools_paths = [
sys.path.extend(tools_paths)
from sdk_dist import get_source
source_file_path = os.path.join(os.getcwd(), 'Source_file')
source_file_path = os.path.join(GetCurrentDir(), 'Source_file')
base_path = 'library/HT32F1xxxx_Driver/src/'
system_path = 'library/Device/Holtek/HT32F1xxxx/Source/'
source_path = []

View File

@ -11,7 +11,7 @@ tools_paths = [
sys.path.extend(tools_paths)
from sdk_dist import get_source
source_file_path = os.path.join(os.getcwd(), 'Source_file')
source_file_path = os.path.join(GetCurrentDir(), 'Source_file')
base_path = 'library/HT32F5xxxx_Driver/src/'
system_path = 'library/Device/Holtek/HT32F5xxxx/Source/'
source_path = []