From: Mike Frysinger Date: Mon, 23 May 2011 23:08:56 -0400 Subject: [U-Boot] [PATCH v2 1/3] disk/part.c: Make features optional In-Reply-To: <1306187382-26507-1-git-send-email-msm@freescale.com> References: <1306187382-26507-1-git-send-email-msm@freescale.com> Message-ID: <201105232308.56905.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, May 23, 2011 17:49:42 Matthew McClintock wrote: > --- a/common/cmd_mmc.c > +++ b/common/cmd_mmc.c > @@ -180,7 +180,9 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, > char * const argv[]) mmc_dev = mmc_get_dev(curr_device); > if (mmc_dev != NULL && > mmc_dev->type != DEV_TYPE_UNKNOWN) { > +#ifdef CONFIG_PARTITIONS > print_part(mmc_dev); > +#endif how about adding this logic to the header ? then print_part() is transparently turned into a stub for all users ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110523/1991a95f/attachment.pgp