Re: [OE-core] [PATCH 1/2] staging: Add extra hash handling code

2022-02-03 Thread Matt Madison
On Thu, Feb 3, 2022 at 3:25 AM Richard Purdie wrote: > > Target build output, stored in do_populate_sysroot or do_package can depend > not only upon direct dependencies but also indirect ones. A good example is > linux-libc-headers. The toolchain depends on this but most target recipes do > not.

Re: [OE-core][PATCH 0/4] Move crate fetcher to OE_IMPORTS

2022-01-14 Thread Matt Madison
On Tue, Dec 21, 2021 at 10:15 AM Matt Madison via lists.openembedded.org wrote: > > On Tue, Dec 21, 2021 at 6:07 AM Paul Barker wrote: > > > > On 20/12/2021 22:34, Richard Purdie wrote: > > > On Mon, 2021-12-20 at 17:01 +, Paul Barker wrote: > > >>

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2022-01-09 Thread Matt Madison
On Sun, Jan 9, 2022 at 5:52 AM Peter Kjellerstedt wrote: > > > -Original Message- > > From: Matt Madison > > Sent: den 9 januari 2022 13:04 > > To: Peter Kjellerstedt > > Cc: Konrad Weihmann ; Richard Purdie > > ; Patches and discussions about the

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2022-01-09 Thread Matt Madison
> > Cc: Patches and discussions about the oe-core layer > c...@lists.openembedded.org> > > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference > > > > On 08.01.22 16:13, Richard Purdie wrote: > > > On Sat, 2022-01-08 at 07:10 -0800,

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2022-01-08 Thread Matt Madison
On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie wrote: > > On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > wrote: > > > > > > On Fri, 2022-01-07 at 12:51 +, Richard Purdie via > > > lists

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2022-01-07 Thread Matt Madison
On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie wrote: > > On Fri, 2022-01-07 at 12:51 +, Richard Purdie via lists.openembedded.org > wrote: > > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > wr

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2022-01-07 Thread Matt Madison
On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie wrote: > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > &

Re: [OE-core] [PATCH 4/6] go-runtime.inc: do not make installation set dependent on host

2022-01-02 Thread Matt Madison
On Sat, Jan 1, 2022 at 3:30 AM Alexander Kanavin wrote: > > This cannot be right: what we install for the target should not > depend on what host it's being built on. If this was fixing > some problem, there needs to be a different solution. IIRC, I added this because the go toolchain doesn't

Re: [OE-core][PATCH 0/4] Move crate fetcher to OE_IMPORTS

2021-12-21 Thread Matt Madison
On Tue, Dec 21, 2021 at 6:07 AM Paul Barker wrote: > > On 20/12/2021 22:34, Richard Purdie wrote: > > On Mon, 2021-12-20 at 17:01 +, Paul Barker wrote: > >> On 17/12/2021 15:36, Matt Madison wrote: > >>> This patch series switches to using the OE_IMPOR

Re: [OE-core][PATCH 2/4] base.bbclass: add crate to OE_IMPORTS

2021-12-20 Thread Matt Madison
021 at 18:37, Matt Madison wrote: >> >> to install the crate:// fetch handler. >> >> Signed-off-by: Matt Madison >> --- >> meta/classes/base.bbclass | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/meta/classes/base.bb

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2021-12-20 Thread Matt Madison
On Sun, Dec 19, 2021 at 3:36 PM Richard Purdie wrote: > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > &

Re: [OE-core] cargo fetcher, SRCPV, and setscene issues

2021-12-17 Thread Matt Madison
On Thu, Dec 16, 2021 at 9:09 AM Matt Madison via lists.openembedded.org wrote: > > On Thu, Dec 16, 2021 at 7:53 AM Matt Madison via > lists.openembedded.org > wrote: > > > > On Thu, Dec 16, 2021 at 6:47 AM Joshua Watt wrote: > > > > > > On Wed, D

[OE-core][PATCH 4/4] classes: remove crate-fetch.bbclass

2021-12-17 Thread Matt Madison
No longer required now that the crate fetcher gets installed via OE_IMPORTS. Signed-off-by: Matt Madison --- meta/classes/crate-fetch.bbclass | 28 1 file changed, 28 deletions(-) delete mode 100644 meta/classes/crate-fetch.bbclass diff --git a/meta/classes/crate

[OE-core][PATCH 2/4] base.bbclass: add crate to OE_IMPORTS

2021-12-17 Thread Matt Madison
to install the crate:// fetch handler. Signed-off-by: Matt Madison --- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index b709777f24..ee9950f207 100644 --- a/meta/classes/base.bbclass +++ b

