首页 > 解决方案 > 如何在 bitbake 中编译基于 Makefile 的配方?

问题描述

我正在尝试在 yocto 中创建一个配方来为 SDK 构建一个包 - https://github.com/nodejs/http-parser

这是我的 http-parser.bb。但是,当我尝试使用 -“-c populate_sdk”进行构建时,我得到了没有找到 Makefile 的错误。我在这里想念什么?我的源代码有 Makefile。我正在关注 Rudolf 的书 - Yocto 书,除了从第 8 章添加以下内容外,我什么也看不到 - 软件包配方。

do_install() {
oe_runmake install PREFIX=${D}
}

这是我的食谱文件。

SUMMARY = "http-parser"
DESCRIPTION = "This is a parser for HTTP messages written in C. It parses both requests and responses. The parser is designed to be used in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime. Depending on your architecture, it only requires about 40 bytes of data per message stream (in a web server that is per connection)."

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778"

SRC_URI[md5sum] = "59f8fce33369f2ef2a45f46b6b5420bc"
SRC_URI[sha256sum] = "865e0ec42f3c0a949654ebff98d538dd828a239392b502d42e15cb1e5bb28895"

SRCREV = "${AUTOREV}"
PV = "r${SRCREV}"
PR = "r2"

ALLOW_EMPTY_${PN} = "1"

SRC_URI = "https://github.com/nodejs/http-parser.git"

S = "${WORKDIR}/git"


PARALLEL_MAKE = ""

运行 bitbake 后,我得到一个错误 no Makefile found。

标签: makefileyocto

解决方案


推荐阅读