Skip to content

Commit

Permalink
fix: use u-root binary in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Dec 6, 2023
1 parent 8fe569d commit f84d940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(INITFSZ_X64): $(INITFS_X64)

$(INITFS_X64):
mkdir -p build
GBB_PATH=u-root go run ./u-root -o $(WORKDIR)/$(INITFS_X64) -uinitcmd="elvish -c 'sleep 3; boot'" core ./cmds/boot/boot
GBB_PATH=u-root u-root -o $(WORKDIR)/$(INITFS_X64) -uinitcmd="elvish -c 'sleep 3; boot'" core ./cmds/boot/boot


# Use 'make arm64' to build ARM64 (cross-compiling is supported).
Expand All @@ -72,7 +72,7 @@ $(INITFSZ_A64): $(INITFS_A64)

$(INITFS_A64):
mkdir -p build images
GBB_PATH=u-root GOOS=linux GOARCH=arm64 go run ./u-root -o $(WORKDIR)/$(INITFS_A64) -uinitcmd="elvish -c 'sleep 3; boot'" core ./cmds/boot/boot
GBB_PATH=u-root GOOS=linux GOARCH=arm64 u-root -o $(WORKDIR)/$(INITFS_A64) -uinitcmd="elvish -c 'sleep 3; boot'" core ./cmds/boot/boot

clean:
rm -rf $(WORKDIR)

0 comments on commit f84d940

Please sign in to comment.