build: Add minimal Makefile#16
Conversation
|
Notes:
|
|
For fairness we will change the |
grahamwhaley
left a comment
There was a problem hiding this comment.
As you noted, the CC path is hardwired and linked into how the CC runtime builds, but as a first pass to get us up and running:
lgtm
Makefile
Outdated
| endif | ||
|
|
||
| # remove goals that don't require the variable to be set | ||
| remaining=$(filter-out clean help,$(MAKECMDGOALS)) |
There was a problem hiding this comment.
You scary Make guru :-)
| endif | ||
|
|
||
| clean: | ||
| rm -f $(KATA_RUNTIME_PATH) |
There was a problem hiding this comment.
You could run clean in the (configured, or both?) runtime dirs as well maybe.
e7c0521 to
4bcefc2
Compare
|
@sameo - the CC runtime is now built as |
|
lgtm |
|
|
||
| ifeq (runv,$(KATA_RUNTIME)) | ||
| RUNTIME_DIR = runv | ||
| RUNTIME_NAME = runv |
There was a problem hiding this comment.
Nevermind -- I see that our runtime name is updated just to avoid confusion and we ultimately make the symlink regardless.
Thanks James -- looks fine to me....
There was a problem hiding this comment.
Probably, but runv's build doesn't allow the target name to be overridden unfortunately.
|
|
||
| ifeq (runv,$(KATA_RUNTIME)) | ||
| RUNTIME_DIR = runv | ||
| RUNTIME_NAME = runv |
There was a problem hiding this comment.
Nevermind -- I see that our runtime name is updated just to avoid confusion and we ultimately make the symlink regardless.
Thanks James -- looks fine to me....
|
@bergwolf is working on fix on runv side to make it could pass the makefile |
Add a basic `Makefile` to allow a runtime to be built: - Clear Containers-based Kata runtime: ``` $ make KATA_RUNTIME=cc [install] ``` - `runv`-based Kata runtime: ``` $ make KATA_RUNTIME=runv [install] ``` Fixes kata-containers#15. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
4bcefc2 to
6faabd2
Compare
|
fyi, I've opened #18 to fix runv build in kata runtimes repo. |
|
Thanks @sameo ! That one can go in as well. lgtm! |
clean up config.go
The latest runc vendoring requires this version. Shortlog: d983527 (HEAD -> master, origin/master, origin/HEAD) Fix capHeader.pid type (kata-containers#16) 33e07d3 capability: Deprecate NewPid and NewFile for NewPid2 and NewFile2 (kata-containers#14) Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
Add a basic
Makefileto allow a runtime to be built:Clear Containers-based Kata runtime:
runv-based Kata runtime:Fixes #15.
Signed-off-by: James O. D. Hunt james.o.hunt@intel.com