0

I have written a small program in python and QT5. I want it on raspberry PI as a single application. I have checked out buildroot and yocto but can't seems to find a single tutorial which can explain the steps from compiling the python code and make it part of buildroot/yocto. Can anyone please guide me or point me to a tutorial.

Regards,

Yasar
  • 11
  • 5

1 Answers1

1

In Buildroot, there are two ways that you can add your own Python code to the build.

  1. Using a root filesystem overlay to add you python files in the appropriate place in the root filesystem. This has a lot of limitations though: it doesn't get byte-compiled, you have to make sure yourself that it gets installed in some location in PYTHONPATH, and generally it's a bit more difficult to maintain. However, it's a very simple approach for a first try.
  2. Creating a custom python package. It's also not really complicated to do that, but you really do have to read the documentation.
Arnout
  • 2,927
  • 16
  • 24