CM9 for Milestone - build from source

To prepare and build:
mkdir cm4mm
cd cm4mm
repo init -u git://github.com/nadlabak/android.git -b ics
repo sync
vendor/cm/get-prebuilts
. build/envsetup.sh && brunch umts_sholes

Note (17.05.2012):
You can also use repo init -u git://github.com/nadlabak/android.git -b ics-nothemes
to build CM9 without the theme engine as I suspect it to cause performance issues.

More detailed instruction can be found e.g here: http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Sholes (but take account of the differences in the instructions published here.)

The update-cm-9...-Milestone-signed.zip will be built in out/target/product/umts_sholes, ready to be installed via OpenRecovery/updates.

Comments

Test, just a test

This really wowed..

Parabéns por todo trabalho!

Andei testando a CM9 por um período de tempo e apesar dos bugs e erros a serem corrigidos,
está muito boa a ROM! Parabéns ae pelo trabalho e esforço para ajudar. Com certeza vale a pena esperar pela CM9.
Atualmente usando a CM7 no meu Motorola Milestone e te digo que está muito estável e rápida!

How to build the update-...-signed.zip?

Hi,

After jumping a couple of hoops on ArchLinux (namely, putting python2 in the $PATH as the default python, and installing multilibe flavour so I can build on x86_64), I eventually managed to make everything build without error!

However, it built and image called cm-9-20120711-UNOFFICIAL-umts_sholes.zip where I was expecting something like update-cm-9-20120711-UNOFFICIAL-umts_sholes-signed.zip.

Is it normal? Perhaps this is the new name. Otherwise, what should I do to actually get a signed update image from there?

problem with receiving calls

on the last version I can't receive calls, calls are dropped but are present in the "calls history", is there any help ??

CyanogenMod 9.0.0 RC0 - [20120709] ***-nothemes build***

hi,

just compiled the build without the theme engine (-nothemes), it's very fast and use much less RAM.

I opened a thread on XDA with the build, here's the link: http://forum.xda-developers.com/showthread.php?t=1761393

thanks man

thanks man

ONDE ESTA A CM9 ???????????????????????????????

ONDE ESTA A CM9 ???????????????????????????????

T

tenha paciência, tem trabalho sendo feito na cm9 sim, o recurso de aceleração por hardware já está pronto e logo será incorporado na CM9

e todo esse trabalho é feito DE GRAÇA, por apenas UMA PESSOA, se está com tanta pressa, aprenda a programar e ajude, ou doe algum dinheiro pra incentivar o trabalho do programador ali em cima no botão donate, e pare de exigir e ser mal educado, se fosse pela motorola você ainda estaria preso na versão 2.2 e nunca sairia dela

could you write in English, then someone will answer

could you write in English, then someone will answer

cade o progresso da cm9 ?????????

nóssa ja éra mesmo ne pessoal? cade o progresso da cm9 ?????????????????

CM9 para o Milestone 1

nóssa cade vocês ? vocês pararam com o trabalho na CM9 para o Milestone 1 ? todo dia eu entro no site para ver o progresso mais parece que vocês abandonaram !

Built successfully month ago but failed today

error get below
in function init_extensions4:out/target/product/umts_sholes/obj/STATIC_LIBRARIES/libext4_intermediates/initext4.c:25: error: undefined reference to 'libipt_addrtype_init'

libipt_addrtype_init library

Does anybody know how to include library of libipt in Ubuntu

Build Successfully

Build Successfully on ubuntu 10.04 with latest open jdk ...

Thanks for your greate work !

Build failure (and fix)

Current ics branch fails to build here:

target Java: Superuser (out/target/common/obj/APPS/Superuser_intermediates/classes)
packages/apps/Stk/src/com/android/stk/StkAppService.java:335: unqualified enumeration constant name required
case CLOSE_CHANNEL:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:336: unqualified enumeration constant name required
case RECEIVE_DATA:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:337: unqualified enumeration constant name required
case SEND_DATA:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:453: unqualified enumeration constant name required
case OPEN_CHANNEL:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:456: unqualified enumeration constant name required
case CLOSE_CHANNEL:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:457: unqualified enumeration constant name required
case RECEIVE_DATA:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:458: unqualified enumeration constant name required
case SEND_DATA:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:463: unqualified enumeration constant name required
case CLOSE_CHANNEL:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:466: unqualified enumeration constant name required
case RECEIVE_DATA:
^
packages/apps/Stk/src/com/android/stk/StkAppService.java:469: unqualified enumeration constant name required
case SEND_DATA:
^
target Java: android.policy (out/target/common/obj/JAVA_LIBRARIES/android.policy_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
10 errors
make: *** [out/target/common/obj/APPS/Stk_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....

The problem is that Stk uses some (relatively new) enum values from frameworks/base/telephony/java/com/android/internal/telephony/cat/AppInterface.java -- but that file isn't up to date and doesn't define those values yet.

The fix is to merge commit 81fa7f305b0b3427d33143cb800b7d6ca730ba64 from upstream in frameworks/base/telephony.

mobile network is not working

after installing the rom i found out that the mobile network is not working...had i missed any setting while building ? plz help thankx.

I try but....

Why ??? :

target Executable: netserver (out/target/product/umts_sholes/obj/EXECUTABLES/netserver_intermediates/LINKED/netserver)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:762: error: undefined reference to 'volume_main'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:805: error: undefined reference to 'process_volumes'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:870: error: undefined reference to 'has_datadata'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:895: error: undefined reference to 'handle_failure'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:681: error: undefined reference to 'has_datadata'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:718: error: undefined reference to 'confirm_selection'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:728: error: undefined reference to 'show_install_update_menu'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:732: error: undefined reference to 'show_nandroid_menu'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:736: error: undefined reference to 'show_partition_menu'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:740: error: undefined reference to 'show_advanced_menu'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:793: error: undefined reference to 'signature_check_enabled'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:793: error: undefined reference to 'script_assert_enabled'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/install.o: in function install_package:bootable/recovery/install.c:411: error: undefined reference to 'signature_check_enabled'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/roots.o: in function format_volume:bootable/recovery/roots.c:396: error: undefined reference to 'format_unknown_device'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/nandroid.o: in function nandroid_restore_partition_extended:bootable/recovery/nandroid.c:469: error: undefined reference to 'format_device'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/nandroid.o: in function nandroid_restore:bootable/recovery/nandroid.c:582: error: undefined reference to 'has_datadata'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/nandroid.o: in function nandroid_backup:bootable/recovery/nandroid.c:284: error: undefined reference to 'has_datadata'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/edifyscripting.o: in function edify_main:bootable/recovery/edifyscripting.c:362: error: undefined reference to 'process_volumes'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/edifyscripting.o: in function InstallZipFn:bootable/recovery/edifyscripting.c:233: error: undefined reference to 'install_zip'
collect2: ld returned 1 exit status
make: *** [out/target/product/umts_sholes/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....

not working for me

Hi Pavel
why I don't have proprietary files in vendor/motorola/umts_sholes after sync?

. build/envsetup.sh && lunch cm_umts_sholes-eng && mka bacon
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/umts_sholes/cm.mk]]: "device/*/umts_sholes/cm.mk" does not exist. Stop.
Device umts_sholes not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for umts_sholes not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/umts_sholes/cm.mk]]: "device/*/umts_sholes/cm.mk" does not exist. Stop.

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