yocto

Licenses for packagegroups and images on Yocto

只谈情不闲聊 提交于 2019-12-01 22:03:21
I am creating an image containing standard recipes and my owns. I wanted to list the licenses I use in all of the included packages and later check if I can use them for commercial application for example. I had the bad surprise packagegroups have a LICENSE flag already. I noticed it doing: bitbake -e -n -v core-image-minimal | grep "LICENSE" It returns LICENSE=MIT since it is defined in the bb file. But I have no information about all the included packages. This MIT has been put manually in the core-image-minimal.bb, but I'd be interested in all dependencies. I have the same issue for my .bb

How to install recursively my directories and files in BitBake recipe

强颜欢笑 提交于 2019-12-01 18:08:47
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 ${WORKDIR}/xxx/yyy/zzz/kkk/ -type f -exec 'install -m 0755 "{}" ${D}${sysconfdir}/xxx/yyy/zzz/kkk/' \; Error

Yocto: Install different config files based on MACHINE type or target image

て烟熏妆下的殇ゞ 提交于 2019-12-01 13:14:34
I've got a couple of HW platforms (same cpu, etc.) that require different asound.conf files. The way that I'm controlling the target platform is via the MACHINE variable and target image (i.e., MACHINE=machine_1 nice bitbake machine-1-bringup-image ) Normally, if just replacing the conf file I'd just create an alsa-state.bbappend and create a do_install_append function to replace it. However since the different HW platforms require differ conf files I'm unsure how to handle it. I've tried putting some logic into the append file do_install_append function but it's not working out. It's not

How to enable eglfs plugin in Yocto setup? using yocto+meta-qt5 for Riotboard

 ̄綄美尐妖づ 提交于 2019-12-01 11:21:59
Recently I just used fsl-community-bsp and meta-qt5 layer to generate the cross toolchain and the rootfs. I used "bitbake meta-toolchain-qt5" and "bitbake fsl-image-multimedia-full". Both fsl-community-bsp and meta-qt5 use jethro branch. Following are some of my questions: In the rootfs which I put in the “riotboard”, is qt5 library already in it? Do I need to compile the source of qt5 and copy it to the board separately?--- Now it's clear, the library are inside the rootfs; I have set up the qtcreator: device, kit, qt version, compiler, debugger, also ssh connection, but when I run the

How to check if a locale is UTF-8?

倖福魔咒の 提交于 2019-12-01 10:49:29
问题 I'm working with Yocto to create an embedded linux distribution for an ARM device (i.MX 6Quad Processors). I've configured the list of desired locales with the variable: IMAGE_LINGUAS = "de-de fr-fr en-gb en-gb.iso-8859-1 en-us en-us.iso-8859-1 zh-cn" As result I've obtained a file systems that contains the following folders: root@lam_icu:/usr/lib/locale# cd /usr/share/locale/ root@lam_icu:/usr/share/locale# ls -la total 0 drwxr-xr-x 6 root root 416 Nov 17 2016 . drwxr-xr-x 30 root root 2056

How to enable eglfs plugin in Yocto setup? using yocto+meta-qt5 for Riotboard

ぃ、小莉子 提交于 2019-12-01 08:39:05
问题 Recently I just used fsl-community-bsp and meta-qt5 layer to generate the cross toolchain and the rootfs. I used "bitbake meta-toolchain-qt5" and "bitbake fsl-image-multimedia-full". Both fsl-community-bsp and meta-qt5 use jethro branch. Following are some of my questions: In the rootfs which I put in the “riotboard”, is qt5 library already in it? Do I need to compile the source of qt5 and copy it to the board separately?--- Now it's clear, the library are inside the rootfs; I have set up the

Yocto

淺唱寂寞╮ 提交于 2019-12-01 07:52:25
https://www.yoctoproject.org Yocto offical web System envn. Git 1.8.3.1 or greater tar 1.27 or greater Python 3.4.0 or greater. sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ xterm The first demo. download poky-sumo-19.0.3.tar.bz2 from web and extract it. The default machine is x86. The first thing is to init the env. by run below script source oe-init-build-env command to build: bitbake core

bitbake: how to add package depending on MACHINE?

匆匆过客 提交于 2019-12-01 01:35:05
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 Project Development manual warns about using IMAGE_INSTALL . Is my concern valid? What is the proper way

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