mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 03:48:45 +00:00
In Kata 1.x, agent interface is defined in agent repo and vendored by runtime. But in Kata 2.0, agent and runtime will use ttrpc as protocol, and agent is using rust language, so runtime can't vendor agent again, have to compile from agent's protobuf files. This PR will hold proto files under src/agent, and compile it to rust/go sources for agent/runtime. Typing `make generate-protocols` under root of this repo or `src/agent` can see how to use it. Signed-off-by: bin liu <bin@hyper.sh>
24 lines
332 B
Makefile
24 lines
332 B
Makefile
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
default: runtime agent
|
|
|
|
runtime:
|
|
make -C src/runtime
|
|
|
|
agent:
|
|
make -C src/agent
|
|
|
|
test-runtime:
|
|
make -C src/runtime test
|
|
|
|
test-agent:
|
|
make -C src/agent check
|
|
|
|
test: test-runtime test-agent
|
|
|
|
generate-protocols:
|
|
make -C src/agent generate-protocols
|