| | |
| | | #!/usr/bin/python3.5 |
| | | #!/usr/bin/python3.9 |
| | | |
| | | # |
| | | # This file and its contents are supplied under the terms of the |
| | |
| | | new_targets[t] = u |
| | | break |
| | | if not found: |
| | | # Some Python/Perl makefiles actually use NO_ARCH target with MK_BITS=32 |
| | | if mk_bits == '32': |
| | | # Some Python/Perl makefiles actually use NO_ARCH target with MK_BITS=32, or BITS was not set |
| | | if mk_bits == '32' or mk_bits == '64': |
| | | ok_bits = ( 'NO_ARCH', '64', '32_and_64', '64_and_32' ) |
| | | for b in ok_bits: |
| | | if u.value() == MK.target_value(t, b): |
| | | if not new_mk_bits: |
| | | print("001: Changing make bits from '32' to '"+b+"'") |
| | | new_mk_bits = b |
| | | elif b != new_mk_bits: |
| | | raise ValueError("001: Inconsistent target '"+t+"': "+u.value()) |
| | |
| | | break |
| | | else: |
| | | raise ValueError("001: Unknown target '"+t+"' bitness: "+u.value()) |
| | | if new_mk_bits: |
| | | print("001: Changing make bits from "+mk_bits+" to '"+new_mk_bits+"'") |
| | | mk_bits = new_mk_bits |
| | | # Collect items |
| | | rem_lines = set() |
| | | rem_includes = [ MK.makefile_path("prep"), MK.makefile_path("ips")] |