From: Wolfgang Denk Date: Thu, 15 Jul 2010 23:55:11 +0200 Subject: [U-Boot] [PATCH 13/28] SPEAr : Supporting various configurations for spear3xx and spear6xx boards In-Reply-To: <1279084204-3263-14-git-send-email-vipin.kumar@st.com> References: <1279084204-3263-1-git-send-email-vipin.kumar@st.com> <1279084204-3263-2-git-send-email-vipin.kumar@st.com> <1279084204-3263-3-git-send-email-vipin.kumar@st.com> <1279084204-3263-4-git-send-email-vipin.kumar@st.com> <1279084204-3263-5-git-send-email-vipin.kumar@st.com> <1279084204-3263-6-git-send-email-vipin.kumar@st.com> <1279084204-3263-7-git-send-email-vipin.kumar@st.com> <1279084204-3263-8-git-send-email-vipin.kumar@st.com> <1279084204-3263-9-git-send-email-vipin.kumar@st.com> <1279084204-3263-10-git-send-email-vipin.kumar@st.com> <1279084204-3263-11-git-send-email-vipin.kumar@st.com> <1279084204-3263-12-git-send-email-vipin.kumar@st.com> <1279084204-3263-13-git-send-email-vipin.kumar@st.com> <1279084204-3263-14-git-send-email-vipin.kumar@st.com> Message-ID: <20100715215512.00B93153A7E@gemini.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 Dear Vipin KUMAR, In message <1279084204-3263-14-git-send-email-vipin.kumar@st.com> you wrote: > From: Vipin KUMAR > > spear3xx and 6xx boards can be compiled in following configurations > 1. Environment placed in NAND > 2. console on usb device > 3. console on usb device with environment placed in NAND > > Also, renaming the include/configs/spearxxx.h files to spear3xx_evb.h, > spear6xx_evb.h etc to depict evaluation board configuration. > > Signed-off-by: Vipin Kumar > --- > Makefile | 25 +++++++++++++++---- > board/spear/spear300/config.mk | 11 -------- > board/spear/spear310/config.mk | 11 -------- > board/spear/spear320/config.mk | 11 -------- > board/spear/spear600/config.mk | 11 -------- > doc/README.spear | 31 +++++++++++++++++------- > include/configs/{spear3xx.h => spear3xx_evb.h} | 10 +++++++ > include/configs/{spear6xx.h => spear6xx_evb.h} | 10 +++++++ > 8 files changed, 62 insertions(+), 58 deletions(-) > rename include/configs/{spear3xx.h => spear3xx_evb.h} (95%) > rename include/configs/{spear6xx.h => spear6xx_evb.h} (88%) > > diff --git a/Makefile b/Makefile > index 1d87f37..e264c50 100644 > --- a/Makefile > +++ b/Makefile > @@ -2088,12 +2088,27 @@ omap730p2_cs3boot_config : unconfig > @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap > > spear300_config \ > +spear300_nand_config \ > +spear300_usbtty_config \ > +spear300_usbtty_nand_config \ > spear310_config \ > -spear320_config : unconfig > - @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear > - > -spear600_config : unconfig > - @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear > +spear310_nand_config \ > +spear310_usbtty_config \ > +spear310_usbtty_nand_config \ > +spear320_config \ > +spear320_nand_config \ > +spear320_usbtty_config \ > +spear320_usbtty_nand_config : unconfig > + @$(MKCONFIG) -n $@ -t $@ spear3xx_evb arm arm926ejs $(@:_config=) spear spear > + > +spear600_config \ > +spear600_nand_config \ > +spear600_usbtty_config \ > +spear600_usbtty_nand_config : unconfig > + @$(MKCONFIG) -n $@ -t $@ spear6xx_evb arm arm926ejs $(@:_config=) spear spear > + > +suen3_config: unconfig > + @$(MKCONFIG) $(@:_config=) arm arm926ejs km_arm keymile kirkwood NAK. I don't want to have such stuff in the Makefile any more. Please try to find a way how to do this using boards.cfg instead. [I know that tis is non-trivial; you may want to talk to Detlev about this - he was thinking about the same issue, but I don;t know if he came to any conclusions.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I have the simplest tastes. I am always satisfied with the best. -- Oscar Wilde