[U-Boot] confusing error message in common/update.c

29 Mar
2017
29 Mar
'17
3:45 p.m.
at the top of that file:
#if !(defined(CONFIG_FIT) && defined(CONFIG_OF_LIBFDT)) #error "CONFIG_FIT and CONFIG_OF_LIBFDT are required for auto-update feature" #endif
#if defined(CONFIG_UPDATE_TFTP) && !defined(CONFIG_MTD_NOR_FLASH) #error "CONFIG_UPDATE_TFTP and !CONFIG_MTD_NOR_FLASH needed for legacy behaviour" #endif
i get the first #error message, it actually matches the test being done. but that second error message doesn't seem to make sense in terms of matching what is being tested; it seems to be testing two conditions, then generating an #error message saying that what seems to be true is exactly what is "needed."
am i just misreading that?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
2968
Age (days ago)
2968
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert P. J. Day