[OE-core][PATCH 3/4] cargo_common.bbclass: remove inherit of crate-fetch

2021-12-17 Thread Matt Madison
No longer needed now that the crate fetcher is installed via OE_IMPORTS. Signed-off-by: Matt Madison --- meta/classes/cargo_common.bbclass | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/classes/cargo_common.bbclass b/meta/classes/cargo_common.bbclass index 23d82aa6ab..c403591434

[OE-core][PATCH 0/4] Move crate fetcher to OE_IMPORTS

2021-12-17 Thread Matt Madison
This patch series switches to using the OE_IMPORTS mechanism for installing the crate fetcher. This simplifies the addition and clears up issues with interactions between SRCPV and the shared-state fetching logic. Matt Madison (4): lib/crate.py: install crate fetcher on import base.bbclass

[OE-core][PATCH 1/4] lib/crate.py: install crate fetcher on import

2021-12-17 Thread Matt Madison
to enable the move to using OE_IMPORTS for adding this fetcher. Signed-off-by: Matt Madison --- meta/lib/crate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/lib/crate.py b/meta/lib/crate.py index d10f441875..f9db7c28cd 100644 --- a/meta/lib/crate.py +++ b/meta/lib/crate.py

Re: [OE-core] cargo fetcher, SRCPV, and setscene issues

2021-12-16 Thread Matt Madison
On Thu, Dec 16, 2021 at 7:53 AM Matt Madison via lists.openembedded.org wrote: > > On Thu, Dec 16, 2021 at 6:47 AM Joshua Watt wrote: > > > > On Wed, Dec 15, 2021 at 8:16 AM Matt Madison wrote: > > > > > > I'm finding that none of the Rust recipes are getti

Re: [OE-core] cargo fetcher, SRCPV, and setscene issues

2021-12-16 Thread Matt Madison
On Thu, Dec 16, 2021 at 6:47 AM Joshua Watt wrote: > > On Wed, Dec 15, 2021 at 8:16 AM Matt Madison wrote: > > > > I'm finding that none of the Rust recipes are getting setscened in my > > builds off > > master due to the the SRCPV hack that was added to make

[OE-core][PATCH v2 2/2] qemu: add patch to set minimum kernel version for riscv32

2021-12-16 Thread Matt Madison
which enables us to drop the -r option on qemu-static-riscv32 invocations. Signed-off-by: Matt Madison --- meta/recipes-devtools/qemu/qemu.inc | 1 + ...s-minimum-kernel-version-for-riscv32.patch | 40 +++ 2 files changed, 41 insertions(+) create mode 100644 meta

[OE-core][PATCH v2 0/2] qemu.bbclass: drop OLDEST_KERNEL reference

2021-12-16 Thread Matt Madison
patch to set minimum kernel version for riscv32. With this patch, qemu for all supported archs should have a built-in oldest kernel setting, eliminating the need for putting it on the command line. Matt Madison (2): qemu.bbclass: drop OLDEST_KERNEL reference qemu: add patch to set

[OE-core][PATCH v2 1/2] qemu.bbclass: drop OLDEST_KERNEL reference

2021-12-16 Thread Matt Madison
which is introducing task hash changes for some allarch package builds, and should no longer be needed with recent versions of qemu. Signed-off-by: Matt Madison --- meta/classes/qemu.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/qemu.bbclass b/meta

Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2021-12-15 Thread Matt Madison
On Wed, Dec 15, 2021 at 12:24 PM Khem Raj wrote: > > > > On 12/15/21 12:16 PM, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > > > T

[OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference

2021-12-15 Thread Matt Madison
which is introducing task hash changes for some allarch package builds, and should no longer be needed with recent versions of qemu. Signed-off-by: Matt Madison --- meta/classes/qemu.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/qemu.bbclass b/meta

[OE-core] cargo fetcher, SRCPV, and setscene issues

2021-12-15 Thread Matt Madison
I'm finding that none of the Rust recipes are getting setscened in my builds off master due to the the SRCPV hack that was added to make the cargo fetcher visible during parsing. There's no error reported about it, but by adding an exception handler into the sstate code I tracked it down to

Re: [OE-core] [PATCH 03/26] meson: configure and use generic exe_wrapper

2021-12-15 Thread Matt Madison
On Fri, Dec 3, 2021 at 11:13 PM Alexander Kanavin wrote: > This replaces the specific gtkdoc wrapper setting > (which was rejected by upstream in > https://github.com/mesonbuild/meson/pull/9627) > with a generic, officially supported and documented exe_wrapper, > which is enabled subject to qemu

[OE-core] [PATCH 1/1] autotools.bbclass: use ordinary append for file-checksums update

2021-09-25 Thread Matt Madison
get processed before the TARGET_ARCH changes in allarch. Use an ordinary += assignment to fix this. Signed-off-by: Matt Madison --- meta/classes/autotools.bbclass | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes

[OE-core] [PATCH 0/1] autotools.bbclass: use ordinary append for file-checksums update

2021-09-25 Thread Matt Madison
) != dc2ecf9029a051f391760e3317c8fc538d8640f2145af4dd1740db5a227b571a (qemux86) Switching to a regular assignment, instead of using anonymous python, looks like the right solution. Matt Madison (1): autotools.bbclass: use ordinary append for file-checksums update meta/classes/autotools.bbclass | 5 + 1 file changed, 1

[OE-core] [PATCH] libxcb: use PN for naming dynamic packages

2021-04-03 Thread Matt Madison
so an explicit runtime dependency on one of the library packages doesn't generate a message about libxcb and libxcb-native both being providers. Signed-off-by: Matt Madison --- meta/recipes-graphics/xorg-lib/libxcb_1.14.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[OE-core] sstate mirroring between different host OSes requires pre-building pseudo-native

2021-03-14 Thread Matt Madison
I run my CI autobuilders on Ubuntu 20.04 servers, which generate sstate that I mirror out to my development machine, which runs Ubuntu 20.10. That used to work fine - everything would setscene in as expected. For some time now, though, I see just about everything setscene in, and then

Re: [OE-core] [PATCH] opkg: Fix patch glitches

2021-02-09 Thread Matt Madison
On Tue, Feb 9, 2021 at 6:34 AM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > The original patch contained some text which shouldn't have been there > and used brackets in configure which isn't a great idea. Tweak the patch > to resolve this. > > Signed-off-by: Richard Purdie >

[OE-core] [PATCH] layer.conf: fix syntax error in PATH setting

2020-11-12 Thread Matt Madison
iate '!=' comparison operator. Signed-off-by: Matt Madison --- meta/conf/layer.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 2d9cd05695..cda37c33b4 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.c

[OE-core] [PATCH] image.bbclass: fix REPRODUCIBLE_TIMESTAMP_ROOTFS reference

2020-09-07 Thread Matt Madison
to restore the intent of making it a fallback for when there is no git timestamp to retrieve. Signed-off-by: Matt Madison --- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 3b5600e550

[OE-core] [PATCH] cogl-1.0: correct X11 dependencies

2020-07-28 Thread Matt Madison
on libxi, which is not actually needed. The missing dependency doesn't cause problems in most cases, since mesa also depends on libxdamage, but when an alternative opengl implementation such as libglvnd is used, cogl fails to configure. Signed-off-by: Matt Madison --- meta/recipes-graphics/cogl/cogl

[OE-core] [PATCH] kernel.bbclass: add gzip-native to do_deploy dependencies

2020-07-05 Thread Matt Madison
for builds with a large modules package. Signed-off-by: Matt Madison --- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 301e3b86b2..aef5e97892 100644 --- a/meta/classes/kernel.bbclass

Re: [OE-core] [PATCH] go/go-runtime: use update-alternative for zdefaultcc.go

2019-08-08 Thread Matt Madison
On Wed, Aug 7, 2019 at 10:36 PM Changqing Li wrote: > > > On 8/7/19 10:16 PM, Richard Purdie wrote: > > On Wed, 2019-08-07 at 10:35 +0800, Changqing Li wrote: > >> On 8/6/19 6:47 PM, Richard Purdie wrote: > >>> On Tue, 2019-08-06 at 14:54 +0800, changqing...@windriver.com > >>> wrote: >

Re: [OE-core] [PATCH] go.bbclass: remove ptest inherit

2019-07-04 Thread Matt Madison
On Wed, Jul 3, 2019 at 2:25 AM wrote: > > From: Mingli Yu > > Remove the ptest bbclass inherit logic to let > each recipe inherit ptest individually if the > specified recipe wants to support ptest to avoid > the recipe which inherits go bblcass inheriting > ptest automatically. Recipes will

Re: [OE-core] [PATCH] go-dep: disable PTEST_ENABLED

2019-07-01 Thread Matt Madison
On Sun, Jun 30, 2019 at 6:59 PM Yu, Mingli wrote: > > > > On 2019年06月28日 19:02, Richard Purdie wrote: > > On Fri, 2019-06-28 at 00:57 -0700, mingli...@windriver.com wrote: > >> From: Mingli Yu > >> > >> The run-ptest logic for go-dep actually runs the > >>

Re: [OE-core] [PATCH v5 06/13] go.bbclass: ptest cleanup and improvements

2019-06-27 Thread Matt Madison
On Wed, Jun 26, 2019 at 11:40 PM Yu, Mingli wrote: > > > > On 2019年06月26日 22:00, Matt Madison wrote: > > On Wed, Jun 26, 2019 at 2:02 AM Yu, Mingli wrote: > >> > >> > >> > >> On 2019年06月25日 20:23, Matt Madison wrote: > >

Re: [OE-core] [PATCH v5 06/13] go.bbclass: ptest cleanup and improvements

2019-06-26 Thread Matt Madison
On Wed, Jun 26, 2019 at 2:02 AM Yu, Mingli wrote: > > > > On 2019年06月25日 20:23, Matt Madison wrote: > > On Fri, Jun 21, 2019 at 2:08 AM Yu, Mingli wrote: > >> > >> Hi Matt, > >> > >> I noticed your commit is the latest update for go-d

Re: [OE-core] [PATCH v5 06/13] go.bbclass: ptest cleanup and improvements

2019-06-25 Thread Matt Madison
C > root@qemux86-64:/usr/lib64/go-dep/ptest# ./run-ptest > building testdep failed: exit status 1 > can't load package: package .: no Go files in > /usr/lib64/go-dep/ptest/github.com/golang/dep/cmd/dep > root@qemux86-64:/usr/lib64/go-dep/ptest# > > Thanks, > > On 2018年03月05日 0

[OE-core] [PATCH] apt: fix permissions on apt-daily script for systemd

2019-06-18 Thread Matt Madison
The script needs to be executable so the service doesn't fail. Signed-off-by: Matt Madison --- meta/recipes-devtools/apt/apt-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/apt/apt-package.inc b/meta/recipes-devtools/apt/apt-package.inc

[OE-core] [PATCH] uboot-extlinux-config.bbclass: add missing variable dependencies

2019-03-03 Thread Matt Madison
do_create_extlinux_config performs its own override processing for several variables, so we have to explicitly add the label- suffixed variable names to its vardeps to make sure that changes get detected. Signed-off-by: Matt Madison --- meta/classes/uboot-extlinux-config.bbclass | 2 ++ 1 file

Re: [OE-core] [PATCH] [RFC] go.bbclass: install dependencies under $GOPATH instead of $GOROOT

2018-12-20 Thread Matt Madison
On Thu, Dec 20, 2018 at 6:02 AM Damien Riegel wrote: > > On Thu, 20 Dec 2018 at 07:53, Matt Madison wrote: > > > > On Wed, Dec 19, 2018 at 5:52 PM Damien Riegel > > wrote: > > > > > > On Wed, 19 Dec 2018 at 16:41, Matt Madison wrote: > > &g

Re: [OE-core] [PATCH] [RFC] go.bbclass: install dependencies under $GOPATH instead of $GOROOT

2018-12-20 Thread Matt Madison
On Wed, Dec 19, 2018 at 5:52 PM Damien Riegel wrote: > > On Wed, 19 Dec 2018 at 16:41, Matt Madison wrote: > > > > On Wed, Dec 19, 2018 at 9:51 AM Damien Riegel > > wrote: > > > > > > To package a go application in Yocto, one needs to also packag

Re: [OE-core] [PATCH] [RFC] go.bbclass: install dependencies under $GOPATH instead of $GOROOT

2018-12-19 Thread Matt Madison
On Wed, Dec 19, 2018 at 9:51 AM Damien Riegel wrote: > > To package a go application in Yocto, one needs to also package its > dependencies to keep the build reproducible and under control. The > default install task of the go class puts the source in ${libdir}/go/src. > > ${libdir}/go/src is

[OE-core] [PATCH] go-runtime_1.9: pass BUILD_ flags to cgo for host-side build

2018-04-21 Thread Matt Madison
When running the make.bash script to build the host-side tools, make sure that cgo is using CFLAGS and LDFLAGS for the build host, rather than those for the target. [YOCTO #12704] Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-runtime_1.9.bb | 2 +-

Re: [OE-core] State of Sumo

2018-04-21 Thread Matt Madison
I've got a handle on the go-runtime issue, will send a patch shortly. -Matt On Sat, Apr 21, 2018 at 3:02 AM, Burton, Ross wrote: > Good news is that went green, so the problem is restricted to > CC_FOR_BUILD usage I guess. > > Ross > > On 21 April 2018 at 09:09, Burton,

Re: [OE-core] [RESEND PATCH] glide.bbclass: Add class to easy Glide use

2018-03-16 Thread Matt Madison
On Fri, Mar 16, 2018 at 5:57 AM, Otavio Salvador wrote: > To use 'glide' this class does the integration and reduces code > duplication. > > Signed-off-by: Otavio Salvador > --- > > meta/classes/glide.bbclass | 9 + > 1 file changed, 9

[OE-core] [rocko][PATCH 1/1] go: Upgrade 1.9 to 1.9.4 stable release

2018-03-12 Thread Matt Madison
fixes to the compiler, runtime, and the database/sql, math/big, net/http, and net/url packages. - go1.9.4 (released 2018/02/07) includes a security fix to “go get”. Signed-off-by: Otavio Salvador <ota...@ossystems.com.br> Signed-off-by: Ross Burton <ross.bur...@intel.com> Signed-off-by:

[OE-core] [rocko][PATCH 0/1] backport go 1.9.4 update to rocko

2018-03-12 Thread Matt Madison
One of the changes included in this point release update fixes an issue with the construction of Go's shared runtim library, so it would be great to backport this to rocko to fix [YOCTO 12592]. Thanks, -Matt Otavio Salvador (1): go: Upgrade 1.9 to 1.9.4 stable release

Re: [OE-core] [PATCH v4 00/13] go1.10 update and misc improvements

2018-03-04 Thread Matt Madison
gt;>> On Sat, Mar 3, 2018 at 4:59 PM, Khem Raj <raj.k...@gmail.com> wrote: >>>> On Sat, Mar 3, 2018 at 9:44 AM, Matt Madison <matt@madison.systems> wrote: >>>>> Since it looks like I'll have to do a v5 on my series anyway, I can >>>>> pull in

[OE-core] [PATCH v5 13/13] tcmode-default.inc: add settings for go

2018-03-04 Thread Matt Madison
to allow GOVERSION to be set for using an older go toolchain. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/conf/distro/include/tcmode-default.inc | 10 ++ 1 file changed, 10 insertions(+) diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/i

[OE-core] [PATCH v5 12/13] go-runtime: remove unneeded nativesdk override, rename variable

2018-03-04 Thread Matt Madison
since GO_LDFLAGS is also used by the dist tool, and it's confusing to use a variable with the same name (but not exported, so unused by make.bash/dist). Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-runtime.inc | 6 ++ 1 file changed, 2 insertions

[OE-core] [PATCH v5 10/13] go: disable PIE CFLAGS for nativesdk and cross-canadian builds

2018-03-04 Thread Matt Madison
The statically-linked Go code in the toolchain is not compatible with PIE, so disable its use in the C compiler during the toolchain build. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-cross-canadian.inc| 6 +++--- meta/recipes-devtools/go/go

[OE-core] [PATCH v5 09/13] go.bbclass, goarch.bbclass: update SECURITY_CFLAGS

2018-03-04 Thread Matt Madison
With go1.10 the NOPIE flags are only required for MIPS target builds, and are now incompatible for the other architectures. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- meta/classes/goarch.bbclass | 2 ++ 2 files changed, 2 insertions

[OE-core] [PATCH v5 07/13] goarch.bbclass: disable shared runtime for nativesdk builds

2018-03-04 Thread Matt Madison
While useful on embedded devices for saving disk space, use of shared runtime in Go is not the usual practice, so disable it for nativesdk builds. We don't use it for native builds, either, so this makes the SDK match the native environment more closely. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v5 08/13] go: move common settings to go-common.inc

2018-03-04 Thread Matt Madison
Eliminate some redundancy in the recipes by moving some commonly-used variable settings to the common include file. Also removed a duplicate inherit from go-target.inc that was already in go-common.inc. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools

[OE-core] [PATCH v5 11/13] packagegroup-go-sdk-target: add go-runtime-staticdev

2018-03-04 Thread Matt Madison
to allow go programs to be linked either statically or dynamically when cross-compiling with the SDK. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipe

[OE-core] [PATCH v5 04/13] go.bbclass: remove debug-related commands

2018-03-04 Thread Matt Madison
The 'go env' in the do_compile function and the set -x/+x in the do_install_ptest function were used for debugging the bbclass, and aren't really needed. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- 1 file changed, 3 deletions(-) diff --git

[OE-core] [PATCH v5 06/13] go.bbclass: ptest cleanup and improvements

2018-03-04 Thread Matt Madison
handle large numbers of tests, and to generate 'status: test name' output similar to Automake tests. * Install all non-vendored 'testdata' directories from the source into the ptest package, as some packages share test data among multiple tests. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v5 05/13] go.bbclass: don't stage test data with sources

2018-03-04 Thread Matt Madison
Any directory in a Go package's source tree called 'testdata' contains test data, and isn't necessary for building. Some packages include ELF files and other binaries as test data, and staging them in the sysroot and -dev package leads to unnecessary QA warnings. Signed-off-by: Matt Madison

[OE-core] [PATCH v5 03/13] go.bbclass: rename GO_TMPDIR -> GOTMPDIR

2018-03-04 Thread Matt Madison
and export it. Go 1.10 now supports using this separate variable locating its temporary files. TMPDIR is still set, for compatibility with go1.9; that can be dropped once 1.9 is retired. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 13 +++--

[OE-core] [PATCH v5 02/13] go: set GOMIPS envrionment variable

2018-03-04 Thread Matt Madison
Go 1.10 adds support for selecting hard/soft float object code through the GOMIPS environment variable. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/goarch.bbclass| 11 +++ meta/recipes-devtools/go/go-cross-canadian.inc | 1 + meta/r

[OE-core] [PATCH v5 00/13] go1.10 update and misc improvements

2018-03-04 Thread Matt Madison
introduces significant changes to the go build tool as well, requiring some further patches to make it work for OE builds. See https://golang.org/doc/go1.10 for a complete list of new features and changes. Following the update are some cleanup/improvement patches. Matt Madison (13): go: update go 1.9

[OE-core] [PATCH v5 01/13] go: update go 1.9 -> go 1.10

2018-03-04 Thread Matt Madison
packaging QA warnings * Set GOCACHE to 'off' to disable 1.10's build caching in the go recipes and bbclass * Update go_do_compile to compile both static and dynamic objects dynamic linking is in use, since go1.10's build tool is pickier about this Signed-off-by: Matt Madison <matt@madison.syst

Re: [OE-core] [PATCH v4 00/13] go1.10 update and misc improvements

2018-03-03 Thread Matt Madison
On Sat, Mar 3, 2018 at 8:40 AM, Khem Raj <raj.k...@gmail.com> wrote: > > > On 3/2/18 12:33 PM, Matt Madison wrote: >> >> New in v4: >> * updated the go source patch to protect >>GOROOT to defer generating an error >>until a build a

Re: [OE-core] [PATCH v4 00/13] go1.10 update and misc improvements

2018-03-03 Thread Matt Madison
On Sat, Mar 3, 2018 at 8:53 AM, Richard Purdie <richard.pur...@linuxfoundation.org> wrote: > On Fri, 2018-03-02 at 12:33 -0800, Matt Madison wrote: >> New in v4: >> * updated the go source patch to protect >> GOROOT to defer generating an error >>

[OE-core] [PATCH v4 13/13] go-cross-canadian: remove verbosity setting from GO_LDFLAGS

2018-03-02 Thread Matt Madison
This was another setting left over from debugging the recipes, and isn't needed by default. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-cross-canadian.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/go/go

[OE-core] [PATCH v4 12/13] go-runtime: remove unneeded nativesdk override, rename variable

2018-03-02 Thread Matt Madison
since GO_LDFLAGS is also used by the dist tool, and it's confusing to use a variable with the same name (but not exported, so unused by make.bash/dist). Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-runtime.inc | 6 ++ 1 file changed, 2 insertions

[OE-core] [PATCH v4 11/13] packagegroup-go-sdk-target: add go-runtime-staticdev

2018-03-02 Thread Matt Madison
to allow go programs to be linked either statically or dynamically when cross-compiling with the SDK. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipe

[OE-core] [PATCH v4 08/13] go: move common settings to go-common.inc

2018-03-02 Thread Matt Madison
Eliminate some redundancy in the recipes by moving some commonly-used variable settings to the common include file. Also removed a duplicate inherit from go-target.inc that was already in go-common.inc. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools

[OE-core] [PATCH v4 07/13] goarch.bbclass: disable shared runtime for nativesdk builds

2018-03-02 Thread Matt Madison
While useful on embedded devices for saving disk space, use of shared runtime in Go is not the usual practice, so disable it for nativesdk builds. We don't use it for native builds, either, so this makes the SDK match the native environment more closely. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v4 10/13] go: disable PIE CFLAGS for nativesdk and cross-canadian builds

2018-03-02 Thread Matt Madison
The statically-linked Go code in the toolchain is not compatible with PIE, so disable its use in the C compiler during the toolchain build. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-cross-canadian.inc | 6 +++--- meta/recipes-devtools/go/go-targ

[OE-core] [PATCH v4 06/13] go.bbclass: ptest cleanup and improvements

2018-03-02 Thread Matt Madison
handle large numbers of tests, and to generate 'status: test name' output similar to Automake tests. * Install all non-vendored 'testdata' directories from the source into the ptest package, as some packages share test data among multiple tests. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v4 09/13] go.bbclass, goarch.bbclass: update SECURITY_CFLAGS

