mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-21 06:23:35 +08:00
[bsp] Fix HC32 and HT32 variant builds
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user