[Moto G Android Development] xc-racer99:
Build Your Own!

For 6.0

Follow the instructions at http://docs.omnirom.org/Setting_Up_A_Compile_Environment but use the android-6.0 branch. Before doing a repo sync, create a file in local_manifests and put the follow in it:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="android_device_motorola_falcon" path="device/motorola/falcon" remote="omnirom" revision="android-6.0" />
<remove-project name="android_device_motorola_falcon" path="device/motorola/falcon" remote="omnirom" revision="android-6.0" />
<project name="xc-racer99/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="android-6.0" />
<project name="ant-wireless/Android_build" path="external/ant-wireless/build" remote="github" revision="master" />
<project name="ant-wireless/Android_antradio-library" path="external/ant-wireless/antradio-library" remote="github" revision="master" />
<project name="ant-wireless/Linux_ant-hal" path="external/ant-wireless/ant-hal" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTHALService" path="external/ant-wireless/ANTHALService" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTRadioService" path="external/ant-wireless/ANTRadioService" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTPlusPluginsService" path="external/ant-wireless/Android_ANTPlusPluginsService" remote="github" revision="master" />
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" revision="cm-13.0" />
<project name="xc-racer99/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="android-6.0" />
<project name="xc-racer99/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="android-6.0" />
<project name="android_hardware_qcom_display-caf-msm8974" path="hardware/qcom/display-caf-msm8974" remote="omnirom" revision="android-6.0" />
<project name="android_hardware_qcom_media-caf-msm8974" path="hardware/qcom/media-caf-msm8974" remote="omnirom" revision="android-6.0" />
<project name="android_hardware_qcom_audio-caf-msm8974" path="hardware/qcom/audio-caf-msm8974" remote="omnirom" revision="android-6.0" />
<project name="android_device_qcom_caf-sepolicy" path="device/qcom/sepolicy" remote="omnirom" revision="android-6.0" />
<project name="android_frameworks_av" path="frameworks/av-caf" remote="omnirom" revision="android-6.0-caf" />
<project name="android_frameworks_native" path="frameworks/native-caf" remote="omnirom" revision="android-6.0-caf" />
<project name="android_hardware_ril" path="hardware/ril-caf" remote="omnirom" revision="android-6.0-caf" />
<project name="xc-racer99/android_system_qcom" path="system/qcom" remote="github" revision="android-6.0" />
<project name="vendor_qcom_opensource_display-frameworks" path="vendor/qcom/opensource/display-frameworks" remote="omnirom" revision="android-6.0" />
<project name="xc-racer99/android_external_connectivity" path="external/connectivity" remote="github" revision="android-6.0" />
<project name="xc-racer99/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="android-6.0" />
</manifest>

Run ./device/motorola/falcon/patches/apply_patches.sh to apply the necessary patches to the source code. Then run "source ./build/envsetup.sh" followed by "brunch falcon".

For 5.1

Follow the instructions at http://docs.omnirom.org/Setting_Up_A_Compile_Environment but use the android-5.1 branch. Before doing a repo sync, create a file in local_manifests and put the follow in it:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="xc-racer99/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="android-5.1" />
<project name="android_hardware_qcom_display-caf-bfam" path="hardware/qcom/display-caf-bfam" remote="omnirom" revision="android-5.1" />
<project name="android_hardware_qcom_media-caf-bfam" path="hardware/qcom/media-caf-bfam" remote="omnirom" revision="android-5.1" />
<project name="android_hardware_qcom_audio-caf-bfam" path="hardware/qcom/audio-caf-bfam" remote="omnirom" revision="android-5.1" />
<project name="android_frameworks_av" path="frameworks/av-caf" remote="omnirom" revision="android-5.1-caf" />
<project name="android_hardware_qcom_fm" path="hardware/qcom/fm" remote="omnirom" revision="android-5.1" />
<project name="xc-racer99/android_system_qcom" path="system/qcom" remote="github" revision="android-5.1" />
<project name="xc-racer99/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="android-5.1" />
<project name="xc-racer99/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="android-5.1" />
<project name="xc-racer99/android_device_motorola_falcon" path="device/motorola/falcon" remote="github" revision="android-5.1" />
<project name="ant-wireless/Android_build" path="external/ant-wireless/build" remote="github" revision="master" />
<project name="ant-wireless/Android_antradio-library" path="external/ant-wireless/antradio-library" remote="github" revision="master" />
<project name="ant-wireless/Linux_ant-hal" path="external/ant-wireless/ant-hal" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTHALService" path="external/ant-wireless/ANTHALService" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTRadioService" path="external/ant-wireless/ANTRadioService" remote="github" revision="master" />
<project name="ant-wireless/Android_ANTPlusPluginsService" path="external/ant-wireless/Android_ANTPlusPluginsService" remote="github" revision="master" />
</manifest>

Next, apply the patch located at https://gist.github.com/xc-racer99/d1d5cff162ee4fa0239d Then, open a terminal and in the directory where you downloaded the source code type "source ./build/envsetup.sh" and then "brunch falcon"