diff --git a/source/scripts/board_interface.py b/source/scripts/board_interface.py index 3fc6c0e..a260ea8 100755 --- a/source/scripts/board_interface.py +++ b/source/scripts/board_interface.py @@ -16,7 +16,8 @@ def parse_board_file(boardfile): if match("^.*struct driver.*$", line): line = sub("^.*struct driver", "", line).strip() line = sub(" .*$","",line).strip() - ret.append(line) + if not line in ret: + ret.append(line) return ret def create_board_interface(device_list, outfile):