diff options
Diffstat (limited to 'recipes-networking/cni/cni_git.bb')
| -rw-r--r-- | recipes-networking/cni/cni_git.bb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-networking/cni/cni_git.bb b/recipes-networking/cni/cni_git.bb index 59b56f6e..fda7af60 100644 --- a/recipes-networking/cni/cni_git.bb +++ b/recipes-networking/cni/cni_git.bb | |||
| @@ -17,7 +17,17 @@ SRC_URI = "\ | |||
| 17 | git://github.com/containernetworking/cni.git;branch=main;name=cni;protocol=https \ | 17 | git://github.com/containernetworking/cni.git;branch=main;name=cni;protocol=https \ |
| 18 | git://github.com/containernetworking/plugins.git;branch=main;destsuffix=${S}/src/github.com/containernetworking/plugins;name=plugins;protocol=https \ | 18 | git://github.com/containernetworking/plugins.git;branch=main;destsuffix=${S}/src/github.com/containernetworking/plugins;name=plugins;protocol=https \ |
| 19 | git://github.com/flannel-io/cni-plugin;branch=main;name=flannel_plugin;protocol=https;destsuffix=${S}/src/github.com/containernetworking/plugins/plugins/meta/flannel \ | 19 | git://github.com/flannel-io/cni-plugin;branch=main;name=flannel_plugin;protocol=https;destsuffix=${S}/src/github.com/containernetworking/plugins/plugins/meta/flannel \ |
| 20 | file://modules.txt \ | ||
| 20 | " | 21 | " |
| 22 | |||
| 23 | # generated via: | ||
| 24 | # ./scripts/oe-go-mod-autogen.py --repo https://github.com/containernetworking/cni.git --rev <insert your rev here> | ||
| 25 | include src_uri.inc | ||
| 26 | |||
| 27 | DEPENDS = " \ | ||
| 28 | rsync-native \ | ||
| 29 | " | ||
| 30 | |||
| 21 | LICENSE = "Apache-2.0" | 31 | LICENSE = "Apache-2.0" |
| 22 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc" | 32 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc" |
| 23 | 33 | ||
| @@ -31,10 +41,19 @@ inherit goarch | |||
| 31 | # https://github.com/llvm/llvm-project/issues/53999 | 41 | # https://github.com/llvm/llvm-project/issues/53999 |
| 32 | TOOLCHAIN = "gcc" | 42 | TOOLCHAIN = "gcc" |
| 33 | 43 | ||
| 44 | # sets the "sites" variable. | ||
| 45 | include relocation.inc | ||
| 46 | |||
| 34 | do_compile() { | 47 | do_compile() { |
| 35 | mkdir -p ${S}/src/github.com/containernetworking | 48 | mkdir -p ${S}/src/github.com/containernetworking |
| 36 | ln -sfr ${S}/src/import ${S}/src/github.com/containernetworking/cni | 49 | ln -sfr ${S}/src/import ${S}/src/github.com/containernetworking/cni |
| 37 | 50 | ||
| 51 | # our copied .go files are to be used for the build | ||
| 52 | ln -sf vendor.copy vendor | ||
| 53 | |||
| 54 | # inform go that we know what we are doing | ||
| 55 | cp ${WORKDIR}/modules.txt vendor/ | ||
| 56 | |||
| 38 | export GO111MODULE=off | 57 | export GO111MODULE=off |
| 39 | 58 | ||
| 40 | cd ${B}/src/github.com/containernetworking/cni/libcni | 59 | cd ${B}/src/github.com/containernetworking/cni/libcni |