2018-03-02 Thread Matt Madison
With go1.10 the NOPIE flags are only required for MIPS target builds, and are now incompatible for the other architectures. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- meta/classes/goarch.bbclass | 1 + 2 files changed, 1 insertion(+), 3 del

[OE-core] [PATCH v4 05/13] go.bbclass: don't stage test data with sources

2018-03-02 Thread Matt Madison
Any directory in a Go package's source tree called 'testdata' contains test data, and isn't necessary for building. Some packages include ELF files and other binaries as test data, and staging them in the sysroot and -dev package leads to unnecessary QA warnings. Signed-off-by: Matt Madison

[OE-core] [PATCH v4 04/13] go.bbclass: remove debug-related commands

2018-03-02 Thread Matt Madison
The 'go env' in the do_compile function and the set -x/+x in the do_install_ptest function were used for debugging the bbclass, and aren't really needed. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- 1 file changed, 3 deletions(-) diff --git

[OE-core] [PATCH v4 00/13] go1.10 update and misc improvements

2018-03-02 Thread Matt Madison
list of new features and changes. Following the update are some cleanup/improvement patches. Matt Madison (13): go: update go 1.9 -> go 1.10 go: set GOMIPS envrionment variable go.bbclass: rename GO_TMPDIR -> GOTMPDIR go.bbclass: remove debug-related commands go.bbclass: don't stag

