File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
from os .path import dirname , abspath , join
2
2
3
3
from tools .utils import json_file_to_dict
4
+ from tools .targets import TARGET_MAP
4
5
5
6
CONFIG_DIR = dirname (abspath (__file__ ))
6
7
CONFIG_MAP = json_file_to_dict (join (CONFIG_DIR , "config_paths.json" ))
@@ -10,7 +11,10 @@ def get_valid_configs(target_name):
10
11
if target_name in TARGET_CONFIGS :
11
12
target_config = TARGET_CONFIGS [target_name ]
12
13
else :
13
- return {}
14
+ if 'LWIP' in TARGET_MAP [target_name ].features :
15
+ target_config = { "default_test_configuration" : "ETHERNET" , "test_configurations" : ["ETHERNET" ] }
16
+ else :
17
+ return {}
14
18
15
19
config_dict = {}
16
20
for attr in CONFIG_MAP :
@@ -31,5 +35,11 @@ def get_default_config(target_name):
31
35
if config_name == "NONE" :
32
36
return None
33
37
return join (CONFIG_DIR , CONFIG_MAP [config_name ])
38
+ elif target_name in TARGET_MAP :
39
+ if 'LWIP' in TARGET_MAP [target_name ].features :
40
+ config_name = "ETHERNET"
41
+ return join (CONFIG_DIR , CONFIG_MAP [config_name ])
42
+ else :
43
+ return None
34
44
else :
35
45
return None
You can’t perform that action at this time.
0 commit comments