module/u-root: added build parameter for uroot template

Instead of using UROOT_CMDS too specify the packages to include
use UROOT_TEMPLATE=minimal or all, etc.
This commit is contained in:
Francis Lam 2019-02-11 12:33:04 -08:00
parent f0067d4b5c
commit 1d83f7bdce
No known key found for this signature in database
GPG Key ID: 0A59C698920806EB

View File

@ -7,6 +7,7 @@
u-root_url := github.com/u-root/u-root
u-root_output := $(build)/$(BOARD)/u-root.cpio
UROOT_CMDS ?=
UROOT_TEMPLATE ?=
export GOPATH=$(build)/go
u-root_src_cmds := $(foreach cmd,$(UROOT_CMDS),github.com/u-root/u-root/cmds/$(cmd))
@ -34,6 +35,7 @@ $(u-root_output): $(u-root_build) $(u-root_uinit)
-format=cpio \
-o $@ \
$(u-root_src_cmds)\
$(UROOT_TEMPLATE) \
)
# Override the initrd inputs and add in the kernel modules