[PATCHv2 2/4] kbuild: Re-sync DTC flag logic with v4.17