[yocto] THISDIR variable in another meta-layer
Tomasz Michalski
tmichalski23 at gmail.com
Fri Dec 14 01:47:29 PST 2018
One additional thing, in fact I define do_install in .inc file in
meta-layer-B/recipes-X/componentB and meta-layer-A/recipes-X/componentB
directory. Those inc files are appended to corresponding .bb and .bbappend
files. I will try to debug how THISDIR behaves.
pt., 14 gru 2018 o 10:26 Tomasz Michalski <tmichalski23 at gmail.com>
napisał(a):
> Hi
> I have structure of files:
>
> meta-layer-A
> recipes-X
> componentB
> default
> script.sh
> componentB.bb
> meta-layer-B
> recipes-X
> componentB
> files
> script.sh
> componentB.bbappend
>
> In componentB.bb I have function do_install:
> do_install () {
> install -m 0755 -d ${D}/usr/share
> cmake_do_install
> install -m 0755 ${THISDIR}/default/script.sh ${D}/usr/share
> }
>
> In componentB.bbapend I overwrite function in order to install other
> script instead:
> do_install () {
> install -m 0755 -d ${D}/usr/share
> cmake_do_install
> install -m 0755 ${THISDIR}/files/script.sh ${D}/usr/share
> }
>
>
> The problem is that ${THISDIR} indicates IN BOTH CASES to path
> meta-layer-A/recipes-X/componentB.
> So how to tell bitbake in componentB.bbappend to install my script from
> path meta-layer-B/recipes-X/componentB/files? It is really frustrating that
> variable THISDIR doesn't indicates to path
> meta-layer-B/recipes-X/componentB when I used it in componentB.bbapend.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181214/1f39fc01/attachment.html>
More information about the yocto
mailing list