android - Can not locate config makefile for product "cm_oneplus2" -


i've been trying build asop rom oneplus two.

  1. i've made working-dir folder in ubuntu's home. installed required tools , scripts like, java, python, make, git , lib files.

  2. i've downloaded compressed sources(no .repo folder included), i've aosp5.1.0 folder me. i've downloaded them form here. (heavily compressed android sources). extracted them working-dir using terminal.

  3. i've cloned device tree repository

https://github.com/krishna422/android_device_oneplus_oneplus2 working-dir/device/oneplus/oneplus2

  1. i've cloned kernel source repository

https://github.com/krishna422/android_kernel_oneplus_msm8994 working-dir/kernel/oneplus/oneplus2

  1. i've cloned vendor tree repository

https://github.com/krishna422/proprietary_vendor_oneplus working-dir/vendor/oneplus/oneplus2

so files in working-dir are,

aosp5.1.0, device, kernel, vendor

files in aosp5.1.0

files in aosp5.1.0 screenshot

i've copied

working-dir/device/oneplus/ folder aosp5.1.0/device

then, opened cmd, navigated aosp5.1.0 folder typed source build/envsetup.sh

i got

krishna@krishna:~/working-dir/aosp5.1.0$ source build/envsetup.sh  including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh including device/generic/mini-emulator-arm64/vendorsetup.sh including device/generic/mini-emulator-x86_64/vendorsetup.sh including device/generic/mini-emulator-x86/vendorsetup.sh including device/generic/mini-emulator-mips/vendorsetup.sh including evice/oneplus/android_device_oneplus_oneplus2/vendorsetup.sh including sdk/bash_completion/adb.bash 

then typed lunch got,

krishna@krishna:~/working-dir/aosp5.1.0$ lunch you're building on linux  lunch menu... pick combo:      1. aosp_arm-eng      2. aosp_arm64-eng      3. aosp_mips-eng      4. aosp_mips64-eng      5. aosp_x86-eng      6. aosp_x86_64-eng      7. m_e_arm-userdebug      8. mini_emulator_arm64-userdebug      9. mini_emulator_x86_64-userdebug      10. mini_emulator_x86-userdebug      11. mini_emulator_mips-userdebug      12. cm_oneplus2-user      13. cm_oneplus2-userdebug      14. cm_oneplus2-eng  like? 

when selected 12,13,14, following error, others working well.

build/core/product_config.mk:222: *** can not locate config makefile product "cm_oneplus2".  stop.  ** don't have product spec for: 'cm_oneplus2' ** have right repo manifest?  krishna@krishna:~/working-dir/aosp5.1.0$ 

please help

you need have file called androidproducts.mk in device tree. put following in it.

product_makefiles := \     $(local_dir)/oneplus2.mk 

it should match have in vendorsetup.sh , oneplus2.mk should exist.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -