]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/rootfs: prelink only when image-prelink is inherited
authorAndrej Valek <andrej.valek@siemens.com>
Tue, 5 Feb 2019 08:54:25 +0000 (09:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2019 08:29:06 +0000 (08:29 +0000)
commit391d4ee0362772a72bcadeb3cd0b00a12de3a855
tree96edbc889c1754cbadc63126a3b44d7374c392f2
parentd05823086d0299272d2aea7ba440d3dae21c48ba
lib/oe/rootfs: prelink only when image-prelink is inherited

Use prelink only when image-prelink class is inherited. Inheriting this
class adds prelink-native as dependency to do_rootfs, which makes prelink
binary and configuration available.

|Exception: FileNotFoundError: [Errno 2] No such file or directory:
|'/home/.../1.0-r0/recipe-sysroot-native/etc/prelink.conf'
|
| if not os.path.exists(prelink_cfg):
|     shutil.copy(self.d.expand('${STAGING_DIR_NATIVE}${sysconfdir_native}/prelink.conf'),prelink_cfg)

(From OE-Core rev: 9e30e72920b3c661279499f2e94d5dc0087a1a8e)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py