diff options
Diffstat (limited to 'meta/classes/go.bbclass')
-rw-r--r-- | meta/classes/go.bbclass | 19 |
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" | |||
8 | export GOROOT | 8 | export GOROOT |
9 | export GOROOT_FINAL = "${libdir}/go" | 9 | export GOROOT_FINAL = "${libdir}/go" |
10 | 10 | ||
11 | export GOARCH = "${TARGET_GOARCH}" | ||
12 | export GOOS = "${TARGET_GOOS}" | ||
13 | export GOHOSTARCH="${BUILD_GOARCH}" | ||
14 | export GOHOSTOS="${BUILD_GOOS}" | ||
15 | |||
16 | GOARM[export] = "0" | ||
17 | GOARM_arm_class-target = "${TARGET_GOARM}" | ||
18 | GOARM_arm_class-target[export] = "1" | ||
19 | |||
20 | GO386[export] = "0" | ||
21 | GO386_x86_class-target = "${TARGET_GO386}" | ||
22 | GO386_x86_class-target[export] = "1" | ||
23 | GO386_i586_class-target = "${TARGET_GO386}" | ||
24 | GO386_i586_class-target[export] = "1" | ||
25 | |||
26 | GOMIPS[export] = "0" | ||
27 | GOMIPS_mips_class-target = "${TARGET_GOMIPS}" | ||
28 | GOMIPS_mips_class-target[export] = "1" | ||
29 | |||
11 | DEPENDS_GOLANG_class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime" | 30 | DEPENDS_GOLANG_class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime" |
12 | DEPENDS_GOLANG_class-native = "go-native" | 31 | DEPENDS_GOLANG_class-native = "go-native" |
13 | DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime" | 32 | DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime" |