summaryrefslogtreecommitdiff
path: root/src/sbom
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2023-09-12 16:20:17 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-11-20 14:32:54 +0000
commitb57f87fb9ae514a2c0bf0825d8c410af48b05b3f (patch)
tree4bb532a2c5eb2b66491240a99f5d14406f561564 /src/sbom
parentec1a880c518b2e521a0e2842cfa1c2cec7bc31a1 (diff)
sbom/Makefile.inc: Change GOPATH
This changes the path where go installs its packages. Now the packages are not installed in the users home directory anymore. This solution is not perfect though, since offline build are still not possible, because go will fetch the packages at build time. -modcacherw will create the go files with rw permissions, otherwise coreboot is not able to delete the files afterwards (make distclean). Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: I2a35369628454057ea4758cd1225e57f07cb71c8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77780 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src/sbom')
-rw-r--r--src/sbom/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbom/Makefile.inc b/src/sbom/Makefile.inc
index 21e2fa4e18..7783f092c3 100644
--- a/src/sbom/Makefile.inc
+++ b/src/sbom/Makefile.inc
@@ -99,7 +99,7 @@ $(build-dir):
$(build-dir)/goswid: | $(build-dir)
echo " SBOM building goswid tool"
cd util/goswid; \
- GO111MODULE=on go build -o $(abspath $@) ./cmd/goswid
+ GOPATH=$(abspath build/go) GO111MODULE=on go build -modcacherw -o $(abspath $@) ./cmd/goswid
## Generate all .json files