summaryrefslogtreecommitdiffstats
path: root/meta/classes/go.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r--meta/classes/go.bbclass19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 7069c5fec0..78c2d6880f 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -8,6 +8,25 @@ GOROOT = "${STAGING_LIBDIR}/go"
8export GOROOT 8export GOROOT
9export GOROOT_FINAL = "${libdir}/go" 9export GOROOT_FINAL = "${libdir}/go"
10 10
11export GOARCH = "${TARGET_GOARCH}"
12export GOOS = "${TARGET_GOOS}"
13export GOHOSTARCH="${BUILD_GOARCH}"
14export GOHOSTOS="${BUILD_GOOS}"
15
16GOARM[export] = "0"
17GOARM_arm_class-target = "${TARGET_GOARM}"
18GOARM_arm_class-target[export] = "1"
19
20GO386[export] = "0"
21GO386_x86_class-target = "${TARGET_GO386}"
22GO386_x86_class-target[export] = "1"
23GO386_i586_class-target = "${TARGET_GO386}"
24GO386_i586_class-target[export] = "1"
25
26GOMIPS[export] = "0"
27GOMIPS_mips_class-target = "${TARGET_GOMIPS}"
28GOMIPS_mips_class-target[export] = "1"
29
11DEPENDS_GOLANG_class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime" 30DEPENDS_GOLANG_class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime"
12DEPENDS_GOLANG_class-native = "go-native" 31DEPENDS_GOLANG_class-native = "go-native"
13DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime" 32DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime"