learn how to build derpfest from source for your device
If your device sources (trees, vendor, kernel etc.) are not stable we don't suggest to continue reading this guide. Fix your device side sources first, else the expirence will be bad.
We suggest using LOS or PE device sources as they are mostly stable and don't require much changes.
The given examples below are for either PE or LOS rom
If Pixel Expirence aosp_device-codename.mk to derp_device-codename.mk If Lineage os lineage_device-codename.mk to derp_device-codename.mk
Change “aosp“ or “lineage“ to “aosip” & /”common.mk” to “common_full_phone.mk” for example: $(call inherit-product, vendor/aosip/config/common_full_phone.mk)
Change PRODUCT_NAME value to “lineage_device-codename || aosp_device-codename” for example: ( “lineage_tissot || aosp_tissot” ) to derp_device-codename ( i.e, derp_tissot )
Also rename make file name in the AndroidProducts.mk file - open it and change value of ("PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/"(lineage_device-codename.mk || aosp_device-codename.mk”) to ”derp_device-codename.mk”) ( i.e "PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/derp_tissot.mk )
It is necessary to clean up any specific files from LineageOS as these features depend on Los SDK which won’t be available on AOSP and will results in build failures. e.g: LiveDisplay, LineageParts, LineageOverlays etc.From the root of your device tree/Common device tree remove the following folders/files: lineage-overlays lineagehw Simillarly from BoardConfig.mk/BoardConfigCommon.mk:
From manifest.xml remove livedisplay HAL:
Reference for this guide is taken from Arrow OS Blog