[OE-core] question about order of processing SRC_URI items

Robert P. J. Day rpjday at crashcourse.ca
Thu Apr 21 13:56:17 UTC 2016


On Thu, 21 Apr 2016, Richard Purdie wrote:

> In general we should try and use += if possible as its simpler and
> easier to understand what it does.

  regarding "_append +=", there are only two files left in oe-core
that i will let someone else deal with if they want. first:

meta/recipes-extended/images/core-image-kernel-dev.bb:

  IMAGE_ROOTFS_EXTRA_SPACE_append += "+ 3000000"

and there's this weirdness in meta/lib/oeqa/selftest/layerappend.py:

... snip ...
addtask build
"""
    append = """
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " file://appendtest.txt"

sysroot_stage_all_append() {
        install -m 644 ${WORKDIR}/appendtest.txt ${SYSROOT_DESTDIR}/
}

"""

    append2 = """
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append += "file://appendtest.txt"



  not quite sure what's going on there with those two variations of
assignment to SRC_URI, so i'm just going to leave it alone.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the Openembedded-core mailing list