【发布时间】:2022-01-14 22:51:25
【问题描述】:
我正在使用 Yocto 中的 meta-atmel 层为 SAMA5D4 板创建图像。
我已经创建了一个自定义层并且想用我创建的差异修补一个文件(特别是 https://github.com/linux4sam/egt/blob/master/src/app.cpp):
index 869b1e2..c86ad1a 100644
--- a/app.cpp
+++ b/app.cpp.modified
@@ -342,8 +342,9 @@ void Application::setup_inputs()
}
}
+// Modify to force use of tslib
#ifdef HAVE_LIBINPUT
- m_inputs.push_back(std::make_unique<detail::InputLibInput>(*this));
+// m_inputs.push_back(std::make_unique<detail::InputLibInput>(*this));
#endif
}
我在自定义层中重新创建了目录结构以匹配我要更改的文件的位置:
yocto/meta-atmel/recipes-graphics/libegt/libegt_1.2.bb
yocto/meta-custom2/recipes-graphics/libegt/libegt_%.bbappend
我的 bbappend 文件是:
# Modify https://github.com/linux4sam/egt/src/app.cpp
# Issue with file path
SRC_URI += "file:0001-disable-libinput.patch"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PACKAGE_ARCH = "${MACHINE_ARCH}"
如何正确地将我的补丁文件包含到我要修改的文件中?
非常感谢您的观看!
【问题讨论】: