Skip to contentSkip to conversation

Cleanup / update QEMU related checks

RFC PATCH In review Tom Rini 7 participants 10 messages Mar 1, 2010 – Mar 2, 2010

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

RFC PATCH 1/1 Cleanup / update QEMU related checks

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.

classes/base.bbclass +3 -4
index 990e75e..eeff262 100644
@@ -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

classes/sanity.bbclass +0 -0
index b66c9a9..a78e8ed 100644
@@ -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"):

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Tom Rini

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 :)

Quoted 1 line
Quoted 67 lines
classes/base.bbclass +3 -4
index 990e75e..eeff262 100644
@@ -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'

classes/base.bbclass +1 -1
 	for gcc3 in gcc3_versions.split():
 		if check_app_exists(gcc3, data):
 			return gcc3
-	
+
 	return False
 
 # Patch handling
classes/sanity.bbclass +0 -0
index b66c9a9..a78e8ed 100644
@@ -83,8 +83,10 @@ def check_sanity(e):
 
 	required_utilities = "patch help2man diffstat texi2html makeinfo cvs

svn bzip2 tar gzip gawk md5sum"

classes/sanity.bbclass +4 -2
-	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 ' '")

classes/sanity.bbclass +0 -2
@@ -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"

classes/sanity.bbclass +1 -0
+			required_utilities += "qemu"
 
 		try:
 			if os.path.exists("/proc/sys/vm/mmap_min_addr"):
Signature · 8 lines
-- 
Tom Rini <[email protected]>
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Acked-by
#2 lore raw
Quoted 13 lines · Denys Dmytriyenko
Quoted 11 lines · Tom Rini

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.

Quoted 9 lines

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 :)

Quoted 1 line

Looks sane to me.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw
In reply to Tom Rini

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

#4 lore raw

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisał(a):

Quoted 6 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

I think that we need to upgrade to qemu 0.12.x and kill all previous versions.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#5 lore raw

В сообщении от Вторник 02 марта 2010 12:42:50 автор Marcin Juszkiewicz написал:

Quoted 10 lines

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisał(a):

Quoted 6 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

I think that we need to upgrade to qemu 0.12.x and kill all previous
versions.

IMHO, adding 0.12.x, killing 0.9.x and leaving 0.10.x for some transition time is a bit better. If no one is in a hurry for that, I'll try to cook up some patches this week.

#6 lore raw
Quoted 10 lines · Roman Khimov

В сообщении от Вторник 02 марта 2010 12:42:50 автор Marcin Juszkiewicz написал:

Quoted 8 lines

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisa??(a):

Quoted 6 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

Quoted 6 lines
Quoted 2 lines

I think that we need to upgrade to qemu 0.12.x and kill all previous
versions.

IMHO, adding 0.12.x, killing 0.9.x and leaving 0.10.x for some transition time is a bit better. If no one is in a hurry for that, I'll try to cook up some patches this week.

Thanks a lot! As we've been talking about killing 0.9.x for some time now w/o much progress...

Signature · 1 line
Denys
#7 lore raw
In reply to Marcin Juszkiewicz
Quoted 9 lines · Marcin Juszkiewicz

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisał(a):

Quoted 6 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

I think that we need to upgrade to qemu 0.12.x and kill all previous versions.

Does .12 still need gcc 3.4.x ? or can it use gcc 4.x

Quoted 13 lines

Regards,

Signature · 10 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
#8 lore raw

В сообщении от Вторник 02 марта 2010 21:28:29 автор Khem Raj написал:

Quoted 5 lines · Marcin Juszkiewicz
Quoted 4 lines

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisał(a):

Quoted 3 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

I think that we need to upgrade to qemu 0.12.x and kill all previous versions.

Does .12 still need gcc 3.4.x ? or can it use gcc 4.x

0.10.x already builds with gcc 4.x.

Signature · 3 lines
 http://roman.khimov.ru
mailto: [email protected]
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
#9 lore raw
Quoted 10 lines · Roman I Khimov

В сообщении от Вторник 02 марта 2010 21:28:29 автор Khem Raj написал:

Quoted 9 lines · Marcin Juszkiewicz
Quoted 8 lines

Dnia wtorek, 2 marca 2010 o 10:36:04 Roman Khimov napisał(a):

Quoted 6 lines

В сообщении от Вторник 02 марта 2010 00:18:28 автор Tom Rini написал:

Quoted 1 line

(aside: When can qemu-0.9.x die?).

IMHO, it just about time to kill it, almost a year past since 0.10.x introduction and with all those changes 0.9.x is not working properly for locale generation anyway.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I think that we need to upgrade to qemu 0.12.x and kill all previous versions.

Does .12 still need gcc 3.4.x ? or can it use gcc 4.x

0.10.x already builds with gcc 4.x.

thx for info. last time I build .11 with gcc 4.4 it poo poo'ed on me so I thougt it still needs 3.4

Quoted 12 lines
Signature · 11 lines
-- 
 http://roman.khimov.ru
mailto: [email protected]
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel