meta-oran: add missing license header for recipes
[pti/rtp.git] / meta-oran / recipes-devtools / go / go-1.12.inc
1 #
2 # Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 require recipes-devtools/go/go-common.inc
17
18 GO_BASEVERSION = "1.12"
19 GO_MINOR = ".6"
20 PV .= "${GO_MINOR}"
21 FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:"
22
23 LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
24
25 SRC_URI += "\
26     file://0001-allow-CC-and-CXX-to-have-multiple-words.patch \
27     file://0002-cmd-go-make-content-based-hash-generation-less-pedan.patch \
28     file://0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch \
29     file://0004-ld-add-soname-to-shareable-objects.patch \
30     file://0005-make.bash-override-CC-when-building-dist-and-go_boot.patch \
31     file://0006-cmd-dist-separate-host-and-target-builds.patch \
32     file://0007-cmd-go-make-GOROOT-precious-by-default.patch \
33     file://0008-use-GOBUILDMODE-to-set-buildmode.patch \
34 "
35 SRC_URI_append_libc-musl = " file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch"
36
37 SRC_URI[main.md5sum] = "48a4141fc718dd742d106431294f08bf"
38 SRC_URI[main.sha256sum] = "c96c5ccc7455638ae1a8b7498a030fe653731c8391c5f8e79590bce72f92b4ca"
39
40 do_compile_prepend() {
41     unset GOCACHE
42 }