A man found guilty of the bashing murder of a toddler after moving in with the boy’s mother has been jailed for 32 years.