[OE-core] [PATCH v4 03/13] go.bbclass: rename GO_TMPDIR -> GOTMPDIR

2018-03-02 Thread Matt Madison
and export it. Go 1.10 now supports using this separate variable locating its temporary files, so TMPDIR doesn't have to be modified. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff

[OE-core] [PATCH v4 02/13] go: set GOMIPS envrionment variable

2018-03-02 Thread Matt Madison
Go 1.10 adds support for selecting hard/soft float object code through the GOMIPS environment variable. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/goarch.bbclass| 11 +++ meta/recipes-devtools/go/go-cross-canadian.inc | 1 + meta/r

[OE-core] [PATCH v4 01/13] go: update go 1.9 -> go 1.10

2018-03-02 Thread Matt Madison
packaging QA warnings * Set GOCACHE to 'off' to disable 1.10's build caching in the go recipes and bbclass * Update go_do_compile to compile both static and dynamic objects dynamic linking is in use, since go1.10's build tool is pickier about this Signed-off-by: Matt Madison <matt@madison.syst

Re: [OE-core] [PATCH v3 00/13] go1.10 update and misc improvements

2018-03-02 Thread Matt Madison
On Thu, Mar 1, 2018 at 10:10 PM, Khem Raj <raj.k...@gmail.com> wrote: > On Thu, Mar 1, 2018 at 9:43 PM, Khem Raj <raj.k...@gmail.com> wrote: >> >> >> On 3/1/18 3:16 PM, Matt Madison wrote: >>> >>> New in v3: >>> * reduced one of the

