Ported from https://github.com/LegacyXperia/android_device_semc_mogami-common/blob/cm-10.2/BoardConfigCommon.mk#L35, need adaption.