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

Robert P. J. Day rpjday at crashcourse.ca
Wed Mar 29 13:45:34 UTC 2017


  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
========================================================================



More information about the U-Boot mailing list