Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,675 Members 46,593 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to build Android Source for Moto G?

Tip us?
 
cachehit99
Old
(Last edited by cachehit99; 22nd May 2014 at 03:19 AM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: May 2014
Question [Q] How to build Android Source for Moto G?

I want to know how to build android source code
using Motorola-provided sources at sourceforge.net/projects/motog.motorola/files

I tried following works:

Download pure Android Sources from google
Replace some files with Motorola-provided sources
Follow README file instructions


----------------------------- My terminal output messages ------------------------------------
cachehit99@cachehit99:~/android1$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
cachehit99@cachehit99:~/android1$ lunch generic-user

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================

cachehit99@cachehit99:~/android1$ make BOARD_HAVE_BLUETOOTH=true TARGET_BOARD_PLATFORM=msm8226 out/target/product/generic/system/bin/bluetoothd
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
Checking build tools versions...
motorola/security/moto_crypto/Android.mk:15: build/dlkm/AndroidKernelModule.mk: No such file or directory
make: *** No rule to make target `build/dlkm/AndroidKernelModule.mk'. Stop.
 
Darkshado
Old
#2  
Darkshado's Avatar
Senior Member
Thanks Meter 430
Posts: 958
Join Date: Apr 2011
Location: Montréal

 
DONATE TO ME
Shouldn't you have a device/motorola/falcon or something similar included upon running lunch? (At least if you're trying to build en entire ROM vs just a kernel.)

You might be missing a dependency, check out line 15 in that Android.mk file for possible clues.
My phones: Galaxy Note II SGH-T889V (with LTE enabled / ext4 SD card support on TouchWiz ROMs), Motorola XT-1045 Moto G LTE (TWRP)
Previous phones: Nexus S GT-I9020A, Galaxy Gio GT-S5660M (Arpeggiomod ROM / Discussion, stock rooted ROM), Motorola XT-1032 Moto G.
Phones for which I play "tech support" for family and friends: Galaxy Nexus GT-I9250, Galaxy Q SGH-T589R, Galaxy 551 GT-I5510M, LG C-800G Eclypse, Motorola XT-1032 Moto G
 
cachehit99
Old
(Last edited by cachehit99; 22nd May 2014 at 07:18 AM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: May 2014
Question Thanks for reply

I think I need some more files to succeed in building but there are no more files at Motorola Opensource Site
I've already suceeded in building for GS3 in the same way.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes