diff options
Diffstat (limited to 'recipes-containers/cri-o/cri-o_git.bb')
-rw-r--r-- | recipes-containers/cri-o/cri-o_git.bb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index 2af3c125..cac55368 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb | |||
@@ -53,18 +53,8 @@ inherit pkgconfig | |||
53 | EXTRA_OEMAKE="BUILDTAGS=''" | 53 | EXTRA_OEMAKE="BUILDTAGS=''" |
54 | 54 | ||
55 | do_compile() { | 55 | do_compile() { |
56 | export GOARCH="${TARGET_GOARCH}" | ||
57 | export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go" | ||
58 | export GOPATH="${S}/src/import:${S}/src/import/vendor" | 56 | export GOPATH="${S}/src/import:${S}/src/import/vendor" |
59 | 57 | ||
60 | # Pass the needed cflags/ldflags so that cgo | ||
61 | # can find the needed headers files and libraries | ||
62 | export CGO_ENABLED="1" | ||
63 | export CFLAGS="" | ||
64 | export LDFLAGS="" | ||
65 | export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
66 | export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
67 | |||
68 | # link fixups for compilation | 58 | # link fixups for compilation |
69 | rm -f ${S}/src/import/vendor/src | 59 | rm -f ${S}/src/import/vendor/src |
70 | ln -sf ./ ${S}/src/import/vendor/src | 60 | ln -sf ./ ${S}/src/import/vendor/src |
@@ -82,15 +72,6 @@ do_compile() { | |||
82 | ln -sf ../../../../version ${S}/src/import/vendor/github.com/kubernetes-sigs/cri-o/version | 72 | ln -sf ../../../../version ${S}/src/import/vendor/github.com/kubernetes-sigs/cri-o/version |
83 | ln -sf ../../../../lib ${S}/src/import/vendor/github.com/kubernetes-sigs/cri-o/lib | 73 | ln -sf ../../../../lib ${S}/src/import/vendor/github.com/kubernetes-sigs/cri-o/lib |
84 | 74 | ||
85 | export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go" | ||
86 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" | ||
87 | |||
88 | # Pass the needed cflags/ldflags so that cgo | ||
89 | # can find the needed headers files and libraries | ||
90 | export CGO_ENABLED="1" | ||
91 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
92 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
93 | |||
94 | cd ${S}/src/import | 75 | cd ${S}/src/import |
95 | 76 | ||
96 | oe_runmake binaries | 77 | oe_runmake binaries |