[OE-core] question about -native and prefix

Nicolas Dechesne nicolas.dechesne at linaro.org
Sun Jun 5 21:35:12 UTC 2016


hi,

i was looking at log files and I noticed that when building a 'native'
recipe ${prefix} is set to the sysroot path, e.g.

export prefix="/home/nicolas.dechesne/work/oe-rpb/build-rpb/tmp-rpb-glibc/sysroots/x86_64-linux/usr"

as such during do_install() files are typically installed in
${DESTDIR}${prefix}, and as such we end up with a 'weird' path, such
as :

x86_64-linux-libtool: install: /usr/bin/install -c
.libs/libopkg.so.1.0.0
/home/nicolas.dechesne/work/oe-rpb/build-rpb/tmp-rpb-glibc/work/x86_64-linux/opkg-native/1_0.3.0-r0/image/home/nicolas.dechesne/work/oe-rpb/build-rpb/tmp-rpb-glibc/sysroots/x86_64-linux/usr/lib/libopkg.so.1.\

e.g. the 'full path' of the sysroot is recreated inside ${D}. It
doesn't seem to make anything bad, but i just noticed it, and it
surprised me. what's the rationale for that?

I would have expected to find the sysroot 'relative' path in ${D}. no
the the absolute path.

cheers
nico



More information about the Openembedded-core mailing list