bitbake

Enable systemd services using yocto

拥有回忆 提交于 2019-11-30 19:40:43
Hi this is my layer tree ├── conf │ └── layer.conf ├── COPYING.MIT ├── README └── recipes-hello ├── helloworld │ ├── helloworld-0.1 │ │ ├── helloworld.c │ │ ├── helloworld.patch │ │ └── newhelloworld.c │ └── helloworld_0.1.bb ├── message │ ├── message-0.1 │ │ └── message.txt │ └── message_0.1.bb └── service ├── service-0.1 │ ├── test_systemd.service │ └── test_systemd.sh └── service_0.1.bb Here test_systemd.service is the service file which have to invoke test_systemd.sh, which I am trying to achieve using service_0.1.bb # This recipe performs the following tasks # 1) Install .sh file in /home

bitbake: how to add package depending on MACHINE?

走远了吗. 提交于 2019-11-30 19:01:58
问题 My images, built with bitbake , must contain different packages for different machines (say, I need to add package package1 to image for machine1 , but not for machine2 ). It is possible to add line IMAGE_INSTALL_append_machine1 = " package1" to the image recipe. But I do not think this is sustainable, as IMAGE_INSTALL_append_machine1 may be defined in some other recipe (which is not under my control) and the earlier definition gets overwritten with the later one. This is what I think Yocto

How to install recursively my directories and files in BitBake recipe

无人久伴 提交于 2019-11-28 07:59:57
问题 I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system. I tried the solution provided by Tobias Bystricky in How to install directory structure recursively in OpenEmbedded BitBake recipe? but I faced "No such file or directory" error I did , install -d ${D}${sysconfdir}/xxx/ install -d ${D}${sysconfdir}/xxx/yyy install -d ${D}${sysconfdir}/xxx/yyy/zzz install -d ${D}${sysconfdir}/xxx/yyy/zzz/kkk find $

How to add an user and re set the root user in yocto?

佐手、 提交于 2019-11-27 06:36:16
问题 I like to do some things for the build-in users of my yocto project: 1.) set a password for root to "abc" 2.) set the root shell for ssh login form /bin/sh to /bin/bash 3.) add the user "customUser" with password "xyz" Think a simple recipe can do this. So far I tried @ myUser.bb: SUMMARY = "admin + user" SECTION = "USR" LICENSE = "CLOSED" inherit extrausers useradd # how to # pw: abc # at bash: usermod -p $(openssl passwd abc) root # get a salted hash: openssl passwd abc # one possible