From: Peter Tyser Date: Thu, 28 Aug 2008 10:38:44 -0500 Subject: [U-Boot] [PATCH 06/12] autoscript: Move conditional compilation to Makefile In-Reply-To: <1219937213.11226.108.camel@localhost.localdomain> References: <20080828102643.GD12371@game.jcrosoft.org> <1219919251-3644-1-git-send-email-plagnioj@jcrosoft.com> <1219919251-3644-2-git-send-email-plagnioj@jcrosoft.com> <1219919251-3644-3-git-send-email-plagnioj@jcrosoft.com> <1219919251-3644-4-git-send-email-plagnioj@jcrosoft.com> <1219919251-3644-5-git-send-email-plagnioj@jcrosoft.com> <1219919251-3644-6-git-send-email-plagnioj@jcrosoft.com> <1219937213.11226.108.camel@localhost.localdomain> Message-ID: <1219937924.11226.118.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jean-Christophe, (Sorry for misspelling your name in the last email;) On Thu, 2008-08-28 at 10:26 -0500, Peter Tyser wrote: > Hi Jean-Chritophe, > > On Thu, 2008-08-28 at 12:27 +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/Makefile | 3 +- > > common/{cmd_autoscript.c => autoscript.c} | 44 -------- > > common/cmd_autoscript.c | 158 ----------------------------- > > 3 files changed, 2 insertions(+), 203 deletions(-) > > copy common/{cmd_autoscript.c => autoscript.c} (79%) > > > > diff --git a/common/Makefile b/common/Makefile > > index 0c8ef5b..92d7a9e 100644 > > --- a/common/Makefile > > +++ b/common/Makefile > > @@ -31,7 +31,8 @@ COBJS-y += main.o > > COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o > > COBJS-y += circbuf.o > > COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o > > -COBJS-y += cmd_autoscript.o > > +COBJS-$(CONFIG_AUTOSCRIPT)$(CONFIG_CMD_AUTOSCRIPT) += autoscript.o > > Will we run into problems when both CONFIG_AUTOSCRIPT and > CONFIG_CMD_AUTOSCRIPT are defined? Adding the following should account > for that situation: > > COBJS-y += $(COBJS-yy) > > > +COBJS-$(CONFIG_CMD_AUTOSCRIPT) += cmd_autoscript.o > > COBJS-$(CONFIG_CMD_BDI) += cmd_bdinfo.o > > COBJS-$(CONFIG_CMD_BEDBUG) += cmd_bedbug.o > > COBJS-$(CONFIG_CMD_BMP) += cmd_bmp.o > Forget that last comment - it looks like you made the fix later in the patch series ([PATCH 08/12] common/Makefile: order by functionality). It might be good to move the addition of "COBJS-y += $(COBJS-yy)" to [PATCH 06/12] so that compiles don't break between those 2 commits when bisecting in the future. Sorry for the noise. Best, Peter