Improve Makefile checking of data/eeprom sizes

Add maximum_eeprom_size for all boards.  Add test cases for data and
eeprom size.  Fix some problems with makefile.