Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
build: Allow for kata project build
Browse files Browse the repository at this point in the history
Rework the build system to allow the runtime to be built for either
of the following:

- Clear Containers (`cc-runtime` binary and configuration)
- Kata Containers (`kata-runtime` binary and configuration)

The existing build rules are retained but there are now two new rules:

```
$ make build-kata-system
$ sudo make install-kata-system
```

Two new variables have also been added:

- `KATA_SYSTEM_BUILD`: set to any value to build/install for Kata.
- `SYSTEM_BUILD_TYPE`: build for either Clear Containers (set to `cc`) or
  Kata (set to `kata`).

See `make help` for further details.

Note that configuration files are installed to a project-specific
directory, allowing for systems to be installed for both Kata and Clear
Containers.

Finally, the bash completion and collection scripts have been updated
to work for either project.

Fixes #919, #921.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Jan 18, 2018
1 parent 5d7237e commit 6cc2899
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 96 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/cc-runtime
/kata-runtime
/coverage.html
/config-generated.go
/data/cc-collect-data.sh
/data/cc-collect-data.sh.in
/data/completions/bash/cc-runtime
/data/completions/bash/cc-runtime.in
/config/configuration.toml
Loading

0 comments on commit 6cc2899

Please sign in to comment.