So I am using a .bbappend file in a layer I have created and in that layer I also have some additional local files that I want to install.
The problem is I am not sure what the Yocto variable is that correctly represents the directory where my bbappend file is located. Variables like "THISDIR" end up pointing to the original recipe directory - not the append one in my layer. How can I best do this without putting some type of absolute path?
Copy your files to present dir where the .bb
or .bbappend
file is present. and add follow line hello.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}:"
SRC_URI += "file://yourfile"
do_install_append(){
install -d ${D}/some-dest-dir
install -m 0644 ${S}/yourfile ${D}/some-dest-dir/
}
here THIS
dir means you are telling to bitbake the files are present in the dir where the .bb
or .bbappend
file is present.
eg: meta-hellolayer example/
|_ hello.c
|_ hello.bbappend
Now the example dir is THIS
dir in .bbappend file.
Note
: Make sure you need to add your layer path(meta-helolayer)
to build/conf/bblayer.conf
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.