Conversation
|
|
||
| DEPENDS = "go-native protobuf-native protoc-gen-go-native protoc-gen-go-grpc-native" | ||
|
|
||
| S = "${WORKDIR}/git" |
There was a problem hiding this comment.
Во всех рецептах (*.bb) добавил S (Source) директорию, без этого не собиралось
|
|
||
| GOARCH = "${@ "amd64" if d.getVar('TARGET_ARCH') == "x86_64" else "riscv64"}" | ||
|
|
||
| do_configure[noexec] = "1" |
There was a problem hiding this comment.
В do_configure была ошибка проверки хеш суммы, поэтому отключил
| @@ -0,0 +1,32 @@ | |||
| From 121e5d019f0bb6dec0ace2b361611edd10fc8ff8 Mon Sep 17 00:00:00 2001 | |||
There was a problem hiding this comment.
Взял патч из meta-dpdk, без него сборка dpdk в yocto-project не работает
https://git.yoctoproject.org/meta-dpdk/tree/recipes-extended/dpdk/dpdk/0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch
| if [ ! -d "meta-openembedded" ]; then | ||
| git clone -b scarthgap https://github.com/openembedded/meta-openembedded | ||
| fi | ||
|
|
There was a problem hiding this comment.
Временно добавил, чтобы сборка происходила из текущей папки vm_build_risc_v, а не из репозитория vm_build_risc_v
| docker buildx build -t $(IMAGE_NAME) . | ||
|
|
||
| yocto: | ||
| docker run --rm -it \ |
There was a problem hiding this comment.
Добавил ограничения по использованию ресурсов компьютера, потому что у меня пару раз намертво зависал компьютер, при попытке сборки.
Возможно стоит задавать эти ограничения параметрами.
| cd /home/builder/qemu/ | ||
|
|
||
| if [ ! -d "poky" ]; then | ||
| git clone -b scarthgap https://git.yoctoproject.org/poky |
There was a problem hiding this comment.
Указал ветку scarthgap, потому что master ветка больше не поддерживается. Об этом подробнее писал в rocket chat: https://chat.moevm.info/group/QEMU-DPDK-2026?msg=AphSco6bhqQGc9NAn
|
|
||
| inherit meson pkgconfig | ||
|
|
||
| EXTRA_OEMESON = " \ |
There was a problem hiding this comment.
Описание флагов:
https://github.com/DPDK/dpdk/blob/23.11/meson_options.txt
| @@ -0,0 +1,67 @@ | |||
| SUMMARY = "Data Plane Development Kit - helloworld example for RISC-V" | |||
There was a problem hiding this comment.
Взято из meta-dpdk:
https://git.yoctoproject.org/meta-dpdk/tree/recipes-extended/dpdk/dpdk.inc
| EOF | ||
| } | ||
|
|
||
| do_install:append() { |
There was a problem hiding this comment.
Взято из meta-dpdk и немного переписано:
https://git.yoctoproject.org/meta-dpdk/tree/recipes-extended/dpdk/dpdk_23.11.5.bb
|
|
||
| COPY scripts/build/build.sh /home/builder/scripts/build.sh | ||
| COPY scripts/build/run.sh /home/builder/scripts/run.sh | ||
| COPY meta-cluster /home/builder/meta-cluster |
There was a problem hiding this comment.
Копируется текущая папка meta-cluster, чтобы использовать ее при сборке, а не ту что в репозитории vm_build_risc_v
#84