build: create the CODENAME_MAJOR and CODENAME_MINOR variables and use them.