Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add local-core Makefile target #351

Merged
merged 2 commits into from
Apr 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
ningziwen marked this conversation as resolved.
Show resolved Hide resolved

.PHONY: finch-core
finch-core:
cd deps/finch-core && \
Expand All @@ -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
Expand Down