Skip to content

Commit 4c82d74

Browse files
Update u-root build with 'uroot-source' flag for newer upstream tip
Verified with u-root upstream commit 504ed8127, u-root initramfs can be built. Without this would see build error. To get the old behavior check out commit 8b790de for your u-root. For more detail please see https://github.com/u-root/u-root Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
1 parent 49b85ed commit 4c82d74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ $(INITRAMFS_OUT): $(INITRAMFS_DEPS_FLAG) $(INITRAMFS_PATCH_FLAG)
250250
GOCACHE=$(INITRAMFS_BUILD_DIR)/go/.cache \
251251
GOPATH=$(INITRAMFS_BUILD_DIR)/gopath:$(UROOT_ADDITIONAL_GOPATH) \
252252
$(INITRAMFS_BUILD_DIR)/go/bin/go run github.com/u-root/u-root \
253-
-build=bb -o $@ -uinitcmd=$(UINIT_CMD) \
253+
-build=bb -uroot-source $(INITRAMFS_BUILD_DIR)/gopath/src/github.com/u-root/u-root -o $@ -uinitcmd=$(UINIT_CMD) \
254254
$(addprefix -files=,$(BASE_FILES) $(UROOT_ADDITIONAL_FILES)) \
255255
$(UROOT_ADDITIONAL_CMDS) \
256256
$(UROOT_BASE_CMDS) \

0 commit comments

Comments
 (0)