diff options
| author | Yann E. MORIN <yann.morin@orange.com> | 2022-02-10 16:29:28 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2022-03-07 22:07:49 +0100 |
| commit | 3539f45ca09558a22fb5816baae9088c34490380 (patch) | |
| tree | c6af2c011889829f5d7ccd8d4e2992892c8ef2c6 | |
| parent | a1ef4c1d9ad1b0fc5c94cbb7aa85347243006b64 (diff) | |
| download | buildroot-3539f45ca09558a22fb5816baae9088c34490380.tar.bz2 | |
package/pkg-golang: host-go is also a build dependency
Currently, host-go is a download dependency, because we need go for the
vendoring during the download step.
However, when using a package in override-srcdir, there is no download
step, so host-go is not pulled in as a dependency, which will break the
build of a single package from scratch.
We fix that by adding host-go as a standard dependency too.
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Christian Stewart <christian@paral.in>
Cc: Anisse Astier <anisse@astier.eu>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Christian Stewart <christian@paral.in>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| -rw-r--r-- | package/pkg-golang.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk index 69eae02830..ddefdf1214 100644 --- a/package/pkg-golang.mk +++ b/package/pkg-golang.mk @@ -47,8 +47,10 @@ $(2)_BUILD_OPTS += \ -trimpath \ -p $(PARALLEL_JOBS) -# Target packages need the Go compiler on the host. +# Target packages need the Go compiler on the host at download time (for +# vendoring), and at build and install time. $(2)_DOWNLOAD_DEPENDENCIES += host-go +$(2)_DEPENDENCIES += host-go $(2)_BUILD_TARGETS ?= . |
