Can'r compile Android for Moto G

yagyaxt1068

Senior Member
Jan 18, 2015
63
49
38
A City That Has Freedom Mobile
I've been trying to build an experimental AOSP Oreo ROM for the Moto G.
I used LineageOS' device tree for the Moto G, and tried to extract the proprietary blobs from it. It shows me these errors:
Code:
./extract-files.sh: line 28: ./../../motorola/msm8226-common/extract-files.sh: No such file or directory
I renamed the device tree to msm8226-common, then it shows:
Code:
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: retry: Resource temporarily unavailable
./../../motorola/msm8226-common/extract-files.sh: fork: Resource temporarily unavailable
I downloaded Motorola's kernel sources in a zip file and put them in the aosp/kernel/motorola/android_kernel_motorola_msm8226 folder.
I tried to run lunch, but it didn't show up in the menu at first. I made a vendorsetup.sh file to include it, but:
Code:
You're building on Linux

Lunch menu... pick a 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. full_fugu-userdebug
     8. aosp_fugu-userdebug
     9. aosp_car_emu_arm-userdebug
     10. aosp_car_emu_arm64-userdebug
     11. aosp_car_emu_x86-userdebug
     12. aosp_car_emu_x86_64-userdebug
     13. mini_emulator_arm64-userdebug
     14. m_e_arm-userdebug
     15. m_e_mips64-eng
     16. m_e_mips-userdebug
     17. mini_emulator_x86_64-userdebug
     18. mini_emulator_x86-userdebug
     19. uml-userdebug
     20. aosp_dragon-userdebug
     21. aosp_dragon-eng
     22. aosp_marlin-userdebug
     23. aosp_marlin_svelte-userdebug
     24. aosp_sailfish-userdebug
     25. aosp_walleye-userdebug
     26. aosp_walleye_test-userdebug
     27. aosp_taimen-userdebug
     28. aosp_angler-userdebug
     29. aosp_bullhead-userdebug
     30. aosp_bullhead_svelte-userdebug
     31. hikey-userdebug
     32. hikey960-userdebug
     33. falcon_full

Which would you like? [aosp_arm-eng] 33
build/core/product_config.mk:227: *** Can not locate config makefile for product "falcon_full".  Stop.
What can I do now?