Stephan Herhut | f701c47 | 2017-12-11 14:42:15 +0100 | [diff] [blame] | 1 | Build from branch android-4.0.4_r2.1 |
| 2 | |
| 3 | mkdir jellybean |
| 4 | cd jellybean |
| 5 | repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1 |
| 6 | repo sync |
| 7 | source build/envsetup.sh |
| 8 | lunch full_x86-eng |
| 9 | m -j24 |
| 10 | m -j24 dalvik |
| 11 | m -j24 dalvikvm |
| 12 | |
| 13 | Collect |
| 14 | bin |
| 15 | framework/*-hostdex.jar |
| 16 | lib |
| 17 | usr |
| 18 | into tools/linux/dalvik-4.0.4 |
| 19 | |
| 20 | The old dalvikvm script is hardwired to a specific directory. Instead, copy over |
| 21 | the updated script from a 4.4.4 build. |
| 22 | |
| 23 | Note that building AOSP at that versions requires gcc 4.4 and an older version |
| 24 | of libc. I have build this on Debian weezy with the following extra steps on |
| 25 | top of the normal Android requirements: |
| 26 | |
| 27 | apt-get install gcc-4.4 |
| 28 | apt-get install g++-4.4 |
| 29 | rm /usr/bin/gcc |
| 30 | rm /usr/bin/g++ |
| 31 | ln -s /usr/bin/gcc-4.4 /usr/bin/gcc |
| 32 | ln -s /usr/bin/g++-4.4 /usr/bin/g++ |
| 33 | apt-get install g++-4.4-multilib |
| 34 | dpkg --add-architecture i386 |
| 35 | apt-get install libgl1-mesa-glx:i386 |
| 36 | apt-get install libgl1-mesa-dev:i386 |
| 37 | apt-get install libx11-6:i386 |
| 38 | apt-get install libx11-dev:i386 |
| 39 | |