[Nexus 5 Developer Discussion [Developers Only]] garynych:
I want to build 12.1 CAF

this way is right?

Checking out files: 100% (13/13), done.king out files: 30% (4/13)
Checking out files: 100% (168/168), done.
Syncing work tree: 100% (556/556), done.

garynych@Aspire-V3-571 ~/cm12.1 $ . build/envsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
garynych@Aspire-V3-571 ~/cm12.1 $ lunch

You're building on Linux

Lunch menu... pick a combo:
1. aosp_arm-eng	54. cm_kltechnduo-userdebug
2. aosp_arm64-eng	55. cm_kltespr-userdebug
3. aosp_mips-eng	56. cm_l900-userdebug
4. aosp_mips64-eng	57. cm_m7-userdebug
5. aosp_x86-eng	58. cm_m7vzw-userdebug
6. aosp_x86_64-eng	59. cm_m8-userdebug
7. m_e_arm-userdebug	60. cm_mako-userdebug
8. mini_emulator_mips-userdebug	61. cm_manta-userdebug
9. mini_emulator_x86_64-userdebug	62. cm_maserati-userdebug
10. mini_emulator_arm64-userdebug	63. cm_mb886-userdebug
11. mini_emulator_x86-userdebug	64. cm_mondrianwifi-userdebug
12. cm_acclaim-userdebug	65. cm_n3-userdebug
13. cm_amami-userdebug	66. cm_n5100-userdebug
14. cm_bacon-userdebug	67. cm_n5110-userdebug
15. cm_castor-userdebug	68. cm_nicki-userdebug
16. cm_castor_windy-userdebug	69. cm_obake-userdebug
17. cm_condor-userdebug	70. cm_peregrine-userdebug
18. cm_d2att-userdebug	71. cm_picassowifi-userdebug
19. cm_d2spr-userdebug	72. cm_quark-userdebug
20. cm_d2tmo-userdebug	73. cm_scorpion-userdebug
21. cm_d2vzw-userdebug	74. cm_scorpion_windy-userdebug
22. cm_d850-userdebug	75. cm_serrano3gxx-userdebug
23. cm_d851-userdebug	76. cm_serranoltexx-userdebug
24. cm_d852-userdebug	77. cm_shamu-userdebug
25. cm_d855-userdebug	78. cm_sirius-userdebug
26. cm_deb-userdebug	79. cm_spyder-userdebug
27. cm_dlx-userdebug	80. cm_superior-userdebug
28. cm_e975-userdebug	81. cm_t0lte-userdebug
29. cm_e980-userdebug	82. cm_t6-userdebug
30. cm_evita-userdebug	83. cm_t6spr-userdebug
31. cm_falcon-userdebug	84. cm_t6vzw-userdebug
32. cm_find7-userdebug	85. cm_targa-userdebug
33. cm_find7s-userdebug	86. cm_tf300t-userdebug
34. cm_flo-userdebug	87. cm_thea-userdebug
35. cm_fugu-userdebug	88. cm_tilapia-userdebug
36. cm_ghost-userdebug	89. cm_titan-userdebug
37. cm_grouper-userdebug	90. cm_togari-userdebug
38. cm_hammerhead-userdebug	91. cm_togari_gpe-userdebug
39. cm_hammerheadcaf-userdebug	92. cm_trltetmo-userdebug
40. cm_hlte-userdebug	93. cm_trltexx-userdebug
41. cm_hltespr-userdebug	94. cm_umts_spyder-userdebug
42. cm_hltetmo-userdebug	95. cm_v410-userdebug
43. cm_i605-userdebug	96. cm_v500-userdebug
44. cm_i925-userdebug	97. cm_victara-userdebug
45. cm_honami-userdebug	98. cm_ville-userdebug
46. cm_jflteatt-userdebug	99. cm_vs985-userdebug
47. cm_jfltespr-userdebug	100. cm_xt897-userdebug
48. cm_jfltetmo-userdebug	101. cm_xt907-userdebug
49. cm_jfltevzw-userdebug	102. cm_xt925-userdebug
50. cm_jfltexx-userdebug	103. cm_xt926-userdebug
51. cm_klimtwifi-userdebug	104. cm_z3-userdebug
52. cm_klte-userdebug	105. cm_z3c-userdebug
53. cm_kltechn-userdebug

Which would you like? [aosp_arm-eng] 39
ls: невозможно получить доступ к device/*/hammerheadcaf/cm.mk: Нет такого файла или каталога
build/core/product_config.mk:234: *** Can not locate config makefile for product "cm_hammerheadcaf". Останов.
Device hammerheadcaf not found. Attempting to retrieve device repository from CyanogenMod Github ([url]http://github.com/CyanogenMod[/url]).
Found repository: android_device_lge_hammerheadcaf
Default revision: cm-12.1
Checking branch info
Adding dependency: CyanogenMod/android_device_lge_hammerheadcaf -> device/lge/hammerheadcaf
Using default branch for android_device_lge_hammerheadcaf
Syncing repository to retrieve project.
Fetching project CyanogenMod/android_device_lge_hammerheadcaf
Fetching projects: 100% (1/1), done.

Repository synced!
Looking for dependencies
Adding dependencies to manifest
Adding dependency: CyanogenMod/android_kernel_lge_hammerhead -> kernel/lge/hammerhead
Adding dependency: CyanogenMod/android_device_qcom_common -> device/qcom/common
Using default branch for android_device_qcom_common
Syncing dependencies
Fetching project CyanogenMod/android_device_qcom_common
Fetching project CyanogenMod/android_kernel_lge_hammerhead
Fetching projects: 100% (2/2), done.
Checking out files: 100% (41719/41719), done.

Looking for dependencies
Dependencies file not found, bailing out.
Looking for dependencies
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/lge/hammerheadcaf/cm.mk]]: "vendor/lge/hammerheadcaf/hammerheadcaf-vendor.mk" does not exist. Останов.

** Don't have a product spec for: 'cm_hammerheadcaf'
** Do you have the right repo manifest?

then open

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_lge_hammerheadcaf" path="device/lge/hammerheadcaf" remote="github" />
<project name="CyanogenMod/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-12.1-caf" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
</manifest>

and add this

https://github.com/TheMuppets/proprietary_vendor_lge/tree/cm-12.1

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_lge_hammerheadcaf" path="device/lge/hammerheadcaf" remote="github" />
<project name="TheMuppets/proprietary_vendor_lge" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-12.1-caf" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
</manifest>

and again repo sync -j5

right ? or need something else to fix for a good build? if need,please show me example ...

thx.