我试图将一个简单的文件安装到目标rootfs的/etc目录中。我正在建造core-image-sato。"raxy_test“文件(在下面的食谱中)甚至不在WORKDIR中复制。
我做错什么了吗?
我可以做同样的普通食谱,但不对形象食谱。
普通食谱和形象食谱有什么区别?
DESCRIPTION = "Image with Sato, a mobile environment and visual style for \
mobile devices. The image supports X11 with a Sato theme, Pimlico \
applications, and contains terminal, editor, and file manager."
IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbear hwcodecs"
LICENSE = "MIT"
inherit core-image
TOOLCHAIN_HOST_TASK_append = " nativesdk-intltool nativesdk-glib-2.0"
TOOLCHAIN_HOST_TASK_remove_task-populate-sdk-ext = " nativesdk-intltool nativesdk-glib-2.0"
LICENSE="CLOSED"
LIC_FILES_CHKSUM=""
SRC_URI = "\
file://raxy_test \
"
do_install() {
install -d ${D}${sysconfdir}
install -m 0755 raxy_test ${D}${sysconfdir}
}我预计"raxy_test“文件将出现在WORKDIR以及目标的/etc目录中。
任何帮助都是非常感谢的,谢谢.!!
发布于 2019-04-10 08:00:58
多件事:
对于单独的菜谱,在菜谱-*子目录中创建一个文件(例如myrecipe.bb或您想要的任何文件)(您需要将它放在与其他菜谱相同的文件夹级别!)。我没有测试它,但我认为这可以是一个基础:
DESCRIPTION = "My recipe"
LICENSE="CLOSED"
PR = "r0"
PV = "0.1"
SRC_URI = " file://raxy_test "
# Create package specific skeleton
do_install() {
install -d ${D}${sysconfdir}
install -m 0755 ${WORKDIR}/raxy_test ${D}${sysconfdir}/raxy_test
}
# Populate packages
FILES_${PN} = "${sysconfdir}"您可以注意到,有些事情已经改变了:
install必须包括${WORKDIR}路径:
install -m 0755 ${WORKDIR}/raxy_test ${D}${sysconfdir}我们需要填充这个包:
FILES_${PN} = "${sysconfdir}"这将将${sysconfdir}中的文件添加到包${PN} (默认情况下是菜谱名称)。
https://stackoverflow.com/questions/55606847
复制相似问题