makefile - 如何在 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。
解决方案
推荐阅读
- javascript - While 循环仅在 draw() 函数 (P5.js) (P5.play) 中运行一次
- javascript - Wordpress 的 Javascript 和 JQuery 问题
- ruby-on-rails - 通过关联模型中的 form.collection_check_boxes 传递 ID
- wxpython - 使用 wxpython 的 atm 银行程序,我遇到的问题是在第一个面板中询问 id #我如何让它接受正确的 id
- copy - 在 Pycharm 中选择代码行很奇怪
- julia - 如何编写高阶函数来向给定函数添加方法?
- html - 引导网格偏移不居中
- ios - 使用 Swift 播放 .mov 文件中的音频
- google-chrome-devtools - manifest.json 在 DevTools 中被链接为预加载,即使它不是
- swift - 更改输入文本字段 JSQMessageController 的高度