[OE-core] is 'SRC_URI_append += "file://appendtest.txt"' in layerappend.py deliberate?
Khem Raj
raj.khem at gmail.com
Sat Sep 2 15:46:42 UTC 2017
On Sat, Sep 2, 2017 at 5:34 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>
> just noticed in meta/lib/oeqa/selftest/cases/layerappend.py this
> snippet:
>
> ////// start
>
> append = """
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> SRC_URI_append = " file://appendtest.txt" <--- first
>
> sysroot_stage_all_append() {
> install -m 644 ${WORKDIR}/appendtest.txt ${SYSROOT_DESTDIR}/
> }
>
> """
>
> append2 = """
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> SRC_URI_append += "file://appendtest.txt" <--- second
> """
>
> ////// end
>
> is there some reason that SRC_URI_append is done correctly in that
> first example, but in that weirdly superfluous way using "+=" in the
> second example?
send a patch to fix it append += is usually not preferred.
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day Ottawa, Ontario, CANADA
> http://crashcourse.ca
>
> Twitter: http://twitter.com/rpjday
> LinkedIn: http://ca.linkedin.com/in/rpjday
> ========================================================================
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list