From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 28 Nov 2013 10:50:36 +0100 Subject: [U-Boot] [PATCH v3 0/1] nitrogen6x: Move setup_sata to common part In-Reply-To: <1385629672-6909-1-git-send-email-giuseppe.pagano@seco.com> References: <1385629672-6909-1-git-send-email-giuseppe.pagano@seco.com> Message-ID: <529711EC.7030905@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Giuseppe, On 28/11/2013 10:07, Giuseppe Pagano wrote: > Move setup_sata function definition from platform file nitrogen6x.c > to arch/arm/imx-common/sata.c to avoid code duplication. > > Signed-off-by: Giuseppe Pagano > CC: Stefano Babic > CC: Fabio Estevam > CC: Eric Nelson > --- > > diff --git a/arch/arm/imx-common/Makefile b/arch/arm/imx-common/Makefile > index 727a052..2656f2d 100644 > --- a/arch/arm/imx-common/Makefile > +++ b/arch/arm/imx-common/Makefile > @@ -21,6 +21,9 @@ endif > ifeq ($(SOC),$(filter $(SOC),mx6 mxs)) > COBJS-y += misc.o > endif > +ifeq ($(SOC),$(filter $(SOC),mx6)) > +COBJS-$(CONFIG_CMD_SATA) += sata.o > +endif COBJS- was replaced by obj- Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================