diff options
Diffstat (limited to 'recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb')
| -rw-r--r-- | recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb | 16 |
1 files changed, 12 insertions, 4 deletions
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" | |||
| 4 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f662c" | 4 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f662c" |
| 5 | 5 | ||
| 6 | SRC_URI = "git://github.com/opencontainers/runtime-tools.git;branch=master;protocol=https \ | 6 | SRC_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 | ||
| 11 | SRCREV = "6e7da8148f4de2c9e9c9d3b345576898d4f412cb" | 10 | SRCREV = "0105384f68e16803891d0a17d9067b1def6a2778" |
| 12 | PV = "0.1.0+git${SRCPV}" | 11 | PV = "0.9.0+git${SRCPV}" |
| 13 | GO_IMPORT = "import" | 12 | GO_IMPORT = "import" |
| 14 | 13 | ||
| 15 | INSANE_SKIP:${PN} += "ldflags textrel" | 14 | INSANE_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 | ||
| 48 | do_install() { | 56 | do_install() { |
