Compile Xperia Z/Tablet Z CM10.2 ROM with full Linaro 4.8 including O3 strict-aliasing optimizations

It took me a while as things keep changing back and forth with CM10.2. Since CM10.2 has tons of bionic optimizations, I decided to leave cortex string optimizations for time being and added latest 4.8 toolchains for arm/linux and its own NDK. TWRP and jeroenqui’s kernel are included as usual.

Continue reading “Compile Xperia Z/Tablet Z CM10.2 ROM with full Linaro 4.8 including O3 strict-aliasing optimizations”

Compile Xperia Z ROM with Linaro including O3 strict-aliasing optimizations

First of all, many thanks to @trailblazerz11 for bringing full Linaro ROM to our fellow S4 Pro devices like Nexus 4 with resourceful build guide. This guide is based on his repository with my own fixes that needed to be done outside his repository. This works fine on CM10.1 and should also work on AOSP as well with manual fixes applied. As current AOSP being incompetent, I’ll leave that until it actually works without relying on CM10.1 patches.

UPDATE #1: CM10.1 has changed build configuration to use qcom_media-caf instead so I fixed instructions and change stuff for default CM10.1 environment.

UPDATE #2: I added Linaro cortex string handling routines optimizations in bionic for armv7 neon architecture so Snapdragon S4 Pro can be even smoother with this.

Continue reading “Compile Xperia Z ROM with Linaro including O3 strict-aliasing optimizations”