From 7377bcfa7701f0d9b88d5d312b40d356b0f0e018 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 3 Jan 2008 15:23:12 +0000 Subject: base and sanity bbclasses + qemu: move gcc3 availability checking into base.bbclass (from Poky) --- classes/sanity.bbclass | 8 -------- 1 file changed, 8 deletions(-) (limited to 'classes/sanity.bbclass') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index cc413b7011..9994febf0d 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -24,14 +24,6 @@ def check_conf_exists(fn, data): return True return False -def check_app_exists(app, d): - from bb import which, data - - app = data.expand(app, d) - path = data.getVar('PATH', d) - return len(which(path, app)) != 0 - - def check_sanity(e): from bb import note, error, data, __version__ from bb.event import Handled, NotHandled, getName -- cgit v1.2.3 From b7bc13c6bdeb14a3e44b1e799d84f77be35dd463 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 6 Jan 2008 23:03:37 +0000 Subject: classes/sanity.bbclass: We need GNU fortran installed to build the gcc4.2 cross compiler --- classes/sanity.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes/sanity.bbclass') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index 9994febf0d..fb2d058610 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -83,6 +83,9 @@ def check_sanity(e): if not check_app_exists('${BUILD_PREFIX}g++', e.data): missing = missing + "C++ Compiler (${BUILD_PREFIX}g++)," + if not check_app_exists('${BUILD_PREFIX}gfortran', e.data): + missing = mising + "GNU Fortran Compiler" + required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum" for util in required_utilities.split(): -- cgit v1.2.3 From b9563cc443ff9eb0af87cbc48da5c2f37e45305a Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 7 Jan 2008 08:57:46 +0000 Subject: sanity.bbclass: Fix typo - everyone else must have GNU fortran already installed --- classes/sanity.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/sanity.bbclass') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index fb2d058610..bbc06d9697 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -84,7 +84,7 @@ def check_sanity(e): missing = missing + "C++ Compiler (${BUILD_PREFIX}g++)," if not check_app_exists('${BUILD_PREFIX}gfortran', e.data): - missing = mising + "GNU Fortran Compiler" + missing = missing + "GNU Fortran Compiler" required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum" -- cgit v1.2.3