File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 10
10
def get_valid_configs (target_name ):
11
11
if target_name in TARGET_CONFIGS :
12
12
target_config = TARGET_CONFIGS [target_name ]
13
+ elif (target_name in TARGET_MAP and 'LWIP' in TARGET_MAP [target_name ].features ):
14
+ target_config = { "default_test_configuration" : "ETHERNET" , "test_configurations" : ["ETHERNET" ] }
13
15
else :
14
- if 'LWIP' in TARGET_MAP [target_name ].features :
15
- target_config = { "default_test_configuration" : "ETHERNET" , "test_configurations" : ["ETHERNET" ] }
16
- else :
17
- return {}
16
+ return {}
18
17
19
18
config_dict = {}
20
19
for attr in CONFIG_MAP :
@@ -35,11 +34,7 @@ def get_default_config(target_name):
35
34
if config_name == "NONE" :
36
35
return None
37
36
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
37
+ elif (target_name in TARGET_MAP and 'LWIP' in TARGET_MAP [target_name ].features ):
38
+ return join (CONFIG_DIR , CONFIG_MAP ["ETHERNET" ])
44
39
else :
45
40
return None
You can’t perform that action at this time.
0 commit comments