【发布时间】:2020-11-14 10:22:31
【问题描述】:
我是 Yocto 的初学者,我尝试将 v4l2loopback 添加到我的图像中
我在 github (https://github.com/umlaeute/v4l2loopback) 上下载当前源代码并尝试使用配方进行编译
SUMMARY = "V4L2Loopback"
DESCRIPTION = "v4l2loopback module"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
# Use local tarball
SRC_URI = "file://v4l2loopback-master.tar.gz"
# Make sure our source directory (for the build) matches the directory structure in the tarball
S = "${WORKDIR}/v4l2loopback-master"
inherit module
KERNEL_MODULE_AUTOLOAD = "v4l2loopback"
bitbake 给我:
| NOTE: make -j 4 KERNEL_SRC=/media/yocto-irts/distro/build/tmp/work-shared/genericx86-64/kernel-source DEPMOD=echo MODLIB=/media/yocto-irts/distro/build/tmp/work/genericx86_64-poky-linux/v4l2loopbackd/1.0-r0/image/lib/modules/4.18.22-yocto-standard CC=x86_64-poky-linux-gcc -fuse-ld=bfd -fdebug-prefix-map=/media/yocto-irts/distro/build/tmp/work/genericx86_64-poky-linux/v4l2loopbackd/1.0-r0=/usr/src/debug/v4l2loopbackd/1.0-r0 -fdebug-prefix-map=/media/yocto-irts/distro/build/tmp/work/genericx86_64-poky-linux/v4l2loopbackd/1.0-r0/recipe-sysroot= -fdebug-prefix-map=/media/yocto-irts/distro/build/tmp/work/genericx86_64-poky-linux/v4l2loopbackd/1.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/media/yocto-irts/distro/build/tmp/work-shared/genericx86-64/kernel-source=/usr/src/kernel LD=x86_64-poky-linux-ld.bfd O=/media/yocto-irts/distro/build/tmp/work-shared/genericx86-64/kernel-build-artifacts modules_install
| make: *** No rule to make target 'modules_install'. Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
我想我必须修补 Makefile 但我不知道如何
请帮帮我
谢谢
【问题讨论】:
-
为什么不将 SRC_URI 指向 github 本身?
-
我开始尝试。但正如我所说,我是初学者,我已经使用过存档。我一一遇到困难;)
-
澄清一下,您是在问对 Makefile 进行哪些更改,或者如何创建补丁来修改 Makefile?
标签: module yocto recipe v4l2loopback