From 0d323741fc2f110755fc87105e05fcc867fb611d Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 18 Oct 2016 11:11:06 -0700 Subject: [PATCH] external-toolchain.bbclass: use bb.utils.to_boolean Signed-off-by: Christopher Larson --- classes/external-toolchain.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/external-toolchain.bbclass b/classes/external-toolchain.bbclass index a34fbbb..0319642 100644 --- a/classes/external-toolchain.bbclass +++ b/classes/external-toolchain.bbclass @@ -44,7 +44,6 @@ EXTERNAL_EXTRA_FILES ?= "" # Skip this recipe if we don't have files in the external toolchain EXTERNAL_AUTO_PROVIDE ?= "0" -EXTERNAL_AUTO_PROVIDE[type] = "boolean" EXTERNAL_AUTO_PROVIDE_class-target ?= "1" # We don't care if this path references other variables @@ -64,7 +63,7 @@ python () { if not d.getVar("EXTERNAL_TOOLCHAIN", True): raise bb.parse.SkipPackage("External toolchain not configured (EXTERNAL_TOOLCHAIN not set).") - if not oe.data.typed_value('EXTERNAL_AUTO_PROVIDE', d): + if not bb.utils.to_boolean(d.getVar('EXTERNAL_AUTO_PROVIDE', d)): return sysroots, mirrors = oe.external.get_file_search_metadata(d)