summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-containers/oci-runtime-tools/files/0001-build-use-for-cross-compiler.patch23
-rw-r--r--recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb16
2 files changed, 22 insertions, 17 deletions
diff --git a/recipes-containers/oci-runtime-tools/files/0001-build-use-for-cross-compiler.patch b/recipes-containers/oci-runtime-tools/files/0001-build-use-for-cross-compiler.patch
index fedfad37..98194265 100644
--- a/recipes-containers/oci-runtime-tools/files/0001-build-use-for-cross-compiler.patch
+++ b/recipes-containers/oci-runtime-tools/files/0001-build-use-for-cross-compiler.patch
@@ -8,24 +8,21 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
8 a/src/import/Makefile | 4 ++-- 8 a/src/import/Makefile | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-) 9 1 file changed, 2 insertions(+), 2 deletions(-)
10 10
11diff --git a/src/import/Makefile a/src/import/Makefile 11Index: oci-runtime-tools-0.9.0+gitAUTOINC+0105384f68/src/import/Makefile
12index 77626d2..c3a0760 100644 12===================================================================
13--- a/src/import/Makefile 13--- oci-runtime-tools-0.9.0+gitAUTOINC+0105384f68.orig/src/import/Makefile
14+++ a/src/import/Makefile 14+++ oci-runtime-tools-0.9.0+gitAUTOINC+0105384f68/src/import/Makefile
15@@ -8,11 +8,11 @@ COMMIT=$(shell git rev-parse HEAD 2> /dev/null || true) 15@@ -13,11 +13,11 @@
16 all: tool runtimetest 16 all: tool runtimetest validation-executables
17 17
18 tool: 18 tool:
19- go build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" -o oci-runtime-tool ./cmd/oci-runtime-tool 19- go build $(BUILD_FLAGS) -o oci-runtime-tool ./cmd/oci-runtime-tool
20+ ${GO} build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" -o oci-runtime-tool ./cmd/oci-runtime-tool 20+ ${GO} build $(BUILD_FLAGS) -o oci-runtime-tool ./cmd/oci-runtime-tool
21 21
22 .PHONY: runtimetest 22 .PHONY: runtimetest
23 runtimetest: 23 runtimetest:
24- CGO_ENABLED=0 go build -installsuffix cgo -tags "$(BUILDTAGS)" -o runtimetest ./cmd/runtimetest 24- go build $(STATIC_BUILD_FLAGS) -o runtimetest ./cmd/runtimetest
25+ CGO_ENABLED=0 ${GO} build -installsuffix cgo -tags "$(BUILDTAGS)" -o runtimetest ./cmd/runtimetest 25+ ${GO} build $(STATIC_BUILD_FLAGS) -o runtimetest ./cmd/runtimetest
26 26
27 .PHONY: man 27 .PHONY: man
28 man: 28 man:
29--
302.19.1
31
diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
index 32d88304..838d24b3 100644
--- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
+++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
@@ -4,12 +4,11 @@ LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f662c" 4LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f662c"
5 5
6SRC_URI = "git://github.com/opencontainers/runtime-tools.git;branch=master;protocol=https \ 6SRC_URI = "git://github.com/opencontainers/runtime-tools.git;branch=master;protocol=https \
7 file://0001-Revert-implement-add-set-function-for-hooks-items.patch \
8 file://0001-build-use-for-cross-compiler.patch \ 7 file://0001-build-use-for-cross-compiler.patch \
9 " 8 "
10 9
11SRCREV = "6e7da8148f4de2c9e9c9d3b345576898d4f412cb" 10SRCREV = "0105384f68e16803891d0a17d9067b1def6a2778"
12PV = "0.1.0+git${SRCPV}" 11PV = "0.9.0+git${SRCPV}"
13GO_IMPORT = "import" 12GO_IMPORT = "import"
14 13
15INSANE_SKIP:${PN} += "ldflags textrel" 14INSANE_SKIP:${PN} += "ldflags textrel"
@@ -31,6 +30,12 @@ do_compile() {
31 export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" 30 export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
32 export GO111MODULE=off 31 export GO111MODULE=off
33 32
33 # fixes:
34 # cannot find package runtime/cgo (using -importcfg)
35 # ... recipe-sysroot-native/usr/lib/aarch64-poky-linux/go/pkg/tool/linux_amd64/link:
36 # cannot open file : open : no such file or directory
37 export GO_BUILD_FLAGS="-a -pkgdir dontusecurrentpkgs"
38
34 # link fixups for compilation 39 # link fixups for compilation
35 rm -f ${S}/src/import/vendor/src 40 rm -f ${S}/src/import/vendor/src
36 ln -sf ./ ${S}/src/import/vendor/src 41 ln -sf ./ ${S}/src/import/vendor/src
@@ -40,9 +45,12 @@ do_compile() {
40 ln -sf ../../../../cmd ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/cmd 45 ln -sf ../../../../cmd ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/cmd
41 ln -sf ../../../../error ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/error 46 ln -sf ../../../../error ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/error
42 ln -sf ../../../../specerror ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/specerror 47 ln -sf ../../../../specerror ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/specerror
48 ln -sf ../../../../cgroups ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/cgroups
49 ln -sf ../../../../filepath ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/filepath
50 ln -sf ../../../../validation ${S}/src/import/vendor/github.com/opencontainers/runtime-tools/validation
43 cd ${S}/src/import 51 cd ${S}/src/import
44 52
45 oe_runmake 53 oe_runmake tool
46} 54}
47 55
48do_install() { 56do_install() {