[OE-core] [PATCH v3 13/13] go-cross-canadian: remove verbosity setting from GO_LDFLAGS

2018-03-01 Thread Matt Madison
This was another setting left over from debugging the recipes, and isn't needed by default. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-cross-canadian.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/go/go

[OE-core] [PATCH v3 11/13] packagegroup-go-sdk-target: add go-runtime-staticdev

2018-03-01 Thread Matt Madison
to allow go programs to be linked either statically or dynamically when cross-compiling with the SDK. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-core/packagegroups/packagegroup-go-sdk-target.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipe

[OE-core] [PATCH v3 12/13] go-runtime: remove unneeded nativesdk override, rename variable

2018-03-01 Thread Matt Madison
since GO_LDFLAGS is also used by the dist tool, and it's confusing to use a variable with the same name (but not exported, so unused by make.bash/dist). --- meta/recipes-devtools/go/go-runtime.inc | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[OE-core] [PATCH v3 09/13] go.bbclass, goarch.bbclass: update SECURITY_CFLAGS

2018-03-01 Thread Matt Madison
With go1.10 the NOPIE flags are only required for MIPS target builds, and are now incompatible for the other architectures. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- meta/classes/goarch.bbclass | 1 + 2 files changed, 1 insertion(+), 3 del

[OE-core] [PATCH v3 10/13] go: disable PIE CFLAGS for nativesdk and cross-canadian builds

