Skip to content

Commit

Permalink
fix: builds on u-root v0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed May 8, 2024
1 parent e9c1dd6 commit de0a551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $(INITFSZ_X64): $(INITFS_X64)

$(INITFS_X64):
mkdir -p build
GBB_PATH=u-root u-root -o $(WORKDIR)/$(INITFS_X64) -uinitcmd="elvish -c 'sleep 3; boot'" core ./cmds/boot/boot
pushd u-root && GBB_PATH=u-root GOOS=linux GOARCH=x86_64 u-root -o ../$(WORKDIR)/$(INITFS_X64) -uinitcmd="elvish -c 'sleep 3; boot'" core cmds/boot/boot; popd


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

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

clean:
rm -rf $(WORKDIR)
2 changes: 1 addition & 1 deletion u-root
Submodule u-root updated 2179 files

0 comments on commit de0a551

Please sign in to comment.