b375e71d30
This patch removes support for prelinking from the build system. By now, the prelinker has outlived its usefulness for several reasons. Firstly, the speedup that it afforded in the early days of Android is now nullified by the speed of hardware, as well as by the presence of Zygote. Secondly, the space savings that come with prelinking (measued at 17MB on a recent honeycomb stingray build) are no longer important either. Thirdly, prelinking reduces the effectiveness of Address-Space-Layout Randomization. Finally, since it is not part of the gcc suite, the prelinker needs to be maintained separately. The patch deletes apriori, soslim, lsd, isprelinked, and iself from the source tree. It also removes the prelink map. LOCAL_PRELINK_MODULE becomes a no-op. Individual Android.mk will get cleaned separately. Support for prelinking will have to be removed from the recovery code and from the dynamic loader as well. Change-Id: I5839c9c25f7772d5183eedfe20ab924f2a7cd411 |
||
---|---|---|
.. | ||
BoardConfig.mk | ||
README.txt | ||
device.mk | ||
disk_layout.conf | ||
init.rc |
README.txt
The generic_x86 board target provides basic services on very basic hardware (really for an emulation). To build with generic_x86, you will need an appropriate kernel for your emulation (or device). A1. Create a new top level directory and pull the AOSP repository mkdir $HOME/AOSP cd $HOME/AOSP repo init -u git://android.git.kernel.org/platform/manifest.git repo sync A2. Copy in the kernel cd $HOME/AOSP cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel A3. Build cd $HOME/AOSP source build/envsetup.sh lunch generic_x86-eng make -j8 The build will generate some image files whose format may or may not be correct for your device. You can build an installer image disk for the VirtualBox emulator using the command: A4. Build a VirtualBox installer image cd $HOME/AOSP source build/envsetup.sh lunch generic_x86-eng make -j8 installer_vdi