summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go
Commit message (Collapse)AuthorAgeFilesLines
* go-native: switch from SRC_URI:append to SRC_URI +=Mikko Rapeli2022-09-131-1/+1
| | | | | | | | | The :append can not be removed if needed in other layers. (From OE-Core rev: e129d2f7e3ba312ab5383397eeabf7273d23a529) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.18.4 -> 1.19Alexander Kanavin2022-08-1015-81/+138
| | | | | | | | | | Rebase patches. (From OE-Core rev: 85064fd76c9f19b522f540f26e0fc68bfb0d7f43) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.18.3 -> 1.18.4Alexander Kanavin2022-07-238-3/+3
| | | | | | | | (From OE-Core rev: be03de98221754b8fb0c89d76b31101d097b48ae) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Filter build paths on staticly linked archesRichard Purdie2022-07-042-0/+49
| | | | | | (From OE-Core rev: acd376324765e432f7c3895470ca46d2ce29287e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.18.2 -> 1.18.3Alexander Kanavin2022-06-228-3/+3
| | | | | | | | (From OE-Core rev: 667264b82156219f9ac50dbb013683ac4fbe0fad) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.18.1 -> 1.18.2Alexander Kanavin2022-05-208-3/+3
| | | | | | | | (From OE-Core rev: 65bbbfc609c553b7ba54b63b5aab18b827c632f8) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.18 -> 1.18.1Alexander Kanavin2022-04-2816-4/+4
| | | | | | | | | Do not version patch directories; we carry only one version of go. (From OE-Core rev: f7a9f330f92d85612196d7a8d77893a1b0a870aa) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go-target: Pass -trimpath to go linkerKhem Raj2022-04-191-2/+2
| | | | | | | | | | | This is for improving reproducibility to trim absolute paths as these recipes do not inherit go bbclass where it would be set automatically (From OE-Core rev: 365dae4e47b956b39fb62d9c6dcb917a11b37cba) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Disable pie in cgo for mipsKhem Raj2022-04-191-0/+2
| | | | | | | | | | | This overcomes the linking errors e.g. | /usr/lib/go/src/cmd/go/internal/base/base.go:110:(.text+0x60fef8): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC | /usr/lib/go/src/cmd/go/internal/base/base.go:110:(.text+0x60ff0c): relocation R_MIPS_HI16 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC (From OE-Core rev: 4b379e94ea6d5b96245c8724689209b44cace562) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Drop GOBUILDMODEKhem Raj2022-04-193-44/+0
| | | | | | | | | | | This is local invention which is no longer needed, pie-mode works good now a days to build go for target (From OE-Core rev: 118411a565fb39df4bbae2a0ef2b25f03607a3a5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Upgrade to 1.18Khem Raj2022-04-1920-424/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.18 is a major release brings in long awaited new features e.g. generics, fuzzing Detailed list is here [1] Drop patches to manipulate multiword CC/CXX as go has fixed it differently [2] Drop cgo portion of patch to hack hash generation logic either we should find a way to not use it or redo it, in current form its not upstreamable and its altering core features of go compiler, it can not be maintained as is Do not emit linkinfo into the actionID Drop ignoring CVE-2021-29923 its already addressed in go >= 1.17 [1] https://go.dev/doc/go1.18 [2] https://groups.google.com/g/golang-codereviews/c/fUhCbpYG7HE (From OE-Core rev: 1a99cc2eed34434d75b2f53af1616ad79eef0906) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Remove three unnecessary paths from do_compile[dirs]Peter Kjellerstedt2022-03-156-6/+0
| | | | | | | | | | There is no reason to include a path in foo[dirs] if it is also in foo[cleandirs] (except if it is the last path in foo[dirs]). (From OE-Core rev: 9f610748f760b2d58d5250b55ae4b268909f33ef) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.17.7 -> 1.17.8wangmy2022-03-0919-4/+4
| | | | | | | (From OE-Core rev: c375fcae8fd4c21a9f240440f9d7f31dde415e30) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/scripts: Automated conversion of OE renamed variablesRichard Purdie2022-02-211-1/+1
| | | | | | (From OE-Core rev: aa52af4518604b5bf13f3c5e885113bf868d6c81) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.17.6 -> 1.17.7wangmy2022-02-188-3/+3
| | | | | | | (From OE-Core rev: e1a1b201c4a850ae116d88975df3fdab4dea6945) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.17.5 -> 1.17.6Alexander Kanavin2022-01-208-3/+3
| | | | | | | (From OE-Core rev: f48e276ec340acc1c086dff3d18f92d822e31351) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: fix building without SECURITY_LDFLAGSDmitry Baryshkov2022-01-142-2/+4
| | | | | | | | | | | | | | | | | | | | | | | Commit 9985b17a30bb ("go: correctly set debug-prefix-map and build directory") has changed CGO_LDFLAGS to the manually crafted version of LDFLAGS to strip out DEBUG_PREFIX_MAP contents. However this manually crafted version includes ${SECURITY_LDFLAGS}. If security_flags.inc is not included, the variable is not defined, thus CGO_LDFLAGS will include the '${SECURITY_LDFLAGS}' literally. When building the recipe, the build would break with the follwing message: aarch64-linaro-linux-gcc: error: ${SECURITY_LDFLAGS}: No such file or directory So, instead of manually specifying variable contents, perform the expected action: filter offending arguments out of LDFLAGS. Cc: Alexander Kanavin <alex.kanavin@gmail.com> (From OE-Core rev: e7d2d68679c1980d9e889d96c3eab49589f5b832) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: additional patches to help reproducibilityAlexander Kanavin2022-01-053-0/+84
| | | | | | | (From OE-Core rev: c7299f4e1cd38856885a2451c7c448c99d94b781) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: correctly set debug-prefix-map and build directoryAlexander Kanavin2022-01-053-2/+17
| | | | | | | | | | | | | | | | | Go has its own system for creating temporary build sub-directories with randomized names, and setting up debug-prefix-map on the fly to prevent those directories leaking into target binaries. OE's own settings were clashing with it, so this change carefully avoids the two stepping on each other. Additionally, the top level build directory cannot be named 'go-something'. (From OE-Core rev: 9985b17a30bb9b9f1bc82a44662687db5cead66e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: log build id computationsAlexander Kanavin2022-01-051-0/+2
| | | | | | | | | | | | | | | go writes build-specific ids into binaries it produces and has a custom system for calculating them from file hashes, environment variables and other inputs (not that dissimilar to sstate cache, actually). This can go wrong :) in various ways (for purposes of reproducibility in particular), so this enables useful logs to see what happens and why. (From OE-Core rev: a587be1d18fc55fe57d1aa5aa7c9e26af887109e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.17.4 -> 1.17.5Alexander Kanavin2021-12-178-3/+3
| | | | | | | (From OE-Core rev: 00da24376f4214f30d3eb775d990080b49bb5d3c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.17.3 -> 1.17.4Alexander Kanavin2021-12-088-3/+3
| | | | | | | (From OE-Core rev: aa1dd053503f464dcc920e064a6d8ead6772cab2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.16.10 -> 1.17.3Alexander Kanavin2021-11-2917-81/+112
| | | | | | | | | | | This was additionally verified with meta-virtualization: $ bitbake packagegroup-container packagegroup-kubernetes $ bitbake container-base kvm-image-minimal xen-guest-image-minimal (From OE-Core rev: 7acfadc2ef96cd205a85713624ce96129b679b28) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.8 -> 1.16.10Pavel Zhukov2021-11-248-4/+4
| | | | | | | | | The release includes fixes for CVE-2021-41771 and CVE-2021-41772 (From OE-Core rev: 69c68f470e8e12456a4d9abf2d1c33b857e4ea37) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.7 -> 1.16.8Sakib Sajal2021-10-118-4/+4
| | | | | | | | (From OE-Core rev: 97a2f406635f51bad1ab070f018a6466209f257b) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Exclude CVE-2021-29923 from report listRichard Purdie2021-09-071-0/+5
| | | | | | | | | | | Upstream don't believe it is a signifiant real world issue and will only fix in 1.17 onwards. Therefore exclude it from our reports. https://github.com/golang/go/issues/30999#issuecomment-910470358 (From OE-Core rev: 5bd5faf0c34b47b2443975d66b71482d2380a01a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.5 -> 1.16.7Sakib Sajal2021-09-048-4/+4
| | | | | | | | (From OE-Core rev: dd26135ba4e23ead3a9998087cb60d9e93399e48) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to new override syntaxRichard Purdie2021-08-026-17/+17
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.4 -> 1.16.5wangmy2021-06-128-4/+4
| | | | | | | (From OE-Core rev: c0c567ed2fb092cde97d03cb658d8bae93d9b28c) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.3 -> 1.16.4wangmy2021-05-148-4/+4
| | | | | | | (From OE-Core rev: 1e280a596293976ac835b557dcaaa56972682480) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Revert "go: Use dl.google.com for SRC_URI"Alexander Kanavin2021-05-121-1/+1
| | | | | | | | | | | This reverts commit 4118415d4bc6243c98a1440195826be7cbad24f1. This was found to be unnecessary, and broke upstream version checks. (From OE-Core rev: cee436d1eb94663f3604c80b6ad87292f6901498) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Use dl.google.com for SRC_URIKhem Raj2021-04-231-1/+1
| | | | | | | | | golang.org/dl is resolving to this anyway (From OE-Core rev: 8470e38ac1d9f9bb6d8a4ee43724af452d080057) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update SRC_URI to use https protocolwangmy2021-04-181-1/+1
| | | | | | | (From OE-Core rev: 2a1eb731ed3bcb049192550e362b771c3a9ea6eb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.16.2 -> 1.16.3wangmy2021-04-188-4/+4
| | | | | | | | | | | | This is bugfix release in 1.16 series [1] [1] https://github.com/golang/go/issues?q=milestone%3AGo1.16.3+label%3ACherryPickApproved (From OE-Core rev: 84188e7b78aa40b168b526fa5d681a8a21d3b77c) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go-dep: RemoveKhem Raj2021-03-154-145691/+0
| | | | | | | | | | | | | go-dep was an effort for dependency management before go modules, which since 2020 has been deprecated in favor of go modules. Since its not developed any longer and go mdules is officially supported, this should be retired from OE-core as well. (From OE-Core rev: 1e7ed44d87034446f1d07692c9378c3b0a8a9dd3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Otavio Salvador <otavio.salvador@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Update to 1.16.2Khem Raj2021-03-158-4/+4
| | | | | | | | | | | This is bugfix release in 1.16 series [1] [1] https://golang.org/doc/devel/release.html#go1.16.minor (From OE-Core rev: 25627fb304bbd26d994f68e29fb18802144149b2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Enable CGO and pie buildmode on rv64Khem Raj2021-02-262-4/+2
| | | | | | | | | go1.16 has added CGO support for riscv64 arch (From OE-Core rev: 8e078238312948e8c7b09c66ba7a186512e995d3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Upgrade compiler to 1.16 major releaseKhem Raj2021-02-2617-22/+118
| | | | | | | | | | | | | | | Revert a CC/CXX check [1] which wont work with OE settings Forward port needed patches forward Details releaase notes are here [2] [1] https://go-review.googlesource.com/c/go/+/228517/ [2] https://golang.org/doc/go1.16 (From OE-Core rev: 5c41c6ed4e2e70d18b32c460b8c8e1aadd54584f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Update to 1.15.8Khem Raj2021-02-162-4/+4
| | | | | | | (From OE-Core rev: 2b724599e29808014f5d9c1fdc70d20abab9b3e5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Update 1.15.5 -> 1.15.6Khairul Rohaizzat Jamaluddin2020-12-183-105/+4
| | | | | | | | | | | | The deleted patch file mentioned below is removed since 1.15.6 already has the issue patched. (From OE-Core rev: ab41033b4202341a3767d1c54c86e08c7e37610f) Signed-off-by: Khairul Rohaizzat Jamaluddin <khairul.rohaizzat.jamaluddin@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Update to 1.15.5Khem Raj2020-11-244-4/+107
| | | | | | | | | | | | | | | | | Define CXX_FOR_TARGET and CC_FOR_TARGET for target go since we are cross building it, it helps in defining the compiler for cgo on target backport a patch to fix CGO_LDFLAGS regression like below Fixes | Building std for target, linux/arm. | go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1 (From OE-Core rev: a71d1b58e8cf0976a614c49aa2dfe1e0605dfe95) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: upgrade 1.15.2 -> 1.15.3Alexander Kanavin2020-11-034-5/+6
| | | | | | | | | Set PV directly to allow automated version updates between point releases. (From OE-Core rev: 84034ea18a9fb1a012a1ecdc3a84296b08d3cc23) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Update to 1.15.2 minor releaseKhem Raj2020-09-142-4/+4
| | | | | | | | | This is bug fix release on 1.15 stable version (From OE-Core rev: 0783a84a6b0df84be590f59e70cb80506c774f4d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Upgrade to 1.15 major releaseKhem Raj2020-09-0517-145/+29
| | | | | | | | | | | | | | | | | 1.15 is latest major release changelog is [1] and detailed blog is [2] Drop hardcoding ldso patch in favor of setting it using GO_LDSO variable which can be defined in terms of linuxloader defined by OE Setting GOBUILDMODE to pie is no longer needed [1] https://golang.org/doc/go1.15 [2] https://blog.golang.org/go1.15 (From OE-Core rev: aa1bfaff4adc9246a2d65592b3a8061d55829086) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Upgrade to 1.14.7Khem Raj2020-08-122-4/+4
| | | | | | | | | | CVE_CHECK_WHITELIST += "CVE-2020-16845" (From OE-Core rev: 91580c9d335e0fbee95f94be6f9b34298d3e9a48) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Li Zhou <li.zhou@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: update 1.14.4 -> 1.14.6Alexander Kanavin2020-08-022-4/+4
| | | | | | | (From OE-Core rev: c9011d04eb624aeabf5d707e88de80137bcc2eb1) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go-dep: Fix build on riscv64Khem Raj2020-07-122-0/+145575
| | | | | | | | | Bring in only patch from meta-riscv here (From OE-Core rev: 2e6e7b0be6e5ba5ab8fe9478c1dfdd530d22123f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go: Disbale CGO for riscv64Khem Raj2020-07-122-1/+2
| | | | | | | | | | | | | | | cgo is still not available in go for riscv64, we will re-evaluate it once we upgrade to 1.15 Fixes | /usr/src/debug/go-runtime/1.14.4-r0/go/src/runtime/cgo/gcc_util.c:23: undefined reference to `_cgo_sys_thread_start' [YOCTO #13966] (From OE-Core rev: f512b3308ed6ee878c77f72b9235ada83d107dba) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go-binary-native: fix upstream version checkAlexander Kanavin2020-06-281-0/+3
| | | | | | | (From OE-Core rev: e46f424748d9cc6d6160079e1a36fe43505ba2fa) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* go-native: merge bb/inc and add commentRoss Burton2020-06-242-56/+59
| | | | | | | | | Merge the .bb/.inc, and add an explanatory comment. (From OE-Core rev: cb9eda76f53efa901d8eaadaedc456b9d29cd748) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>