bootfiles: change use of variables to use flags to avoid recompilation

when changing these values e.g. in distro.conf or machine.conf we force
a recompilation of everything. Change to use use flags instead to avoid this
 behaviour.