Skip to content

About

No description, website, or topics provided.

Resources

Stars

119 stars

Watchers

6 watching

Forks

Latest commit

 

History

1,383 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Website | Download | Donate | Documentation | Telegram

BlissOS

Download the BlissOS source code, based on AOSP & Android-x86


Please read the AOSP building instructions before proceeding.


What you need to build BlissOS

Google's current AOSP workstation guidance (Android 9+): a 64-bit x86 Linux host, at least 64 GB RAM, and about 400 GB free disk (roughly 250 GB for the checkout plus 150 GB to build). See AOSP hardware requirements. Google cites ~40 minutes for a full build on a 72-core / 64 GB machine, versus ~6 hours on a 6-core / 64 GB machine.

Practical expectations for individuals

Bliss OS x86 (ISO + optional OTA) is a full platform tree. Plan for more space and time than a phone-only target.

Goal Rough hardware Full build time (order of magnitude)
Minimum that can finish 64 GB RAM, modern multi-core CPU, 500 GB+ free SSD Many hours (often half a day or more)
Comfortable personal workstation 64 to 128 GB RAM, 16+ cores, 1 TB+ NVMe Several hours
About 2 hours (our reference host) Dual Intel Xeon Gold 6252 (48 cores / 96 threads), 256 GB RAM, multi-TB fast disk ~2 hours for a clean Bliss OS x86 build

Also use a recent Ubuntu LTS (or similarly new 64-bit Linux with glibc 2.17+). Building inside a small VM with 16 to 32 GB RAM is usually too slow or will OOM during Soong analysis.

If you need builds without standing up that kind of machine, Navotpala Tech offers commercial compile / build services for Bass OS and related stacks: https://navotpala.tech/ (Bass: https://bassos.navotpala.tech/). Bliss OS itself stays the public personal / community project.


Grabbing Dependencies

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip squashfs-tools python3-mako libssl-dev ninja-build lunzip syslinux syslinux-utils gettext genisoimage bc xorriso xmlstarlet meson glslang-tools git-lfs libncurses6 libncurses6:i386 libelf-dev aapt zstd rdfind nasm

Rust toolchain (required for Mesa / kernel)

Rust toolchain and related host programs are required. Install them with rustup, not the distro packages:

sudo apt remove rustc bindgen cargo -y
# then install rustup from https://www.rust-lang.org/tools/install

After rustup is installed:

cargo install cargo-ndk
cargo install --version 0.69.1 bindgen-cli
cargo install cbindgen

Mesa's AOSPEXT configure (and multilib x86 builds) need Android rust-std targets on the same toolchain that rustc resolves to (targets are per-toolchain, not global):

# Prefer installing against the active/default toolchain explicitly:
rustup default   # note the active name, e.g. 1.93.1-x86_64-unknown-linux-gnu
rustup target add --toolchain "$(rustup default | awk '{print $1}')" \
    x86_64-linux-android \
    i686-linux-android \
    aarch64-linux-android \
    armv7-linux-androideabi

x86_64-linux-android and i686-linux-android are required for bliss_x86_64_tablet (64-bit and 32-bit Mesa). The ARM targets are recommended if you also build ARM products from the same host.

Verify what the build will see:

rustc --version
rustup target list --installed
rustc --target x86_64-linux-android --print target-libdir

cbindgen must be on PATH (Mesa puts ~/.cargo/bin first). Alternatively:

sudo apt install cbindgen

Ubuntu 24.04+ libncurses5 workarounds

Ubuntu 24.04+ removed libncurses5. Symlink libncurses6 if older host tools still need .so.5 names.

!!! WARNING: These commands modify /lib; proceed with caution.

sudo ln -s /lib/x86_64-linux-gnu/libncurses.so.6 /lib/x86_64-linux-gnu/libncurses.so.5
sudo ln -s /lib/x86_64-linux-gnu/libncursesw.so.6 /lib/x86_64-linux-gnu/libncursesw.so.5
sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.6 /lib/x86_64-linux-gnu/libtinfo.so.5
sudo ln -s /lib/i386-linux-gnu/libncurses.so.6 /lib/i386-linux-gnu/libncurses.so.5
sudo ln -s /lib/i386-linux-gnu/libncursesw.so.6 /lib/i386-linux-gnu/libncursesw.so.5
sudo ln -s /lib/i386-linux-gnu/libtinfo.so.6 /lib/i386-linux-gnu/libtinfo.so.5

On Ubuntu 26.04+, prefer installing the Jammy libncurses5 / libtinfo5 debs instead of only symlinks when older RenderScript/LLVM host binaries fail to load libncurses.so.5.

Ubuntu 26.04+ Mesa libxml2.so.2

Ubuntu 26.04 only provides libxml2.so.16. Mesa's bundled mesa_clc still needs libxml2.so.2 (and libicuuc.so.74). After syncing the tree:

prebuilts/mesa-build-deps/install-ubuntu26-compat-libs.sh

That stages Noble libxml2 / libicu74 into prebuilts/mesa-build-deps/root/lib64 (used via the wrapper's LD_LIBRARY_PATH).

Initializing Repository

Repo initialization

repo init -u https://github.com/BlissOS/platform_manifest.git -b xylobium-x86 --git-lfs

Sync repo

repo sync -c --force-sync --no-tags --no-clone-bundle -j4 --optimized-fetch --prune

Options

BLISS_BUILD_VARIANT - (vanilla, foss, microg, gapps) - Extra apps/services to include.

Note: Default BLISS_BUILD_VARIANT is VANILLA.

Building

 . build/envsetup.sh
 lunch bliss_x86_64_tablet-userdebug
 m

Or via blissify when available for the product:

 blissify options deviceCodename

Report build issues

About

No description, website, or topics provided.

Resources

Stars

119 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors