diff options
| -rw-r--r-- | recipes-containers/crun/crun_git.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb index 5e25bd74..e9f8f58d 100644 --- a/recipes-containers/crun/crun_git.bb +++ b/recipes-containers/crun/crun_git.bb | |||
| @@ -22,6 +22,10 @@ S = "${WORKDIR}/git" | |||
| 22 | 22 | ||
| 23 | inherit autotools-brokensep pkgconfig | 23 | inherit autotools-brokensep pkgconfig |
| 24 | 24 | ||
| 25 | # if this is true, we'll symlink crun to runc for easier integration | ||
| 26 | # with container stacks | ||
| 27 | CRUN_AS_RUNC ?= "true" | ||
| 28 | |||
| 25 | PACKAGECONFIG ??= " \ | 29 | PACKAGECONFIG ??= " \ |
| 26 | caps external-yajl man \ | 30 | caps external-yajl man \ |
| 27 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'seccomp', '', d)} \ | 31 | ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'seccomp', '', d)} \ |
| @@ -47,4 +51,7 @@ do_configure:prepend () { | |||
| 47 | 51 | ||
| 48 | do_install() { | 52 | do_install() { |
| 49 | oe_runmake 'DESTDIR=${D}' install | 53 | oe_runmake 'DESTDIR=${D}' install |
| 54 | if [ -n "${CRUN_AS_RUNC}" ]; then | ||
| 55 | ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc" | ||
| 56 | fi | ||
| 50 | } | 57 | } |
