From 25717652b6d600bed1b938c4a034b0d5f7fb661c Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Wed, 26 Jul 2017 15:14:23 -0700 Subject: go: centralize definition of COMPATIBLE_HOST Put it in goarch.bbclass which all go related recipes inherit. (From OE-Core rev: 9e899bbc081cb932c1492f6d6802b908d70ef42f) Signed-off-by: Joe Slater Signed-off-by: Richard Purdie --- meta/classes/goarch.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/classes/goarch.bbclass') diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 4a5b2ec787..57537fbc09 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass @@ -11,6 +11,12 @@ TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH', True), d.getVar('TUNE_FEAT TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}" GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE',True) == d.getVar('HOST_GOTUPLE',True)]}" +# define here because everybody inherits this class +# +COMPATIBLE_HOST_linux-gnux32 = "null" +COMPATIBLE_HOST_powerpc = "null" +COMPATIBLE_HOST_powerpc64 = "null" + def go_map_arch(a, d): import re if re.match('i.86', a): -- cgit v1.2.3-54-g00ecf