Lines Matching +full:require +full:- +full:main +full:- +full:filename
11 # this script in the mbedtls-2.28 branch must remain compatible with
16 ## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
33 # pylint: disable=too-few-public-methods
173 # * Options that require additional build dependencies or unusual hardware.
180 #pylint: disable=line-too-long
217 configurable function pointers that default to the built-in function.
222 Exclude alternative implementations of library functions since they require
231 # Similar to non-platform xxx_ALT, requires platform_alt.h
249 # The baremetal configuration excludes options that require a library or
255 #pylint: disable=line-too-long
260 'MBEDTLS_NET_C', # requires POSIX-like networking
283 # No OS-provided entropy source
317 """Modify an adapter to disable non-crypto symbols.
365 def __init__(self, filename=None): argument
367 if filename is None:
370 filename = candidate
376 self.filename = filename
378 with open(filename, 'r', encoding='utf-8') as file:
434 if middle[-1] not in '\t ':
452 def write(self, filename=None): argument
455 If filename is specified, write to this file instead.
457 if filename is None:
458 filename = self.filename
459 with open(filename, 'w', encoding='utf-8') as output:
463 def main(): function
468 parser.add_argument('--file', '-f',
472 parser.add_argument('--force', '-o',
476 parser.add_argument('--write', '-w', metavar='FILE',
493 found, unless --force is passed.
498 parser_set_all = subparsers.add_parser('set-all',
508 parser_unset_all = subparsers.add_parser('unset-all',
518 """Like full, but exclude features that require platform
519 features such as file input-output.""")
529 """Uncomment most non-deprecated features.
559 .format(args.symbol, config.filename))
562 elif args.command == 'set-all':
566 elif args.command == 'unset-all':
573 # Import modules only used by main only if main is defined and called.
574 # pylint: disable=wrong-import-position
577 sys.exit(main())