embedded linux - Yocto recipe : how to install in specific folder -
i have created yocto recipe program. default folders building image recipe ? @ time of building image, want move files folder like
"/opt/xyz".
should "mv" or there other options ?
thank you
i guess want copy compiled program folder such ${bindir}:
quote yocto ref-manual 1.1:
when specifying paths part of conffiles variable, practice use appropriate path variables. example, ${sysconfdir} rather /etc or ${bindir} rather /usr/bin. can find list of these variables @ top of meta/conf/bitbake.conf file in source directory.
you can copy files working directory directory in target filesystem. see hello-world example instance (note example taken 1.1 reference manual, haven't found yet in newer version):
description = "simple helloworld application" section = "examples" license = "mit" lic_files_chksum = "file://${common_license_dir}/mit;md5=0835ade698e0bcf8506ecda2f7b4f302" pr = "r0" src_uri = "file://helloworld.c" s = "${workdir}" do_compile() { ${cc} helloworld.c -o helloworld } do_install() { install -d ${d}${bindir} install -m 0755 helloworld ${d}${bindir} } in example, helloworld binary copied /usr/bin on image (could /opt too, see source directory variable definition).
Comments
Post a Comment