[Moto G 4G Android Development] Bastlwastl2010:
After dropping peregrine from nighlies i do my first step in making my own CM...

I see this project and think this is something for a beginner like me.

First steps works fine, all set.

Sync repro

source build/envsetup.sh

make clean

brunch peregrine

Works for 10 minutes then a fatal error:

target arm C: audio.primary.msm8226 <= hardware/qcom/audio-caf/msm8226/hal/audio_hw.c
target arm C: audio.primary.msm8226 <= hardware/qcom/audio-caf/msm8226/hal/voice.c
target arm C: audio.primary.msm8226 <= hardware/qcom/audio-caf/msm8226/hal/platform_info.c
target arm C: audio.primary.msm8226 <= hardware/qcom/audio-caf/msm8226/hal/msm8974/platform.c
In file included from hardware/qcom/audio-caf/msm8226/hal/msm8974/platform.c:31:0:
hardware/qcom/audio-caf/msm8226/hal/audio_hw.h:25:38: fatal error: hardware/audio_amplifier.h: No such file or directory
#include <hardware/audio_amplifier.h>
^
compilation terminated.
In file included from hardware/qcom/audio-caf/msm8226/hal/voice.c:29:0:
hardware/qcom/audio-caf/msm8226/hal/audio_hw.h:25:38: fatal error: hardware/audio_amplifier.h: No such file or directory
#include <hardware/audio_amplifier.h>
^
make: *** [/home/cmbuild/android/out/target/product/peregrine/obj/SHARED_LIBRARIES/audio.primary.msm8226_intermediates/msm8974/platform.o] Error 1In file included from hardware/qcom/audio-caf/msm8226/hal/platform_info.c:37:0:
hardware/qcom/audio-caf/msm8226/hal/audio_hw.h:25:38: fatal error: hardware/audio_amplifier.h: No such file or directory
#include <hardware/audio_amplifier.h>
^

compilation terminated.
make: *** Waiting for unfinished jobs....
compilation terminated.
make: *** [/home/cmbuild/android/out/target/product/peregrine/obj/SHARED_LIBRARIES/audio.primary.msm8226_intermediates/platform_info.o] Error 1
make: *** [/home/cmbuild/android/out/target/product/peregrine/obj/SHARED_LIBRARIES/audio.primary.msm8226_intermediates/voice.o] Error 1
In file included from hardware/qcom/audio-caf/msm8226/hal/audio_hw.c:49:0:
hardware/qcom/audio-caf/msm8226/hal/audio_hw.h:25:38: fatal error: hardware/audio_amplifier.h: No such file or directory
#include <hardware/audio_amplifier.h>
^
compilation terminated.
make: *** [/home/cmbuild/android/out/target/product/peregrine/obj/SHARED_LIBRARIES/audio.primary.msm8226_intermediates/audio_hw.o] Error 1
cmbuild@2f6aeebdb2b8:~/android$ source build/envsetup.sh

My motorola-msm8226.xml:

?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-12.1" />
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" />

</manifest>

What is going wrong??

Im still testing around, but i have no hardware/audio_amplifier.h in hardware/qcom/audio-caf/msm8226/hal/audio