Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/55095 )
Change subject: payloads/Linuxboot/u-root: Explicitly set GO111MODULE=off ......................................................................
payloads/Linuxboot/u-root: Explicitly set GO111MODULE=off
With go1.16 the default for GO111MODULe was changed from 'off' to 'on' which breaks building u-root.
Change-Id: Ie90b400418ccd06426a0e00ec7f7932066f57d7e Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M payloads/external/LinuxBoot/targets/u-root.mk 1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/55095/1
diff --git a/payloads/external/LinuxBoot/targets/u-root.mk b/payloads/external/LinuxBoot/targets/u-root.mk index 0cf91fe..026ff5d 100644 --- a/payloads/external/LinuxBoot/targets/u-root.mk +++ b/payloads/external/LinuxBoot/targets/u-root.mk @@ -40,10 +40,10 @@ get: version if [ -d "$(go_path_dir)/src/$(uroot_package)" ]; then \ git -C $(go_path_dir)/src/$(uroot_package) checkout --quiet master; \ - GOPATH=$(go_path_dir) go get -d -u -v $(uroot_package) || \ + GOPATH=$(go_path_dir) GO111MODULE=off go get -d -u -v $(uroot_package) || \ echo -e "\n<<u-root package update failed>>\n"; \ else \ - GOPATH=$(go_path_dir) go get -d -u -v $(uroot_package) || \ + GOPATH=$(go_path_dir) GO111MODULE=off go get -d -u -v $(uroot_package) || \ (echo -e "\n<<failed to get u-root package. Please check your internet access>>\n" && \ exit 1); \ fi @@ -52,10 +52,10 @@ git -C $(go_path_dir)/src/$(uroot_package) checkout --quiet $(CONFIG_LINUXBOOT_UROOT_VERSION)
build: checkout - GOPATH=$(go_path_dir) go build -o $(uroot_bin) $(uroot_package) + GOPATH=$(go_path_dir) GO111MODULE=off go build -o $(uroot_bin) $(uroot_package)
u-root: build - GOARCH=$(ARCH-y) GOPATH=$(go_path_dir) $(uroot_bin) \ + GOARCH=$(ARCH-y) GOPATH=$(go_path_dir) GO111MODULE=off $(uroot_bin) \ $(uroot_args) -o $(project_dir)/initramfs_u-root.cpio $(uroot_cmds)
.PHONY: all u-root build checkout get version