From 1d83f7bdce0261ebdebfb63a10b93fc8665167ba Mon Sep 17 00:00:00 2001 From: Francis Lam Date: Mon, 11 Feb 2019 12:33:04 -0800 Subject: [PATCH] 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. --- modules/u-root | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/u-root b/modules/u-root index c943bef4..27699f14 100644 --- a/modules/u-root +++ b/modules/u-root @@ -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