diff options
Diffstat (limited to 'recipes-containers/cri-o/cri-o_git.bb')
| -rw-r--r-- | recipes-containers/cri-o/cri-o_git.bb | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index efc86fbe..f04c4feb 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb | |||
| @@ -17,7 +17,9 @@ At a high level, we expect the scope of cri-o to be restricted to the following | |||
| 17 | SRCREV_cri-o = "20c06a19cb395445620c31730c0f1a0a1922eaae" | 17 | SRCREV_cri-o = "20c06a19cb395445620c31730c0f1a0a1922eaae" |
| 18 | SRC_URI = "\ | 18 | SRC_URI = "\ |
| 19 | git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.31;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ | 19 | git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.31;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ |
| 20 | file://0001-Add-trimpath-to-build-nri.test.patch \ | ||
| 20 | file://crio.conf \ | 21 | file://crio.conf \ |
| 22 | file://run-ptest \ | ||
| 21 | " | 23 | " |
| 22 | 24 | ||
| 23 | # Apache-2.0 for docker | 25 | # Apache-2.0 for docker |
| @@ -28,7 +30,7 @@ GO_IMPORT = "import" | |||
| 28 | 30 | ||
| 29 | PV = "1.31.0+git${SRCREV_cri-o}" | 31 | PV = "1.31.0+git${SRCREV_cri-o}" |
| 30 | 32 | ||
| 31 | inherit features_check | 33 | inherit features_check ptest |
| 32 | REQUIRED_DISTRO_FEATURES ?= "seccomp" | 34 | REQUIRED_DISTRO_FEATURES ?= "seccomp" |
| 33 | 35 | ||
| 34 | DEPENDS = " \ | 36 | DEPENDS = " \ |
| @@ -69,6 +71,13 @@ do_compile() { | |||
| 69 | oe_runmake binaries | 71 | oe_runmake binaries |
| 70 | } | 72 | } |
| 71 | 73 | ||
| 74 | do_compile_ptest() { | ||
| 75 | set +e | ||
| 76 | |||
| 77 | cd ${S}/src/import | ||
| 78 | |||
| 79 | oe_runmake test-binaries | ||
| 80 | } | ||
| 72 | SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" | 81 | SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" |
| 73 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}" | 82 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}" |
| 74 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | 83 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" |
| @@ -100,6 +109,12 @@ do_install() { | |||
| 100 | install -d ${D}${localstatedir}/lib/crio | 109 | install -d ${D}${localstatedir}/lib/crio |
| 101 | } | 110 | } |
| 102 | 111 | ||
| 112 | do_install_ptest() { | ||
| 113 | install -d ${D}${PTEST_PATH}/test | ||
| 114 | install -d ${D}${PTEST_PATH}/bin | ||
| 115 | cp -rf ${S}/src/import/test ${D}${PTEST_PATH} | ||
| 116 | cp -rf ${S}/src/import/bin ${D}${PTEST_PATH} | ||
| 117 | } | ||
| 103 | FILES:${PN}-config = "${sysconfdir}/crio/config/*" | 118 | FILES:${PN}-config = "${sysconfdir}/crio/config/*" |
| 104 | FILES:${PN} += "${systemd_unitdir}/system/*" | 119 | FILES:${PN} += "${systemd_unitdir}/system/*" |
| 105 | FILES:${PN} += "/usr/local/bin/*" | 120 | FILES:${PN} += "/usr/local/bin/*" |
| @@ -109,7 +124,21 @@ FILES:${PN} += "/usr/share/containers/oci/hooks.d" | |||
| 109 | ALLOW_EMPTY:${PN} = "1" | 124 | ALLOW_EMPTY:${PN} = "1" |
| 110 | 125 | ||
| 111 | INSANE_SKIP:${PN} += "ldflags already-stripped textrel" | 126 | INSANE_SKIP:${PN} += "ldflags already-stripped textrel" |
| 127 | INSANE_SKIP:${PN}-ptest += "textrel" | ||
| 112 | 128 | ||
| 113 | deltask compile_ptest_base | 129 | RDEPENDS:${PN}-ptest += " \ |
| 130 | bash \ | ||
| 131 | bats \ | ||
| 132 | cni \ | ||
| 133 | crictl \ | ||
| 134 | coreutils \ | ||
| 135 | dbus-daemon-proxy \ | ||
| 136 | iproute2 \ | ||
| 137 | util-linux-unshare \ | ||
| 138 | jq \ | ||
| 139 | slirp4netns \ | ||
| 140 | parallel \ | ||
| 141 | podman \ | ||
| 142 | " | ||
| 114 | 143 | ||
| 115 | COMPATIBLE_HOST = "^(?!(qemu)?mips).*" | 144 | COMPATIBLE_HOST = "^(?!(qemu)?mips).*" |
