[Moto G Original Android Development] reali:
build cm11 for xt1032 from sources

dhacker29, i'm sorry can you help me with building cm11 from sources?

I have experience in building apps and kernels but I am not an expert. I have international gsm version of moto G. I'm using Ubuntu 13.04 64-bit

my steps:

I did everything from Getting Started

after "repo sync" was finished, I did "source build/envsetup.sh"

while I've been trying to make a breakfast ("breakfast xt1032") I had error

including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/motorola/xt1032/cm.mk]]: "device/motorola/qcom-common/qcom-common.mk" does not exist. Stop.
Device xt1032 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 76, in <module>
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/motorola/xt1032/cm.mk]]: "device/motorola/qcom-common/qcom-common.mk" does not exist. Stop.

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

in dir "device/motorola/" it was not "qcom-common/qcom-common.mk" and I tried to create them (emty qcom-common.mk in "device/motorola/qcom-common/") and somehow it worked

also I'am added to "device/motorola/xt1032/BoardConfig.mk" file couple of lines (without them it won't build)

TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a

"breakfast xt1032"

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140116-UNOFFICIAL-xt1032
TARGET_PRODUCT=cm_xt1032
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv5te
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/ali/cm_11_motog/out
============================================

then "brunch xt1032" gave me such errors

/home/ali/cm_11_motog/out/target/product/xt1032/obj/APPS/SignatureTest_intermediates
external/v8/Android.mk:22: WARNING: Building on ARM with non-ARMv7 variant. On ARM, V8 is well tested only on ARMv7.
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/vendor/etc/audio_effects.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/egl/egl.cfg'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/egl/egl.cfg'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/hw/camera.msm8226.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/hw/camera.msm8226.so'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libmmjpeg_interface.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libmmjpeg_interface.so'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libqomx_core.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libqomx_core.so'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/bin/mm-qcamera-app'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/bin/mm-qcamera-app'
build/core/Makefile:44: warning: overriding commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libmmcamera_interface.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/ali/cm_11_motog/out/target/product/xt1032/system/lib/libmmcamera_interface.so'
No private recovery resources for TARGET_DEVICE xt1032
make -C kernel/motorola/msm8226 O=/home/ali/cm_11_motog/out/target/product/xt1032/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ali/cm_11_motog/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/ali/cm_11_motog/kernel/motorola/msm8226'
target arm C: libc <= bionic/libc/bionic/pthread.c
target thumb C++: libc <= bionic/libc/bionic/libc_init_dynamic.cpp
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
host C++: clang <= external/clang/tools/driver/cc1_main.cpp
host C++: clang <= external/clang/tools/driver/cc1as_main.cpp
host C++: clang <= external/clang/tools/driver/driver.cpp
In file included from bionic/libc/private/bionic_atomic_inline.h:53:0,
from bionic/libc/bionic/pthread.c:37:
bionic/libc/private/bionic_atomic_arm.h:124:2: error: #error Only ARM devices which have LDREX / STREX are supported
bionic/libc/bionic/libc_init_dynamic.cpp:95:17: warning: unused parameter 'onexit' [-Wunused-parameter]
make: *** [/home/ali/cm_11_motog/out/target/product/xt1032/obj/SHARED_LIBRARIES/libc_intermediates/bionic/pthread.o] Error 1
make: *** Waiting for unfinished jobs....
/tmp/cc0Lxy1b.s: Assembler messages:
/tmp/cc0Lxy1b.s:39: Error: selected processor does not support Thumb mode `mrc p15,0,r3,c13,c0,3'
make: *** [/home/ali/cm_11_motog/out/target/product/xt1032/obj/SHARED_LIBRARIES/libc_intermediates/bionic/libc_init_dynamic.o] Error 1
CHK include/linux/version.h
make[1]: Leaving directory `/home/ali/cm_11_motog/kernel/motorola/msm8226'

as I understand this is exact error "Error: selected processor does not support Thumb mode `mrc p15,0,r3,c13,c0,3'" but how can it happend?

Please help me. I want join the development (I am Android developer and also I know Linux a little) but I have not so much experience in such things.

Thanks!

ps sorry for my english