Commit d54c423
target: accept any CONFIG_*=<value> inline fragment
The old regex only matched =y/=m/=n and "is not set" lines. That misses
a lot of real config: =1 and =0 are common for bools (kselftest's
tools/testing/selftests/bpf/config uses =1 for
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC), and fragments can also include hex,
string, and int symbols.
tuxmake was rejecting those as "Unsupported kconfig fragment" even
though they work fine once they hit olddefconfig.
Let kconfig handle validation. merge_config.sh and olddefconfig already
know each symbol's type and print a reasonable error when the value is
wrong, so there's no point replicating that here. Keep the two shapes
("CONFIG_X=..." and "# CONFIG_X is not set") so pure junk still gets
caught.
Signed-off-by: Ben Copeland <ben.copeland@linaro.org>1 parent b4f4c21 commit d54c423
2 files changed
Lines changed: 50 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
214 | 247 | | |
215 | 248 | | |
216 | 249 | | |
| |||
247 | 280 | | |
248 | 281 | | |
249 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
250 | 295 | | |
251 | 296 | | |
252 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
272 | 267 | | |
273 | 268 | | |
274 | 269 | | |
| |||
0 commit comments