Skip to content

Commit f86c56f

Browse files
authored
build: add local-core Makefile target (#351)
Issue #, if available: *Description of changes:* - adds new Makefile target that uses the locally compiled submodule version of Lima instead of the version from the lima-and-qemu remote archive. This allows more easy testing of local submodule changes before building a new lima-and-qemu archive. *Testing done:* - local testing - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: Justin Alvarez <[email protected]>
1 parent 6a77f72 commit f86c56f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ arch-test:
5656
.PHONY: all
5757
all: arch-test finch finch-core finch.yaml networks.yaml config.yaml lima-and-qemu
5858

59+
.PHONY: all-local
60+
all-local: arch-test finch networks.yaml config.yaml lima-and-qemu local-core finch.yaml
61+
5962
.PHONY: finch-core
6063
finch-core:
6164
cd deps/finch-core && \
@@ -68,6 +71,19 @@ finch-core:
6871
cd deps/finch-core/_output && tar c * | tar Cvx $(OUTDIR)
6972
rm -rf $(OUTDIR)/lima-template
7073

74+
.PHONY: local-core
75+
local-core:
76+
cd deps/finch-core && \
77+
FINCH_OS_x86_URL="$(FINCH_OS_x86_URL)" \
78+
FINCH_OS_AARCH64_URL="$(FINCH_OS_AARCH64_URL)" \
79+
VDE_TEMP_PREFIX=$(CORE_VDE_PREFIX) \
80+
$(MAKE) lima lima-socket-vmnet
81+
82+
mkdir -p _output
83+
cd deps/finch-core/_output && tar c * | tar Cvx $(OUTDIR)
84+
cd deps/finch-core/src/lima/_output && tar c * | tar Cvx $(OUTDIR)/lima
85+
rm -rf $(OUTDIR)/lima-template
86+
7187
.PHONY: lima-and-qemu
7288
lima-and-qemu: networks.yaml
7389
mkdir -p $(OUTDIR)/downloads

0 commit comments

Comments
 (0)