From 7740963a5fa5ddcbcaf0900c3259de263cc561e9 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 15 Dec 2007 15:56:05 +0000 Subject: base.bbclass: Unexport TARGET_ARCH, quilt (at least) is a victim. --- classes/base.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes/base.bbclass') diff --git a/classes/base.bbclass b/classes/base.bbclass index 7526dff65e..2b508a8e84 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -848,6 +848,12 @@ def base_after_parse(d): bb.data.delVarFlag('MACHINE', 'export', d) bb.data.setVarFlag('MACHINE', 'unexport', 1, d) + # Make sure TARGET_ARCH isn't exported + # (breaks Makefiles using implicit rules, e.g. quilt, as GNU make has this + # in them, undocumented) + bb.data.delVarFlag('TARGET_ARCH', 'export', d) + bb.data.setVarFlag('TARGET_ARCH', 'unexport', 1, d) + # Make sure DISTRO isn't exported # (breaks sysvinit at least) bb.data.delVarFlag('DISTRO', 'export', d) -- cgit v1.2.3 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/base.bbclass | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'classes/base.bbclass') diff --git a/classes/base.bbclass b/classes/base.bbclass index 2b508a8e84..e0b4c59e5f 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -902,6 +902,23 @@ python () { base_after_parse(d) } +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_gcc3(data): + + gcc3_versions = 'gcc-3.4 gcc34 gcc-3.4.4 gcc-3.4.6 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 inherit patch -- cgit v1.2.3 From 3742113ef49b7a6cabce2f484f856e34a935df77 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 6 Jan 2008 17:59:08 +0000 Subject: base.bbclass: Expand path when searching for applications (else it can contain unexpanded entries and applications in staging don't get found for example) --- classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/base.bbclass') diff --git a/classes/base.bbclass b/classes/base.bbclass index e0b4c59e5f..d48d2a5726 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -906,7 +906,7 @@ def check_app_exists(app, d): from bb import which, data app = data.expand(app, d) - path = data.getVar('PATH', d) + path = data.getVar('PATH', d, 1) return len(which(path, app)) != 0 def check_gcc3(data): -- cgit v1.2.3 From 2d9c184c9d3b28efdfdbd0c827d6b1fda0d507a7 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Thu, 24 Jan 2008 17:49:06 +0000 Subject: kernel: add wifi suspend fix to kernel-module-(hostap|orinoco)-cs. Closes 3664. * applies only to kernel later than 2.6.17 * added base_version_less_or_equal function to base.bbclass (thanks, zecke and mickey!) to do the comparison. This does not change existing functionality. Skipped RFC. --- classes/base.bbclass | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'classes/base.bbclass') diff --git a/classes/base.bbclass b/classes/base.bbclass index d48d2a5726..c8ee75627f 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -128,6 +128,14 @@ def base_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): else: return falsevalue +def base_version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): + import bb + result = bb.vercmp(bb.data.getVar(variable,d,True), checkvalue) + if result <= 0: + return truevalue + else: + return falsevalue + def base_contains(variable, checkvalues, truevalue, falsevalue, d): import bb matches = 0 -- cgit v1.2.3