diff options
-rw-r--r-- | recipes-containers/cri-o/cri-o_git.bb | 7 | ||||
-rw-r--r-- | recipes-containers/cri-o/files/0001-Makefile-introduce-GO_TEST-for-more-flexible-configu.patch | 41 |
2 files changed, 3 insertions, 45 deletions
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index 2d971bd7..11374297 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb | |||
@@ -14,10 +14,9 @@ At a high level, we expect the scope of cri-o to be restricted to the following | |||
14 | - Resource isolation as required by the CRI \ | 14 | - Resource isolation as required by the CRI \ |
15 | " | 15 | " |
16 | 16 | ||
17 | SRCREV_cri-o = "318db72eb0b3d18c22c995aa7614a13142287296" | 17 | SRCREV_cri-o = "87ce1c120d022797913f0792e15dd0107d19dffe" |
18 | SRC_URI = "\ | 18 | SRC_URI = "\ |
19 | git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.32;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ | 19 | git://github.com/kubernetes-sigs/cri-o.git;branch=release-1.34;name=cri-o;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ |
20 | file://0001-Makefile-introduce-GO_TEST-for-more-flexible-configu.patch;patchdir=src/import \ | ||
21 | file://crio.conf \ | 20 | file://crio.conf \ |
22 | file://run-ptest \ | 21 | file://run-ptest \ |
23 | " | 22 | " |
@@ -28,7 +27,7 @@ LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c2 | |||
28 | 27 | ||
29 | GO_IMPORT = "import" | 28 | GO_IMPORT = "import" |
30 | 29 | ||
31 | PV = "1.32.2+git${SRCREV_cri-o}" | 30 | PV = "1.33.0+git${SRCREV_cri-o}" |
32 | 31 | ||
33 | inherit features_check ptest | 32 | inherit features_check ptest |
34 | REQUIRED_DISTRO_FEATURES ?= "seccomp" | 33 | REQUIRED_DISTRO_FEATURES ?= "seccomp" |
diff --git a/recipes-containers/cri-o/files/0001-Makefile-introduce-GO_TEST-for-more-flexible-configu.patch b/recipes-containers/cri-o/files/0001-Makefile-introduce-GO_TEST-for-more-flexible-configu.patch deleted file mode 100644 index 33c65b5a..00000000 --- a/recipes-containers/cri-o/files/0001-Makefile-introduce-GO_TEST-for-more-flexible-configu.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 656cb24b07b1e5b63939c15dc31d8c9839ecce75 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Tue, 14 Jan 2025 20:55:50 -0800 | ||
4 | Subject: [PATCH] Makefile: introduce GO_TEST for more flexible configuration | ||
5 | |||
6 | Introduce GO_TEST and make it similar to GO_BUILD. | ||
7 | |||
8 | Note that with this change, the default behavior changes a little bit, | ||
9 | that is, TRIMPATH, GCFLAGS and GO_LDFALGS all have effect on test/nri/nri.test. | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/cri-o/cri-o/pull/8912] | ||
12 | |||
13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
14 | --- | ||
15 | Makefile | 3 ++- | ||
16 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index 34f9d429d..f02213894 100644 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -3,6 +3,7 @@ GO ?= go | ||
23 | TRIMPATH ?= -trimpath | ||
24 | GO_ARCH=$(shell $(GO) env GOARCH) | ||
25 | GO_BUILD ?= $(GO) build $(TRIMPATH) | ||
26 | +GO_TEST ?= $(GO) test $(TRIMPATH) | ||
27 | GO_RUN ?= $(GO) run | ||
28 | NIX_IMAGE ?= nixos/nix:2.24.3 | ||
29 | |||
30 | @@ -213,7 +214,7 @@ test/checkcriu/checkcriu: $(GO_FILES) ## Build the checkcriu test binary. | ||
31 | $(GO_BUILD) $(GCFLAGS) $(GO_LDFLAGS) -tags "$(BUILDTAGS)" -o $@ ./test/checkcriu | ||
32 | |||
33 | test/nri/nri.test: $(wildcard test/nri/*.go) ## Build the NRI test binary. | ||
34 | - $(GO) test --tags "test $(BUILDTAGS)" -c ./test/nri -o $@ | ||
35 | + $(GO_TEST) $(GCFLAGS) $(GO_LDFLAGS) --tags "test $(BUILDTAGS)" -c ./test/nri -o $@ | ||
36 | |||
37 | bin/crio: $(GO_FILES) ## Build the CRI-O main binary. | ||
38 | $(GO_BUILD) $(GCFLAGS) $(GO_LDFLAGS) -tags "$(BUILDTAGS)" -o $@ ./cmd/crio | ||
39 | -- | ||
40 | 2.25.1 | ||
41 | |||