我是新的,yocto 在imx6q嵌入式系统中构建。
我想在 do_rootfs 之后覆盖 linux 系统文件。例如,目标系统文件如下。
所以,我制作了自定义图层和自定义配方。helloworld 二进制文件可以复制。
但是,不调用 do_mytask 函数。
我的代码有什么问题?或任何其他方法用于我的目的。
#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#
SUMMARY = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}"
do_compile() {
${CC} helloworld.c -o helloworld
}
do_install() {
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
}
FILESEXTRAPATHS_prepend := "${THISDIR}/files:" …Run Code Online (Sandbox Code Playgroud)