[U-Boot-Users] error: `CFG_RTC_BUS_NUM' undeclared

Kim Phillips kim.phillips at freescale.com
Thu Mar 1 01:21:47 CET 2007


The code introduced with your patch "[PATCH] I2C: Add support for multiple I2C busses for RTC & DTT":

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commitdiff;h=0dc018ece13effc689e47479ea9ebf1c98a507f5

breaks board builds that don't define CFG_RTC_BUS_NUM but do define
CFG_CMD_DATE (such as the MPC8349EMDS):

cmd_date.c: In function `do_date':
cmd_date.c:52: error: `CFG_RTC_BUS_NUM' undeclared (first use in this function)

CFG_RTC_BUS_NUM needs to either be protected, or forced to 0 if undefined, or even enforce that all boards that define CMD_DATE also define the RTC bus.  Let me know how you want to proceed.

Kim




More information about the U-Boot mailing list