Aurelien Larcher
2021-02-06 0d28f03bb2895b5e475f6c187328a46946742497
userland-component: handle change of mk_bits for inconsistent declarations
1 files modified
4 ■■■ changed files
tools/userland-component 4 ●●● patch | view | raw | blame | history
tools/userland-component
@@ -119,7 +119,6 @@
                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())
@@ -127,6 +126,9 @@
                        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")]