Welcome to the Custom ROM Cloning Script repository! This script simplifies cloning the necessary repositories for building custom ROMs for the Nothing Phone 2, ensuring an efficient and seamless development process.
- Device Tree: Clone the device tree repository for Nothing Phone 2 (Pong).
- HAL Repositories: Clone and set up essential Hardware Abstraction Layer (HAL) components, including display, audio, sepolicy, and more.
- Kernel Repositories: Get kernel source, modules, and device trees ready for building.
- Paranoid Glyph: Include Paranoid Glyph components for customization.
- Dolby Support: Clone Dolby hardware repositories for audio enhancements.
- Customizable Build Metadata: Option to override
BUILD_USERNAME
andBUILD_HOSTNAME
for reproducible builds.
To get started, run the following command in your terminal:
wget https://raw.githubusercontent.com/Pong-Development/setup_script/refs/heads/main/setup.sh && bash setup.sh
- A Linux-based development environment.
- Git installed and configured.
- Basic familiarity with custom ROM development.
- The script clones the required repositories for device tree, vendor, kernel, and HALs.
- Allows you to set custom build metadata (
BUILD_USERNAME
andBUILD_HOSTNAME
). - Automatically sets up your development directory for ROM building.
Here are the repositories the script clones:
- Device Tree: device_nothing_Pong
- Vendor Tree: vendor_nothing_Pong
- Kernel Tree:
- Display HAL: hardware_qcom-caf_sm8450_display
- Audio HAL:
- Sepolicy: device_qcom_sepolicy_vndr
- Paranoid Glyph: packages_apps_ParanoidGlyph
- Dolby: hardware_dolby
- For AOSPA-based ROMs, use the
clo/caf
branch of tree and vendor and default glyph repo. - If unsure about branches, the script will use defaults compatible with most builds.
Feel free to suggest changes or improvements to the repository!