mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
f0067d4b5c
commit
1d83f7bdce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user