--- title: Spark slug: Archive/B2G_OS/Spark translation_of: Archive/B2G_OS/Building_and_installing_B2G_OS ---

Spark est compilé de la même manière que Firefox OS, excepté que la variable d'environnement GAIA_DISTRIBUTION_DIR=distros/spark est définie.

Compiler B2G avec Spark

Article principal : Compiler Boot2Gecko

GAIA_DISTRIBUTION_DIR=distros/spark ./build.sh

Compiler Gaia avec Spark

Article principal : Développer pour Gaia - référence des options de make

GAIA_DISTRIBUTION_DIR=distros/spark make