Testing Buildroot for an Architecture

scripts/mkpkg script

If you want to test the build of a single package you can use the mkpkg script.

  • $ scripts/mkpkg PACKAGE
  • Will make the board, and save the result in a log file. The log file resides in

  • $ log/OK/PACKAGE.log.OK
  • if the build succeeds and in

  • $ log/OK/PACKAGE.log.FAIL
  • if it cannot complete.

    By creating an alias

  • alias mk=scripts/mkpkg
  • it is enough to type

  • $ mk PACKAGE
  • mkpkg will only print out the

    {PACKAGE}......OK

    or

    {PACKAGE}......FAIL

    depending on success or failure making it easy to get an overview of the status of this specific architecture.

    It is recommended to build a simple board before running the test to get some basic things done.

    scripts/buildall.sh script

    By running this script you will run scripts/mkpkg on a lot of the packages available in Buildroot.

    You need to run the script while in the TOP directory. I.E: Where you typically run make.

    There are a few lacking, for no very good reason, but these can be easily added.

    Note that some packages will not build properly if you do not enable them using makeconfig.

    Examples are:

  • freetype
  • socat