Skip to content

Build Pantavisor

For building, the flow is very similar to the Android build system, except that targets are not setup in advance of operations but rather these are conditional on the target and the flow is managed by scripts/

Build your chosen reference device

After you have chosen a reference device matching your device target architecture and downloaded the Pantavisor source code, you can now start the building process.

First of all, check you still are in your Pantavisor workspace path. Output of ls should look similar to:

alchemy  bootloader  config
external  internal  kernel  out  scripts  toolchains  vendor

Now, you can start the compilation of all the dependencies and flashable image using your chosen device target and set its Clone URL with the PVR_MERGE_SRC build option:

PVR_MERGE_SRC= ./ malta-qemu

You can directly clone a device and use the local checkout path adding the /.pvr suffix:

pvr clone my-checkout
PVR_MERGE_SRC=my-checkout/.pvr ./ malta-qemu


For other advaced building options and configuration, check our build options, build components or Pantavisor configuration references.

This will generate all dependencies of the malta-qemu build tree and build a final image according to the values defined in config/malta/image.config. You can find the generated image in out/malta/flash-malta-16384.img. In this case is a pflash QEMU bootable image to be used with the locally built host QEMU. To check how to run this and images for other targets, go here.