3
votes

I am using Yocto(poky) freescale linux for creating new software. I have compiled my binaries on Poky 1.6 daisy. But to build recipes on this system I can not find bitbake command.

I searched every where on Google but no luck. Can anybody tell me how do i install bitbake in mentioned machine so that I can create rpm package for that machine.

Thanks in advance.

1
bitbake is at sources/poky/bitbake. How did you compile poky binaries? bitbakeLPs
There is something strange. Yocto is a complete solution that can generate u-boot, kernel, DTBs, and RootFS for your target. Is not necessary to compile binaries "by hand". If you downloaded all Yocto layers, you have a complete toolssuite to do the job. Read THIS. It is a complete and exhaustive guide to quick start working with Yocto.LPs
You have to download/clone the Yocto repo. Then you must create a new layer into Yocto sources and write your recipe to compile your modules and to create your rpm. You have to follow the guide I linked you to do that.LPs
swapnilmore, @lp has a point. You are trying to put the cart in front of the horse. Typically you wouldn't compile your software on the target itself but rather on the host(cross compilation). This is where yocto/oe can help you. When doing it on the target you are on your own. Nevertheless it can be also done on the target. Don't use bitbake though. Install rpmbuild and use it directly.Frank Meerkötter
@SwapnilMore I don't understand why you compile things on the target because Yocto is there to build all that for you. Have you read documentation that explain how to start with the SDK? For the setup, I had to run ./poky/scripts/host-prepare.sh and then source ./poky/fsl-setup-poky -m mytargetname ... then you will be able to run bitbake (from the build directory once you have used source mybuilddir/SOURCE_THIS).amigadev

1 Answers

13
votes

To start using bitbake you need to source the "oe-init-build-env" script located into poky/ directory. So you should do something like this:

$ cd /path/to/poky
$ source ./oe-init-build-env
$ bitbake <recipe>

Hope this helps.