小编dev*_*v j的帖子

如何将linux系统文件覆盖到yocto文件系统中?

我是新的,yocto 在imx6q嵌入式系统中构建。

我想在 do_rootfs 之后覆盖 linux 系统文件。例如,目标系统文件如下。

  • /etc/网络/接口
  • /etc/问题
  • /etc/init.d/rcS
  • /home/root/mytest.sh

所以,我制作了自定义图层和自定义配方。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)

linux recipe rootfs yocto

1
推荐指数
1
解决办法
2304
查看次数

标签 统计

linux ×1

recipe ×1

rootfs ×1

yocto ×1