File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -3263,6 +3263,20 @@ def _parse_props(self, node):
3263
3263
else :
3264
3264
self ._parse_error ("unrecognized option" )
3265
3265
3266
+ elif t0 is _T_MODULES :
3267
+ # 'modules' formerly was 'option modules'. See above for why
3268
+ # and when it is ignored. It was changed in
3269
+ # linux commit 6dd85ff178cd76851e2184b13e545f5a88d1be30.
3270
+ if node .item is not self .modules :
3271
+ self ._warn ("the 'modules' property is not supported. Let "
3272
+ "me know if this is a problem for you, as it "
3273
+ "wouldn't be that hard to implement. Note that "
3274
+ "modules are supported -- Kconfiglib just "
3275
+ "assumes the symbol name MODULES, like older "
3276
+ "versions of the C implementation did when "
3277
+ "'modules' wasn't used." ,
3278
+ self .filename , self .linenr )
3279
+
3266
3280
elif t0 is _T_OPTIONAL :
3267
3281
if node .item .__class__ is not Choice :
3268
3282
self ._parse_error ('"optional" is only valid for choices' )
You can’t perform that action at this time.
0 commit comments