Raspberry pi Yocto自动工具未配置和编译

Raspberry pi Yocto自动工具未配置和编译,raspberry-pi,cross-compiling,autotools,bitbake,Raspberry Pi,Cross Compiling,Autotools,Bitbake,我是yocto的新手,正在尝试为raspberry pi构建一个包。 我使用的是来自的BSP层 我能够使用BSP构建映像,没有任何问题。但是当我 添加了一个新层以添加包,我收到错误 我试着用hello world自动工具包进行测试。你好 world是从下载的hello world自动工具包 . 尝试时 要执行bb,我得到如下错误: | make: *** No rule to make target `install'. Stop. | ERROR: oe_runmake failed D

我是yocto的新手,正在尝试为raspberry pi构建一个包。 我使用的是来自的BSP层

我能够使用BSP构建映像,没有任何问题。但是当我 添加了一个新层以添加包,我收到错误

我试着用hello world自动工具包进行测试。你好 world是从下载的hello world自动工具包 . 尝试时 要执行bb,我得到如下错误:

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
DESCRIPTION = "Dummy"

SECTION = "package"

LICENSE = "CLOSED"

PR = "r0"

SRC_URI = "file://hello/"

inherit autotools gettext
我的bb文件如下:

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
DESCRIPTION = "Dummy"

SECTION = "package"

LICENSE = "CLOSED"

PR = "r0"

SRC_URI = "file://hello/"

inherit autotools gettext
在执行这个bb文件之后,我查看了configure的日志。 它没有说明要配置什么

请帮助我解决我正在执行的流程中的问题?

您的错误

    make: *** No rule to make target `install'.  Stop.
表示bitbake配方没有定义“安装”规则。你需要的食谱如下

    do_install () {
        #either leave this empty or put instructions for installation 
    }
您还需要hello.csystem.h的SRC_URI和hello-world包中包含的make文件


请看本教程,其中有一个完整的bitbake配方示例

由于OE找不到源代码,因此出现了错误。尝试将SRC_URI更改为hello world tar文件的地址。OE然后隐式地知道源的位置

DESCRIPTION = "Dummy"

SECTION = "package"

LICENSE = "CLOSED"

PR = "r0"

SRC_URI = "ftp://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"

inherit autotools
看看你做了什么(这不是常规的),你也可以尝试将源目录“S”设置为“${WORKDIR}/hello”


我已经从下载了hello world tar,并将其解压缩到“hello”目录。所有的c、h和必要的配置文件都在里面。当我查看do_configure()的日志时,它没有说明要配置什么。您是否尝试将do_configure定义为空?尝试将“do_configure(){}”放在bitbake Recipeth的底部,这根本不是错误的意思。yocto正在调用“makeinstall”,但其使用的makefile不包含“install”目标。