Message ID | 85bdd1b26ba56471330e98465095d943b54e3e74.1695644947.git.yann.morin@orange.com |
---|---|
State | Superseded |
Headers | show |
Series | [PATCHv2] package/go: cgo for the target needs the toolchain | expand |
On Mon, 25 Sep 2023 14:29:15 +0200 <yann.morin@orange.com> wrote: > From: "Yann E. MORIN" <yann.morin@orange.com> So if you're the author... > When the target is not supported by go, then there is obviously no need > to depend on the toolchain (even if we unconditionally enable cgo > support in only-for-the-host host-go). > > Signed-off-by: Christian Stewart <christian@aperture.us> Christian should not be the first Signed-off-by, but you should be. I believe this was originally written by Christian, and you extended the commit log/improved the patch, so I guess Christian should be kept as the author. > [yann.morin@orange.com: > - only add the toolchain dependency for target cgo > - reword commit log > ] > Signed-off-by: Yann E. MORIN <yann.morin@orange.com> > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> > Cc: Anisse Astier <anisse@astier.eu> Thanks! Thomas
Thomas, All, On 2023-09-25 15:42 +0200, Thomas Petazzoni spake thusly: > On Mon, 25 Sep 2023 14:29:15 +0200 > <yann.morin@orange.com> wrote: > > From: "Yann E. MORIN" <yann.morin@orange.com> > So if you're the author... > > When the target is not supported by go, then there is obviously no need > > to depend on the toolchain (even if we unconditionally enable cgo > > support in only-for-the-host host-go). > > > > Signed-off-by: Christian Stewart <christian@aperture.us> > Christian should not be the first Signed-off-by, but you should be. Indeed, I forgot to fixup authorship when working on the patch... > I believe this was originally written by Christian, and you extended > the commit log/improved the patch, so I guess Christian should be kept > as the author. Absolutely, yes. Regards, Yann E. MORIN. > > [yann.morin@orange.com: > > - only add the toolchain dependency for target cgo > > - reword commit log > > ] > > Signed-off-by: Yann E. MORIN <yann.morin@orange.com> > > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> > > Cc: Anisse Astier <anisse@astier.eu> > > Thanks! > > Thomas > -- > Thomas Petazzoni, co-owner and CEO, Bootlin > Embedded Linux and Kernel engineering and training > https://bootlin.com
diff --git a/package/go/go.mk b/package/go/go.mk index e5195089ac..6f080be5c0 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -90,6 +90,7 @@ HOST_GO_TARGET_ENV = \ # any target package needing cgo support must include # 'depends on BR2_TOOLCHAIN_HAS_THREADS' in its config file. ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +HOST_GO_DEPENDENCIES += toolchain HOST_GO_CGO_ENABLED = 1 else HOST_GO_CGO_ENABLED = 0