On Mon, 05 Sep 2011 01:15:35 +0200 Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
i would remove the monster if and check for a compiler flag DEFAULT_PROGRAMMER or so first. if that's not defined, look for internal and dummy as fall-back then and just bail out with an error similar to the one below (but with mentioning DEFAULT_PROGRAMMER).
That would make test compiles/runs with various programmers enabled/disabled a real nightmare for me. And yes, I test all compilation/run of all 2048 possible CONFIG_* combinations from time to time. After all, I don't want to ship a potentially broken flashrom.
why? when you set the enabled programmers with a script you could also set the default programmer to one of them programmatically. will look at the second revision later.