Message ID | 1462207070.27026.20.camel@infradead.org |
---|---|
State | Not Applicable |
Headers | show |
Hello, On Mon, 02 May 2016 09:37:50 -0700, Geoff Levand wrote: > I have the patch below that adds BR2_TOOLCHAIN_HAS_THREADS. Is > it enough to pull in the toolchain? No, adding dependencies at the Config.in level doesn't change anything in terms of build order. Thomas
On Tue, 2016-05-03 at 09:08 +0200, Thomas Petazzoni wrote: > On Mon, 02 May 2016 09:37:50 -0700, Geoff Levand wrote: > > > I have the patch below that adds BR2_TOOLCHAIN_HAS_THREADS. Is > > it enough to pull in the toolchain? > > No, adding dependencies at the Config.in level doesn't change anything > in terms of build order. It seems one of these in go-bootstrap.mk should work, is either one prefered? +HOST_GO_BOOTSTRAP_DEPENDENCIES = host-go-bootstrap +HOST_GO_BOOTSTRAP_ADD_TOOLCHAIN_DEPENDENCY = YES -Geoff
On Fri, 2016-05-06 at 12:57 -0700, Geoff Levand wrote: > On Tue, 2016-05-03 at 09:08 +0200, Thomas Petazzoni wrote: > > On Mon, 02 May 2016 09:37:50 -0700, Geoff Levand wrote: > > > > > I have the patch below that adds BR2_TOOLCHAIN_HAS_THREADS. Is > > > it enough to pull in the toolchain? > > > > No, adding dependencies at the Config.in level doesn't change > > anything > > in terms of build order. > > It seems one of these in go-bootstrap.mk should work, is either > one prefered? > > +HOST_GO_BOOTSTRAP_DEPENDENCIES = host-go-bootstrap +HOST_GO_BOOTSTRAP_DEPENDENCIES = host-toolchain > > +HOST_GO_BOOTSTRAP_ADD_TOOLCHAIN_DEPENDENCY = YES
On 05/06/16 21:58, Geoff Levand wrote: > On Fri, 2016-05-06 at 12:57 -0700, Geoff Levand wrote: >> On Tue, 2016-05-03 at 09:08 +0200, Thomas Petazzoni wrote: >>> On Mon, 02 May 2016 09:37:50 -0700, Geoff Levand wrote: >>> >>>> I have the patch below that adds BR2_TOOLCHAIN_HAS_THREADS. Is >>>> it enough to pull in the toolchain? >>> >>> No, adding dependencies at the Config.in level doesn't change >>> anything >>> in terms of build order. >> >> It seems one of these in go-bootstrap.mk should work, is either >> one prefered? >> >> +HOST_GO_BOOTSTRAP_DEPENDENCIES = host-go-bootstrap > > +HOST_GO_BOOTSTRAP_DEPENDENCIES = host-toolchain > >> >> +HOST_GO_BOOTSTRAP_ADD_TOOLCHAIN_DEPENDENCY = YES I don't see how either of these could work... AFAICS, host-toolchain doesn't exist, and _ADD_TOOLCHAIN_DEPENDENCY is only checked for target packages. What should work however: HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain Regards, Arnout
diff --git a/package/go/Config.in.host b/package/go/Config.in.host index 094e402..e988483 100644 --- a/package/go/Config.in.host +++ b/package/go/Config.in.host @@ -1,5 +1,6 @@ config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS bool default y + depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_powerpc depends on !BR2_ARM_CPU_ARMV4