From f86c56f68273cc4d8c9584477793fc7efa148e76 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 10 Apr 2023 15:48:52 -0400 Subject: [PATCH] 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 --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 425eff1e6..c8724d268 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,9 @@ arch-test: .PHONY: all all: arch-test finch finch-core finch.yaml networks.yaml config.yaml lima-and-qemu +.PHONY: all-local +all-local: arch-test finch networks.yaml config.yaml lima-and-qemu local-core finch.yaml + .PHONY: finch-core finch-core: cd deps/finch-core && \ @@ -68,6 +71,19 @@ finch-core: cd deps/finch-core/_output && tar c * | tar Cvx $(OUTDIR) rm -rf $(OUTDIR)/lima-template +.PHONY: local-core +local-core: + cd deps/finch-core && \ + FINCH_OS_x86_URL="$(FINCH_OS_x86_URL)" \ + FINCH_OS_AARCH64_URL="$(FINCH_OS_AARCH64_URL)" \ + VDE_TEMP_PREFIX=$(CORE_VDE_PREFIX) \ + $(MAKE) lima lima-socket-vmnet + + mkdir -p _output + cd deps/finch-core/_output && tar c * | tar Cvx $(OUTDIR) + cd deps/finch-core/src/lima/_output && tar c * | tar Cvx $(OUTDIR)/lima + rm -rf $(OUTDIR)/lima-template + .PHONY: lima-and-qemu lima-and-qemu: networks.yaml mkdir -p $(OUTDIR)/downloads