如何在 bitbake 中连接食谱

How to connect recipes in bitbake

我需要为 uftpd. uftpd itself requires two libraries to be built: libite and libuev

写一个食谱

我已经为 libite 写了两个食谱:

SUMMARY = "libite_1.9.3.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/libite/releases/download/v${PV}/libite-${PV}.tar.xz"
SRC_URI[md5sum] = "67a00e1e1c7aa11207cf77f10c6580a3"

inherit autotools

do_install_append() {
    ldconfig -N
}

和 libuev:

SUMMARY = "libuev_1.6.0.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/libuev/releases/download/v${PV}/libuev-${PV}.tar.xz"
SRC_URI[md5sum] = "d0b12548d888cc30e41a921fe0f33641"

inherit autotools

do_install_append() {
    ldconfig -N
}

现在我需要为 uftpd 写一个配方,这就是我一直在努力实现它的方法:

SUMMARY = "uftpd_2.4.bb"
SECTION = "ftpserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "http://github.com/troglobit/uftpd/releases/download/v${PV}/uftpd-${PV}.tar.xz"
SRC_URI[md5sum] = "652e6cb8a059be3f8a3779b7182ce385"

DEPENDS += "libuev"
DEPENDS += "libite"

S = "${WORKDIR}/uftpd-${PV}"

do_configure[depends] += "libuev:do_populate_sysroot"
do_configure[depends] += "libite:do_populate_sysroot"

inherit autotools

当我尝试构建 uftpd 时,libuev 和 libite 都构建成功,但是从 uftpd 执行配置文件时出现错误: error image

据我所知,这意味着配置找不到 libuev 库,尽管它是在此之前构建的。可以用它做什么?我做错了什么吗?

您的 uftpd 配方需要继承 pkgconfig(该错误是“找不到 pkgconfig 宏”)。