| 1 | = Buildung for the emulator = |
| 2 | |
| 3 | == General == |
| 4 | The lunch combo is '''full_x86-eng''' |
| 5 | |
| 6 | basic make command |
| 7 | {{{ |
| 8 | cd <android>/system |
| 9 | export PATH=$(java-config -O)/bin:$PATH |
| 10 | . build/envsetup.sh |
| 11 | lunch full_x86-eng |
| 12 | nice -n 19 make -j6 |
| 13 | }}} |
| 14 | |
| 15 | == Running in emulator == |
| 16 | {{{ |
| 17 | emulator64-x86 -partition-size 300 |
| 18 | }}} |
| 19 | |
| 20 | == Complete rebuild of system == |
| 21 | To completely rebuild the system but keep the common stuff do: |
| 22 | {{{ |
| 23 | make installclean && make -j6 |
| 24 | }}} |
| 25 | |
| 26 | == Rebuilding framework == |
| 27 | To rebuild only a certain module and update the system image run |
| 28 | {{{ |
| 29 | mmm framework/base |
| 30 | make snod |
| 31 | }}} |
| 32 | or |
| 33 | {{{ |
| 34 | make framework snod |
| 35 | }}} |
| 36 | but the resulting system image will not boot but boot-loop with messages like: |
| 37 | {{{ |
| 38 | I/dalvikvm( 1011): DexOpt: mismatch dep signature for '/system/framework/framework.odex' |
| 39 | E/dalvikvm( 1011): /system/framework/telephony-common.jar odex has stale dependencies |
| 40 | }}} |
| 41 | To avoid this one has to turn of the DEXPREOPT variable (see below). |
| 42 | === Turn of DEXPREOPT === |
| 43 | There are 2 ways. |
| 44 | Either edit build/target/board/generic_x86/BoardConfig.mk and change |
| 45 | {{{ |
| 46 | WITH_DEXPREOPT := true |
| 47 | }}} |
| 48 | to |
| 49 | {{{ |
| 50 | WITH_DEXPREOPT := false |
| 51 | }}} |
| 52 | |
| 53 | or run the make commands with the WITH_DEXPREOPT=false addition. like |
| 54 | {{{ |
| 55 | make framework showcommands WITH_DEXPREOPT=false |
| 56 | }}} |
| 57 | |