kunit_config.py (4f2c0a4acffbec01079c28f839422e64ddeff004) kunit_config.py (126901ba3499880c9ed033633817cf7493120fda)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Builds a .config from a kunitconfig.
4#
5# Copyright (C) 2019, Google LLC.
6# Author: Felix Guo <felixguoxiuping@gmail.com>
7# Author: Brendan Higgins <brendanhiggins@google.com>
8
9from dataclasses import dataclass
10import re
1# SPDX-License-Identifier: GPL-2.0
2#
3# Builds a .config from a kunitconfig.
4#
5# Copyright (C) 2019, Google LLC.
6# Author: Felix Guo <felixguoxiuping@gmail.com>
7# Author: Brendan Higgins <brendanhiggins@google.com>
8
9from dataclasses import dataclass
10import re
11from typing import Dict, Iterable, List, Set, Tuple
11from typing import Dict, Iterable, List, Tuple
12
13CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
14CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
15
16@dataclass(frozen=True)
17class KconfigEntry:
18 name: str
19 value: str

--- 89 unchanged lines hidden ---
12
13CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
14CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
15
16@dataclass(frozen=True)
17class KconfigEntry:
18 name: str
19 value: str

--- 89 unchanged lines hidden ---