select installation packages
Hello
I had used buildroot in the pass and I like it cause is very easy to use, but I'm moving to yocto cause it has more applications than buildroot, in buildroot you can select the packages you want to add by going to menuconfig, how do I select the packages I wan to add in yocto, for example if I wan to add nano or gstreamer, from the guide I seen you just type bitbake -b nano, but is there a menuconfig on yocto where you can select the package you want to add before you build the image? thanks,
Hi Andre,
There actually is no recipe for building the nano editor in YP by default. Unless you added one,
bitbake -b nano
would result in this output
ERROR: Unable to find any recipe file matching 'nano'
I have attached a recipe for you to build nano and a patch to handle a configuration mistake configure.ac causing do_configure to fail.
If you add that recipe you can run bitbake nano. You can also include into your image by adding
IMAGE_INSTALL_append = " nano"
to your conf/local.conf file.
:rjs
Quoted 16 lines · Andre Bella
Hello
I had used buildroot in the pass and I like it cause is very easy to use,
but I'm moving to yocto cause it has more applications than buildroot, in buildroot you can select the packages you want to add by going to menuconfig, how do I select the packages I wan to add in yocto, for example if I wan to add nano or gstreamer, from the guide I seen you just type bitbake -b nano, but is there a menuconfig on yocto where you can select the package you want to add before you build the image?
thanks,_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 12 lines
-- *Rudolf J. Streif* Director of Embedded Solutions The Linux Foundation [email protected] Phone: +1.619.631.5383 Skype: rudolfstreif PGP: RSA 2048/2048 D6E7D28B Linux Foundation Events Schedule: events.linuxfoundation.org Linux Foundation Training Schedule: training.linuxfoundation.org
configure.ac +1 -1
@@ -442,7 +442,7 @@ AC_CHECK_HEADERS(ncurses.h) if test x$enable_utf8 != xno; then - AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes]) + AC_CHECK_LIB(ncursesw, get_wch, [CURSES_LIB="-lncursesw" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes]) fi if eval "test x$CURSES_LIB_NAME = x"; then
HI Rudolf,
I was able to build nano:
but my question is there a menuconfig to select what to build like in buildroot?
andre@linux:~/fsl-community-bsp/build$ bitbake -b nano WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
OE Build Configuration:
BB_VERSION = "1.15.2"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "imx53qsb"
DISTRO = "poky"
DISTRO_VERSION = "1.2.2"
TUNE_FEATURES = "armv7a vfp neon cortexa8"
TARGET_FPU = "vfp-neon"
meta
meta-yocto = "(nobranch):6caa7d1d6c122d084ed01d1f5e1dae0bf259f854" meta-oe = "(nobranch):c0117f5ad7d1fe18d149bda426c7134ff24daae8" meta-fsl-arm = "(nobranch):debea1a3c80227b33a3bbaa21c51435db1b3f5d7" meta-fsl-arm-extra = "(nobranch):6710df97df3d96776c598330e1bd2c63a9450030" meta-fsl-demos = "(nobranch):02186c594a782c9c5f5a2df1d0dbb3a91fd1e929"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 12 (ID: 4, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_fetch)
NOTE: package nano-2.2.5-r2.0: task do_fetch: Started
NOTE: package nano-2.2.5-r2.0: task do_fetch: Succeeded
NOTE: Running task 2 of 12 (ID: 0, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_unpack)
NOTE: package nano-2.2.5-r2.0: task do_unpack: Started
NOTE: package nano-2.2.5-r2.0: task do_unpack: Succeeded
NOTE: Running task 3 of 12 (ID: 1, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_patch)
NOTE: package nano-2.2.5-r2.0: task do_patch: Started
NOTE: package nano-2.2.5-r2.0: task do_patch: Succeeded
NOTE: Running task 4 of 12 (ID: 6, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_configure)
NOTE: Running task 5 of 12 (ID: 10, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_populate_lic)
NOTE: package nano-2.2.5-r2.0: task do_populate_lic: Started
NOTE: package nano-2.2.5-r2.0: task do_configure: Started
NOTE: package nano-2.2.5-r2.0: task do_populate_lic: Succeeded
NOTE: package nano-2.2.5-r2.0: task do_configure: Succeeded
NOTE: Running task 6 of 12 (ID: 7, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_compile)
NOTE: package nano-2.2.5-r2.0: task do_compile: Started
NOTE: package nano-2.2.5-r2.0: task do_compile: Succeeded
NOTE: Running task 7 of 12 (ID: 2, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_install)
NOTE: package nano-2.2.5-r2.0: task do_install: Started
NOTE: package nano-2.2.5-r2.0: task do_install: Succeeded
NOTE: Running task 8 of 12 (ID: 9, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_package)
NOTE: Running task 9 of 12 (ID: 3, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_populate_sysroot)
NOTE: package nano-2.2.5-r2.0: task do_package: Started
NOTE: package nano-2.2.5-r2.0: task do_populate_sysroot: Started
NOTE: package nano-2.2.5-r2.0: task do_populate_sysroot: Succeeded
NOTE: package nano-2.2.5-r2.0: task do_package: Succeeded
NOTE: Running task 10 of 12 (ID: 11, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_package_write_rpm)
NOTE: package nano-2.2.5-r2.0: task do_package_write_rpm: Started
NOTE: package nano-2.2.5-r2.0: task do_package_write_rpm: Succeeded
NOTE: Running noexec task 11 of 12 (ID: 8, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_package_write)
NOTE: Running noexec task 12 of 12 (ID: 5, /home/andre/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-support/nano/nano_2.2.5.bb, do_build)
NOTE: Tasks Summary: Attempted 12 tasks of which 0 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
andre@linux:~/fsl-community-bsp/build$
--- On Thu, 2/14/13, Rudolf Streif <[email protected]> wrote:
From: Rudolf Streif <[email protected]>
Subject: Re: [yocto] select installation packages
To: "Andre Bella" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thursday, February 14, 2013, 10:10 AM
Hi Andre,
There actually is no recipe for building the nano editor in YP by default. Unless you added one, bitbake -b nano
would result in this output
ERROR: Unable to find any recipe file matching 'nano'
I have attached a recipe for you to build nano and a patch to handle a configuration mistake configure.ac causing do_configure to fail.
If you add that recipe you can run bitbake nano. You can also include into your image by adding IMAGE_INSTALL_append = " nano"
to your conf/local.conf file.
:rjs
On Thu, Feb 14, 2013 at 8:02 AM, Andre Bella <[email protected]> wrote:
Hello
I had used buildroot in the pass and I like it cause is very easy to use, but I'm moving to yocto cause it has more applications than buildroot, in buildroot you can select the packages you want to add by going to menuconfig, how do I select the packages I wan to add in yocto, for example if I wan to add nano or gstreamer, from the guide I seen you just type bitbake -b nano, but is there a menuconfig on yocto where you can select the package you want to add before you build the image?
thanks,
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Signature · 9 lines
-- Rudolf J. StreifDirector of Embedded Solutions The Linux Foundation [email protected] Phone: +1.619.631.5383Skype: rudolfstreifPGP: RSA 2048/2048 D6E7D28B Linux Foundation Events Schedule: events.linuxfoundation.org Linux Foundation Training Schedule: training.linuxfoundation.org
Quoted 3 lines · Andre Bella
but my question is there a menuconfig to select what to build like in buildroot?
Hob has a UI, but if you're using the commandline bitbake then you'll have to edit packagegroups, images, or your local.conf manually.
Ross
Thanks but I'm not sure if you understood, with hob you can only uninstall
after the image has been build , were you able to select what to install before building the image? same as buildroot?
--- On Thu, 2/14/13, Burton, Ross <[email protected]> wrote:
From: Burton, Ross <[email protected]>
Subject: Re: [yocto] select installation packages
To: "Andre Bella" <[email protected]>
Cc: "Rudolf Streif" <[email protected]>, [email protected]
Date: Thursday, February 14, 2013, 10:39 AM
On 14 February 2013 17:31, Andre Bella <[email protected]> wrote:
but my question is there a menuconfig to select what to build like in buildroot?
Hob has a UI, but if you're using the commandline bitbake then you'll have to edit packagegroups, images, or your local.conf manually.
Ross
Quoted 2 lines · Andre Bella
Thanks but I'm not sure if you understood, with hob you can only uninstall
after the image has been build , were you able to select what to install before building the image? same as buildroot?
Yes.
Once you have selected your "machine" and "base image", if you click on "Edit Image" (bottom right) you can add (or remove) packages before building.
Thank you Trevor, great information!!!
--- On Thu, 2/14/13, Trevor Woerner <[email protected]> wrote:
From: Trevor Woerner <[email protected]>
Subject: Re: [yocto] select installation packages
To: "Andre Bella" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thursday, February 14, 2013, 11:00 AM
Quoted 2 lines · Andre Bella
Thanks but I'm not sure if you understood, with hob you can only uninstall
after the image has been build , were you able to select what to install before building the image? same as buildroot?
Yes.
Once you have selected your "machine" and "base image", if you click on "Edit Image" (bottom right) you can add (or remove) packages before building.
Quoted 1 line · Andre Bella
is there a menuconfig on yocto where you can select the package you want to add before you build the image?
I would suggest giving hob a try:
<checkout the yocto project from git>
$ source poky/oe-init-build-env $ bitbake -u hob
Bitbake will compile need to download and compile up a bunch of stuff (just like menuconfig) but it'll take a bit longer. Eventually a UI will come up from which you can start selecting things like your machine, packages, etc.