2018-03-01 Thread Matt Madison
The statically-linked Go code in the toolchain is not compatible with PIE, so disable its use in the C compiler during the toolchain build. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools/go/go-cross-canadian.inc | 6 +++--- meta/recipes-devtools/go/go-targ

[OE-core] [PATCH v3 08/13] go: move common settings to go-common.inc

2018-03-01 Thread Matt Madison
Eliminate some redundancy in the recipes by moving some commonly-used variable settings to the common include file. Also removed a duplicate inherit from go-target.inc that was already in go-common.inc. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/recipes-devtools

[OE-core] [PATCH v3 03/13] go.bbclass: rename GO_TMPDIR -> GOTMPDIR

2018-03-01 Thread Matt Madison
and export it. Go 1.10 now supports using this separate variable locating its temporary files, so TMPDIR doesn't have to be modified. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff

[OE-core] [PATCH v3 07/13] goarch.bbclass: disable shared runtime for nativesdk builds

2018-03-01 Thread Matt Madison
While useful on embedded devices for saving disk space, use of shared runtime in Go is not the usual practice, so disable it for nativesdk builds. We don't use it for native builds, either, so this makes the SDK match the native environment more closely. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v3 06/13] go.bbclass: ptest cleanup and improvements

2018-03-01 Thread Matt Madison
handle large numbers of tests, and to generate 'status: test name' output similar to Automake tests. * Install all non-vendored 'testdata' directories from the source into the ptest package, as some packages share test data among multiple tests. Signed-off-by: Matt Madison <m

