Skip to content

Commit 5f3b89a

Browse files
author
Ian Campbell
committed
Add make variables to add options to linuxkit build
$(LINUXKIT_ARGS) is added before the subcommand and $(LINUXKIT_BUILD_ARGS) is added after the `build` subcommand (since args are positional). Signed-off-by: Ian Campbell <[email protected]>
1 parent 6cea269 commit 5f3b89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ KUBE_FORMAT_ARGS := $(patsubst %,-format %,$(KUBE_FORMATS))
1414
all: kube-master.iso kube-node.iso
1515

1616
kube-master.iso: yml/kube.yml yml/$(KUBE_RUNTIME).yml yml/$(KUBE_RUNTIME)-master.yml yml/$(KUBE_NETWORK).yml
17-
linuxkit build -name kube-master $(KUBE_FORMAT_ARGS) $^
17+
linuxkit $(LINUXKIT_ARGS) build $(LINUXKIT_BUILD_ARGS) -name kube-master $(KUBE_FORMAT_ARGS) $^
1818

1919
kube-node.iso: yml/kube.yml yml/$(KUBE_RUNTIME).yml yml/$(KUBE_NETWORK).yml
20-
linuxkit build -name kube-node $(KUBE_FORMAT_ARGS) $^
20+
linuxkit $(LINUXKIT_ARGS) build $(LINUXKIT_BUILD_ARGS) -name kube-node $(KUBE_FORMAT_ARGS) $^
2121

2222
yml/weave.yml: kube-weave.yaml
2323

0 commit comments

Comments
 (0)