Building Rom For 'XAGA'
Targaryen•@Targaryen420
Private:(do not share) it's only for test tube
buildGuide: A Beginner's Guide on How to Compile a Custom ROM
Targaryen/BuildGuide:


Custom ROM Build Guide !!
A Beginner's Guide on How to Compile a Custom ROM.
Step 1: Initiate Directory
mkdir romname cd romname git config --global user.email "yourname@mail.com" && git config --global user.name "yourname"
Step 2: Cloning ROM Source:
repo init -u https://github.com/romname/android_manifest.git -b branches repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
Refer to your ROM's Manifest for detailed clone guide.
Step 3: Cloning Trees:
I have opted for xaga belongs so clone your DT's according to the device you are going to build for.
Check your device on your ROM's Official Devices Repo to figure out all the trees required for it.
Cloning Device Tree :
git clone https://github.com/bharath6300000/device_xiaomi_xaga.git -b 13 device/xiaomi/xaga
Cloning Kernel Tree :
git clone https://github.com/Rohail33/device_xiaomi_mt6895-common.git -b stable kernel/xiaomi/mt6895
Cloning Vendor Tree :
git clone https://gitlab.com/vvd09/vendor_xiaomi_xaga.git -b 13 vendor/xiaomi/xaga
Cloning Sepolicy Tree:
git clone https://github.com/wbs306/device_mediatek_sepolicy_vndr -b lineage-20 device/mediatek/sepolicy_vndr
Step 4: Editing Device Tree:
cd device/xiaomi/xaga
Rename the aosp_xaga.mk
to your current ROM.
Edit AndroidProducts.mk
. Rename the pre-existing aosp
to your current ROM.
Step 5: Compiling the ROM:
Setup Build Environment:
. build/envsetup.sh
Setup Lunch:
lunch romname_devicename-userdebug
Compile:
mka bacon
Refer to your ROM's Manifest for Compile Flags.
Fixing Errors:
Fixing errors that arise during a ROM Development is a whole another branch of headache. Your build might get an error. It might not get an error. Each build might get an different error. It takes a lot of research and understanding to figure out the solutions. Wishing you Best of Luck !