[OE-core] [PATCH v3 05/13] go.bbclass: don't stage test data with sources

2018-03-01 Thread Matt Madison
Any directory in a Go package's source tree called 'testdata' contains test data, and isn't necessary for building. Some packages include ELF files and other binaries as test data, and staging them in the sysroot and -dev package leads to unnecessary QA warnings. Signed-off-by: Matt Madison

[OE-core] [PATCH v3 02/13] go: set GOMIPS envrionment variable

2018-03-01 Thread Matt Madison
Go 1.10 adds support for selecting hard/soft float object code through the GOMIPS environment variable. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/goarch.bbclass| 11 +++ meta/recipes-devtools/go/go-cross-canadian.inc | 1 + meta/r

[OE-core] [PATCH v3 04/13] go.bbclass: remove debug-related commands

2018-03-01 Thread Matt Madison
The 'go env' in the do_compile function and the set -x/+x in the do_install_ptest function were used for debugging the bbclass, and aren't really needed. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- 1 file changed, 3 deletions(-) diff --git

[OE-core] [PATCH v3 01/13] go: update go 1.9 -> go 1.10

2018-03-01 Thread Matt Madison
packaging QA warnings * Set GOCACHE to 'off' to disable 1.10's build caching in the go recipes and bbclass Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass| 2 + meta/recipes-devtools/go/go-1.10.inc | 21 ++ ...1-al

[OE-core] [PATCH v3 00/13] go1.10 update and misc improvements

2018-03-01 Thread Matt Madison
of new features and changes. Following the update are some cleanup/improvement patches. Matt Madison (13): go: update go 1.9 -> go 1.10 go: set GOMIPS envrionment variable go.bbclass: rename GO_TMPDIR -> GOTMPDIR go.bbclass: remove debug-related commands go.bbclass: don't stage tes

Re: [OE-core] [PATCH v2 1/8] go: update go 1.9 -> go 1.10

2018-02-28 Thread Matt Madison
On Wed, Feb 28, 2018 at 11:48 AM, Khem Raj <raj.k...@gmail.com> wrote: > On Tue, Feb 27, 2018 at 4:36 AM, Matt Madison <matt@madison.systems> wrote: >> * Patches and recipes reworked for go 1.10's significant >> changes to its bootstrap and build steps >> >

Re: [OE-core] [PATCH v2 0/8] go1.10 update and misc improvements

2018-02-28 Thread Matt Madison
Looks like a multilib issue. I'll fix it up and send out a v3. Thanks, -Matt On Wed, Feb 28, 2018 at 3:44 AM, Richard Purdie wrote: > On Wed, 2018-02-28 at 08:42 -0300, Otavio Salvador wrote: >> On Wed, Feb 28, 2018 at 8:37 AM, Richard Purdie >>

[OE-core] [PATCH v2 4/8] go.bbclass: remove debug-related commands

2018-02-27 Thread Matt Madison
The 'go env' in the do_compile function and the set -x/+x in the do_install_ptest function were used for debugging the bbclass, and aren't really needed. Signed-off-by: Matt Madison <matt@madison.systems> --- meta/classes/go.bbclass | 3 --- 1 file changed, 3 deletions(-) diff --git

  1   2   3   >