4

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.

8
  • 1
    bitbake is at sources/poky/bitbake. How did you compile poky binaries? bitbake Commented Mar 10, 2016 at 7:07
  • 2
    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. Commented Mar 10, 2016 at 7:18
  • 1
    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. Commented Mar 10, 2016 at 7:52
  • 1
    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. Commented Mar 10, 2016 at 8:01
  • 1
    @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). Commented Mar 18, 2016 at 10:35

1 Answer 1

22

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Something to be aware of which others might find useful too - invoking the script in a default bash manner: ./oe-init-build-env did not fix that for me, but calling it with source ./oe-init-build-env did the trick! (as shown above, just wanted to emphasise that)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.