Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH, RFC] Cleanup / update QEMU related checks
Date: Mon, 01 Mar 2010 17:22:52 -0500	[thread overview]
Message-ID: <20100301222252.GE15391@denix.org> (raw)
In-Reply-To: <1267478308.4739.245.camel@trini-m4400>

On Mon, Mar 01, 2010 at 02:18:28PM -0700, Tom Rini wrote:
> First, we should be performing qemu-native related checks not on ARM,
> but on ENABLE_BINARY_LOCALE_GENERATION (for both the ARM but no
> generation and not ARM but generation) cases.  This clarifies what we do
> in the first sub-check (aside: When can qemu-0.9.x die?).  This changes
> the assume provided check to make sure that at least 'qemu' exists
> (afaict this will exist for distribution packages as well as from-source
> ones where we might not have qemu-arm, if the developer isn't doing arm)
> using the standard check.  Finally (how I wrote it, not how it's in the
> patch), correct (grammar and content) the comment about what GCC
> versions are allowed.  My fault initially for not noticing the gcc
> 3.3.x / 3.2.x stuff in the list.

Heh, I have a local similar change to avoid unnecessary QEMU sanity check, 
when not doing binary locale generation. I wanted to push it later, but your 
fix looks better :)

> Signed-off-by: Tom Rini <tom_rini@mentor.com>

Acked-by: Denys Dmytriyenko <denis@denix.org>


> diff --git a/classes/base.bbclass b/classes/base.bbclass
> index 990e75e..eeff262 100644
> --- a/classes/base.bbclass
> +++ b/classes/base.bbclass
> @@ -1333,16 +1333,15 @@ def check_app_exists(app, d):
>  	return len(which(path, app)) != 0
>  
>  def check_gcc3(data):
> -	# Primarly used by qemu to make sure we have a workable gcc-3.4.x.
> -	# Start by checking for the program name as we build it, was not
> -	# all host-provided gcc-3.4's will work.
> -
> +	# Primarly used by qemu to make sure we have a workable gcc-3.x.
> +	# Start by checking for the program name as we build it as there
> +	# are some distribtuion provided gcc-3.x's that will not work.
>  	gcc3_versions = 'gcc-3.4.6 gcc-3.4.4 gcc34 gcc-3.4 gcc-3.4.7 gcc-3.3
> gcc33 gcc-3.3.6 gcc-3.2 gcc32'
>  
>  	for gcc3 in gcc3_versions.split():
>  		if check_app_exists(gcc3, data):
>  			return gcc3
> -	
> +
>  	return False
>  
>  # Patch handling
> diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
> index b66c9a9..a78e8ed 100644
> --- a/classes/sanity.bbclass
> +++ b/classes/sanity.bbclass
> @@ -83,8 +83,10 @@ def check_sanity(e):
>  
>  	required_utilities = "patch help2man diffstat texi2html makeinfo cvs
> svn bzip2 tar gzip gawk md5sum"
>  
> -	if data.getVar('TARGET_ARCH', e.data, True) == "arm":
> -		# qemu-native needs gcc 3.x
> +	# If we'll be running qemu, perform some sanity checks
> +	if data.getVar('ENABLE_BINARY_LOCALE_GENERATION', e.data, True):
> +		# Some versions of qemu-native needs gcc 3.x.  Do a special
> +		# check here to allow for host 'gcc' is 3.x.
>  		if "qemu-native" not in assume_provided and "gcc3-native" in
> assume_provided:
>  			gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version |
> head -n 1 | cut -f 3 -d ' '")
>  
> @@ -93,8 +95,7 @@ def check_sanity(e):
>  				missing = missing + "gcc-3.x (needed for qemu-native),"
>  
>  		if "qemu-native" in assume_provided:
> -			if not check_app_exists("qemu-arm", e.data):
> -				messages = messages + "qemu-native was in ASSUME_PROVIDED but the
> QEMU binaries (qemu-arm) can't be found in PATH"
> +			required_utilities += "qemu"
>  
>  		try:
>  			if os.path.exists("/proc/sys/vm/mmap_min_addr"):
> 
> 
> -- 
> Tom Rini <tom_rini@mentor.com>
> Mentor Graphics Corporation
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



  reply	other threads:[~2010-03-01 22:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-01 21:18 [PATCH, RFC] Cleanup / update QEMU related checks Tom Rini
2010-03-01 22:22 ` Denys Dmytriyenko [this message]
2010-03-01 23:57   ` Chris Larson
2010-03-02  9:36 ` Roman Khimov
2010-03-02  9:42   ` Marcin Juszkiewicz
2010-03-02  9:50     ` Roman Khimov
2010-03-02 16:32       ` Denys Dmytriyenko
2010-03-02 18:28     ` Khem Raj
2010-03-02 19:11       ` Roman I Khimov
2010-03-02 19:36         ` Khem Raj

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=20100301222252.GE15391@denix.org \
    --to=denis@denix.org \
    --cc=openembedded-devel@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