From 204d607fcec94b63de3d11a9441adf8d2dff8f84 Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Mon, 10 Apr 2023 14:01:57 -0400 Subject: [PATCH 1/2] build: add local-core Makefile target Signed-off-by: Justin Alvarez --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 425eff1e6..0d04aa84b 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 finch-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 From c143d15ebbeb81af2f0dd2254c777250f532a42a Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Mon, 10 Apr 2023 14:08:21 -0400 Subject: [PATCH 2/2] fix typo Signed-off-by: Justin Alvarez --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0d04aa84b..c8724d268 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ arch-test: 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 finch-core finch.yaml +all-local: arch-test finch networks.yaml config.yaml lima-and-qemu local-core finch.yaml .PHONY: finch-core finch-core: