fix double devices in board interface

This commit is contained in:
tkl 2016-08-10 12:22:11 +02:00
parent 3063445932
commit b0fd6c7542

View File

@ -16,7 +16,8 @@ def parse_board_file(boardfile):
if match("^.*struct driver.*$", line): if match("^.*struct driver.*$", line):
line = sub("^.*struct driver", "", line).strip() line = sub("^.*struct driver", "", line).strip()
line = sub(" .*$","",line).strip() line = sub(" .*$","",line).strip()
ret.append(line) if not line in ret:
ret.append(line)
return ret return ret
def create_board_interface(device_list, outfile): def create_board_interface(device_list, outfile):