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

Search This thread

cachehit99

New member
May 22, 2014
2
0
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.
 
Last edited:

Darkshado

Senior Member
Apr 16, 2011
1,028
501
Montréal
Nvidia Shield Tablet
Nexus 6
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.
 

cachehit99

New member
May 22, 2014
2
0
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.
 
Last edited: