bitbake

bitbake SRC_URI file://

心不动则不痛 提交于 2019-12-21 07:27:10
问题 If I have a tarball, helloworld.tar.gz in a local directory, say /home/user/tarballs/, how can I make my bitbake recipe fetch from that directory? my helloworld.bb is SECTION = "examples" LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://COPYING; md5=1b1b8016e15e07a2fec59623ebf12345" SRC_URI = "file://helloworld.tar.gz" but when I bitbake, I get the below warning message: WARNING: Unable to get checksum for helloworld SRC_URI entry helloworld.tar.gz: file could not be found I read something

bitbake recipe - doing a simple copy of the image

╄→гoц情女王★ 提交于 2019-12-20 03:33:27
问题 I am attempting to write a recipe that would simple copy two files (MyfileA , MyfileB) to a specific directory when the overall image is built. This is what my directory structure looks like: MyDir/MyRecipe.bb MyDir/files/MyfileA MyDir/files/MyfileB I would like the two files to be copied to a folder in home (which would not exist initially hence the directories should be created)The folder lets say is called "Testfolder" This is what my bitbake file looks like DESCRIPTION = "Testing Bitbake

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

一笑奈何 提交于 2019-12-19 10:51: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

Enable systemd services using yocto

坚强是说给别人听的谎言 提交于 2019-12-18 20:55:29
问题 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

Is there a way to check the exact list of packages that will be installed in the image in Yocto?

血红的双手。 提交于 2019-12-18 13:16:14
问题 In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an image file before executing the image building recipe such as: bitbake my-image-minimal Is there a way to achieve this? Any guidance in this regard is appreciated. Thanks in advance. 回答1: Yes, like this On old Bitbake versions: bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' \ |

How to write a BitBake driver recipe which requires kernel source header files?

南笙酒味 提交于 2019-12-13 11:56:16
问题 Introduction I have a do_install task in a BitBake recipe which I've written for a driver where I execute a custom install script. The task fails because the installation script cannot find kernel source header files within <the image rootfs>/usr/src/kernel . This script runs fine on the generated OS. What's Happening Here's the relevant part of my recipe: SRC_URI += "file://${TOPDIR}/example" DEPENDS += " virtual/kernel linux-libc-headers " do_install () { ( cd ${TOPDIR}/example/Install ; .

How to deploy a Find*.cmake file for an Autotools library in the correct place for Yocto?

≡放荡痞女 提交于 2019-12-13 04:27:39
问题 I created a new layer over an existing Yocto git for my company project. In this layer I added a few external autotools based libraries. A few applications need to link against this libraries and the application projects are all cmake based. Taking one of this libraries (e.g. libcoap) I could easily find some FindCoAP.cmake to add to my library recipe. Now if I was running on PC, it would simply be a matter of placing this FindCoAP.cmake file in cmake 's ${CMAKE_ROOT}/Modules dir, but how

bitbake: how to resume compilation

狂风中的少年 提交于 2019-12-13 03:43:55
问题 During a bitbake <image> execution, 3 errors are generated and the building process stopped. Here the last lines of the output: | ERROR: Function failed: do_compile (log file is located at /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600) ERROR: Task (/local/STM32MP15-Ecosystem-v1.0.0

Fetching into non-bare repository with bitbake

半城伤御伤魂 提交于 2019-12-12 02:12:14
问题 Looks like I am facing a trivial issue, but I am not able to figure out anything. I was trying to bitbake the raspberry pi image and due to bad internet connection, it failed. Now when I retried to bitbake again, it gives me the below error. fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository I understand that, this is because my git repository is no longer bare. After searching a lot on the internet, I found only one solution. Running the below command will

How can I reference/find the ${PV} of one recipe in another recipe in Yocto/Bitbake?

自作多情 提交于 2019-12-11 15:51:57
问题 I have a recipe that needs to know the version string/information of another recipe. Basically I want to expand the PV variable of a different recipe. What would be the easiest way to do this? I was thinking maybe there is a bb python function I can use in my recipe to parse the other recipe and find it's PV. 回答1: Easily, you can't. Can you explain what you actually need to do? 来源: https://stackoverflow.com/questions/56794981/how-can-i-reference-find-the-pv-of-one-recipe-in-another-recipe-in