From: Kim Phillips Date: Wed, 28 Feb 2007 18:21:47 -0600 Subject: [U-Boot-Users] error: `CFG_RTC_BUS_NUM' undeclared Message-ID: <20070228182147.7a4d326c.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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