Sunday 17 July 2016

Porting AOSP to OP2



Hi there,
I have recently been trying to learn and build custom ROMs for the OP2. I have successfully managed to build CM13 from source so I feel now is the time to face a bigger project.

I am attempting to port AOSP to the OP2 using the CM13 device tree found on github: https://github.com/CyanogenMod/andro...eplus_oneplus2 and the vendor files etc... I have repo sync'ed the AOSP source code into a directory and cloned the gits below into the directory as well:
https://github.com/HGT98/android_device_qcom_common
https://github.com/HGT98/android_dev...eplus_oneplus2
https://github.com/HGT98/proprietary_vendor_oneplus
https://github.com/HGT98/android_device_oppo_common
https://github.com/HGT98/android_kernel_oneplus_msm8994

The changes I have made so far to the device tree are as follows:

Added AndroidProducts.mk copied and changed from hammerhead
Added AndroidBoard.mk
Removed cm.mk
Removed cm.dependances
Renamed full_oneplus2.mk to oneplus2.mk and renamed instances of make file
Change Kernel DEFCONFIG and remove cm_ and change in kernel/arch/arm64/config cm_ removed

Added missing libraries throwing make errors from CyanogenMod github

liblight in hardware/qcom/display/msm8994/liblight/Android.mk was removed due to conflict with oneplus2 device specific code

Now I am facing an error about 'ninja'. I have copied in the whole command line into paste bin, but I feel the most important part is below:
http://pastebin.com/4fqyzq2U

[spoiler]
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'oneplus2'
build/core/ninja.mk:142: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (41 seconds) ####
[/spoiler]

Thank you for any help or insight. PM me if you know any specifics. Thanks.



No comments:

Post a Comment