From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Wed, 09 Jul 2014 10:42:30 +0900 Subject: [U-Boot] [PATCH] build: define CPU only when arch/${ARCH}/cpu/${CPU} exists In-Reply-To: References: <1403615452-5553-1-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140709104229.B0B5.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Mon, 7 Jul 2014 16:44:36 -0600 Simon Glass wrote: > > But see question below. > > diff --git a/mkconfig b/mkconfig > > index 2bf5897..401f262 100755 > > --- a/mkconfig > > +++ b/mkconfig > > @@ -55,6 +55,11 @@ CONFIG_NAME="${7%_config}" > > arch="$2" > > cpu=`echo $3 | awk 'BEGIN {FS = ":"} ; {print $1}'` > > spl_cpu=`echo $3 | awk 'BEGIN {FS = ":"} ; {print $2}'` > > + > > +if [ "$cpu" = "-" ] ; then > > + cpu= > > +fi > > + > > if [ "$6" = "" ] ; then > > board= > > elif [ "$6" = "-" ] ; then > > @@ -114,10 +119,10 @@ fi > > > > rm -f asm/arch > > > > -if [ -z "${soc}" ] ; then > > - ln -s ${LNPREFIX}arch-${cpu} asm/arch > > -else > > +if [ "${soc}" ] ; then > > Will this work OK in dash? (or non-bash) > Yes. I am dash-user. :-) This is working on dash too. Best Regards Masahiro Yamada