Skip to content

Commit 29e6406

Browse files
nhivprminnich
authored andcommitted
ampere/jade: Fix geturoot failling to download u-root/cpu
For go version 1.17, the 'go get' command is a combination of downloading and installing a package. We have to use -d flag to skip installing the package. For future go versions, the -d flag will be enabled by default, so we have to use 'go install' to install the package instead. This patch also fixes the go/u-root version to avoid unexpected compatibility issue between golang and u-root. Without specifying the version, the go always gets the latest version. Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
1 parent 996bb18 commit 29e6406

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mainboards/ampere/jade/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ getkernel:
7979
(cd linux && ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make tinyconfig)
8080

8181
geturoot:
82-
go get -u github.com/u-root/u-root
83-
go get -u github.com/u-root/cpu/...
82+
go install github.com/u-root/u-root@v0.9.0
83+
go get -d github.com/u-root/cpu/...
8484

8585
# Serve the combined sshd-kernel and sshd-initramfs image. This includes flashrom
8686
sshd-pxeserver:

0 commit comments

Comments
 (0)