bitbake

override `DEFAULTTUNE` and other machine configuration parameters

亡梦爱人 提交于 2020-04-18 05:48:08
问题 I have a board that requires to change the DEFEAULTTUNE . I did this in my conf/local.conf . As this place actually is reserved for build host configuration as far as I understand I think that this is actually not the best suited place. What would be the right place? Changing the machine configuration of the bsp provider does not seem to be the best idea either... Best regards and thanks for any hint 回答1: As I was explained DEFAULTTUNE is an absolute classic to go into the MACHINE

Is it possible to pass in command line variables to a bitbake build?

[亡魂溺海] 提交于 2020-01-12 06:38:54
问题 I have an OpenEmbedded environment using bitbake to do some builds. I wanted to get something "interactive" going on where bitbake would pause and ask for input then continue with the build but I've found out that's not possible. Since I can't do that I'm looking for some way to pass in extra flags for the build. Is there any way to pass in flags to a bitbake build sort of like gcc's -D option? ie: bitbake -Dfoo=bar oe-myimage Thus during the build process of oe-myimage the variable foo will

do_install error while running custom bitbake in poky build

断了今生、忘了曾经 提交于 2020-01-12 05:43:05
问题 I am using latest poky-am335x to build simple helloworld application. With some workaround I can able to compile the application. I am doing lot of trails to install binaries but build is throwing error. error log : DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] DEBUG: Executing shell function do_install NOTE: make -j 4 DESTDIR=/home/pis1kor/workspace/poky-am335x/build/tmp/work/armv7a-vfp-neon-poky-linux

qemu-native error when building core-image-minimal with yocto

微笑、不失礼 提交于 2020-01-07 03:11:09
问题 I want to build the core-image-minimal with yocto and it fails. To set everything up I use the following steps: sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect cmake git clone git://git.yoctoproject.org/poky.git poky.git cd poky.git git checkout -b morty remotes/origin/morty . oe-init-build-env cd .. git clone https://github.com/altera-opensource/meta-altera.git meta-altera cd meta-altera

bitbake: adding php-intl support to php recipe

一世执手 提交于 2020-01-06 06:44:18
问题 I need to build a php package supporting the intl extension with bitbake (http://php.net/manual/en/intl.installation.php). So I created a bbappend: bernardo@bernardo-UX51VZA:~/dev/yocto/meta-steempi$ cat recipes-devtools/php/php_7.%.bbappend DEPENDS += " icu apache2" RDEPENDS_${PN} += " icu apache2" PACKAGECONFIG_append_pn-php = " apache2 icu icu-dev" EXTRA_OECONF += " --with-openssl=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION

How to install directory structure recursively in OpenEmbedded BitBake recipe?

百般思念 提交于 2020-01-03 18:26:18
问题 I'd like to simplify a BitBake recipe that installs a large directory structure by using some sort of recursive install routine rather than calling install many times. The source directory layout is frequently changing during development, which is causing far more recipe revisions than I want to deal with. As an example, how would the following do_install() be simplified from this: do_install() { install -d ${D}/foo install -m 0644 ${S}/foo/*.* ${D}/foo install -d ${D}/foo/a install -m 0644 $

bitbake conditional inclusion of depends statement

大憨熊 提交于 2020-01-03 11:57:32
问题 How do I include a depends line in a bitbake file with a condition ? I want something like below: if (some env varible) DEPENDS += "recipe-1" else DEPENDS += "recipe-2' I have tried below in the .bb file: DEPENDS += "${@ 'recipe-2' if '${ENV_VAR}' else 'recipe-1'}" Before that I exported ENV_VAR to BB_ENV_EXTRAWHITE export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE ENV_VAR" This is working only when ENV_VAR is set: env ENV_VAR="value" bitbake test-recipe if ENV_VAR is not set, it is throwing an

yocto splash screen not appearing

荒凉一梦 提交于 2020-01-03 06:36:12
问题 I'm making a yocto image which I'm booting from a usb stick using syslinux. There's a lot of boot output that I'd like to hide. From reading the yocto docs it looks like adding a splash screen should hide this. I have added splash to the IMAGE_FEATURES , but the splash screen doesn't appear, and the syslinux boot output is still visible. Any idea what I may be doing wrong? Other suggestions on how to hide that boot output also welcome. 回答1: To add splash screen into the image, in your local

How patching works in yocto

徘徊边缘 提交于 2020-01-02 10:17:54
问题 I am using BBB to understand the yocto-project. I am not sure how patching works. This is my project directory ├── meta-testlayer ├── poky meta-test layer contains a helloworld example ├── conf │ └── layer.conf ├── COPYING.MIT ├── README └── recipes-hello └── helloworld ├── helloworld-0.1 │ ├── helloworld.c │ ├── helloworld.patch │ └── newhelloworld.c └── helloworld_0.1.bb helloworld.c and newhelloworld.c differ by only one printf statement. Here is the content of helloworld.c #include <stdio

How to setup an Yocto recipe to build from a local git source?

橙三吉。 提交于 2020-01-01 09:55:13
问题 Hej I am playing a bit around with Yocto, a Raspberry Pi and some code I wrote. Now I want that Yocto is building an image including the program I wrote. I like to know how to setup the fetcher to fetch from a local git repro. My setup is simple. The code is in the directory: /home/user/git/myTest I linked the directory into my recipe directory of my Yocto meta-layer. /home/user/poky/meta-test/myApp/myTest Because it is a local git repro, there is the ".git" folder. /home/user/git/myTest/.git