at: modify sources in do_patch

Instead of copying the forked source files into ${S} in do_compile_prepend(), do
it in a do_patch() postfunc.  This ensures that the source archiver sees the
changes for compliance and legal verification.

(From OE-Core rev: 7d76d7d90f8e832ddaaebfae125c7f9aecfcac9f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2015-11-04 19:45:39 +00:00
committed by Richard Purdie
parent 78e05984b1
commit 5a10a6f153

View File

@@ -47,10 +47,10 @@ INITSCRIPT_PARAMS = "defaults"
SYSTEMD_SERVICE_${PN} = "atd.service"
do_compile_prepend () {
copy_sources() {
cp -f ${WORKDIR}/posixtm.[ch] ${S}
}
do_patch[postfuncs] += "copy_sources"
do_install () {
oe_runmake -e "IROOT=${D}" install