Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Kang Kai <Kai.Kang@windriver.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: question about meta/class/qmake-base.bbclass
Date: Mon, 22 Aug 2011 19:46:25 +0100	[thread overview]
Message-ID: <201108221946.26036.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <4E522492.9050706@windriver.com>

On Monday 22 August 2011 10:42:42 Kang Kai wrote:
> When I read the file  meta/class/qmake-base.bbclass, I find that that
> are 2 lines:
>      unset QMAKESPEC || true
>      ${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile
> $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error
> calling ${OE_QMAKE_QMAKE} on $PROFILES"
> 
> I am confused that why unset QMAKESPEC first and then use it a argument
> for qmake?

It's not obvious, but think that the difference here is between $QMAKESPEC and 
${QMAKESPEC} - the first one is a reference to an environment variable, the 
second is a reference to an OE/BitBake variable. So "unset QMAKESPEC" is just 
clearing out the environment variable; ${QMAKESPEC} would still have a value.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



  reply	other threads:[~2011-08-22 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22  9:42 question about meta/class/qmake-base.bbclass Kang Kai
2011-08-22 18:46 ` Paul Eggleton [this message]
2011-08-24  1:48   ` Kang Kai
     [not found] ` <4E523DE7.8060609@selfish.org>
2011-08-24  1:47   ` Kang Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108221946.26036.paul.eggleton@linux.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=Kai.Kang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox