diff options
Diffstat (limited to 'recipes-devtools')
| -rw-r--r-- | recipes-devtools/go-cross/go-cross-1.3_1.3.bb (renamed from recipes-devtools/go-cross/go-cross_1.3.bb) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/recipes-devtools/go-cross/go-cross_1.3.bb b/recipes-devtools/go-cross/go-cross-1.3_1.3.bb index 1fb48700..775e28f3 100644 --- a/recipes-devtools/go-cross/go-cross_1.3.bb +++ b/recipes-devtools/go-cross/go-cross-1.3_1.3.bb | |||
| @@ -25,7 +25,7 @@ SRC_URI += "\ | |||
| 25 | 25 | ||
| 26 | do_compile() { | 26 | do_compile() { |
| 27 | ## Setting `$GOBIN` doesn't do any good, looks like it ends up copying binaries there. | 27 | ## Setting `$GOBIN` doesn't do any good, looks like it ends up copying binaries there. |
| 28 | export GOROOT_FINAL="${SYSROOT}${libdir}/go" | 28 | export GOROOT_FINAL="${SYSROOT}${libdir}/go-1.3" |
| 29 | 29 | ||
| 30 | export GOHOSTOS="linux" | 30 | export GOHOSTOS="linux" |
| 31 | export GOOS="linux" | 31 | export GOOS="linux" |
| @@ -61,11 +61,12 @@ do_compile() { | |||
| 61 | do_install() { | 61 | do_install() { |
| 62 | ## It should be okay to ignore `${WORKDIR}/go/bin/linux_arm`... | 62 | ## It should be okay to ignore `${WORKDIR}/go/bin/linux_arm`... |
| 63 | ## Also `gofmt` is not needed right now. | 63 | ## Also `gofmt` is not needed right now. |
| 64 | install -d "${D}${bindir}" | 64 | install -d "${D}${bindir}/go-1.3" |
| 65 | install -m 0755 "${WORKDIR}/go/bin/go" "${D}${bindir}" | 65 | install -m 0755 "${WORKDIR}/go/bin/go" "${D}${bindir}/go-1.3/" |
| 66 | install -d "${D}${libdir}/go" | 66 | install -d "${D}${libdir}/go-1.3" |
| 67 | |||
| 67 | ## TODO: use `install` instead of `cp` | 68 | ## TODO: use `install` instead of `cp` |
| 68 | for dir in include lib pkg src test | 69 | for dir in include lib pkg src test |
| 69 | do cp -a "${WORKDIR}/go/${dir}" "${D}${libdir}/go/" | 70 | do cp -a "${WORKDIR}/go/${dir}" "${D}${libdir}/go-1.3/" |
| 70 | done | 71 | done |
| 71 | } | 72 | } |
