summaryrefslogtreecommitdiffstats
path: root/tools/buildinfo.sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-11-06 15:12:00 -0800
committerDavid 'Digit' Turner <digit@google.com>2009-11-06 15:12:00 -0800
commit2edfb71d01bff3632598e66eae7a32d656af8447 (patch)
treee63836612b41a01e8b949eae0fa8a49aa9a0ecb3 /tools/buildinfo.sh
parent357f5bc804fc80f06776e1da141e4b322d7e3248 (diff)
downloadreplicant_build-2edfb71d01bff3632598e66eae7a32d656af8447.zip
replicant_build-2edfb71d01bff3632598e66eae7a32d656af8447.tar.gz
replicant_build-2edfb71d01bff3632598e66eae7a32d656af8447.tar.bz2
Support secondary CPU ABI in build.prop
BoardConfig.mk typically defines TARGET_CPU_ABI to the name of the native machine code CPU ABI supported by the target device. For example, existing devices today use the value 'armeabi' corresponding to an ARMv5TE instruction set with soft-float implementation. This patch allows this file to also define TARGET_CPU_ABI2 to name a secondary (minor) CPU ABI also supported by the device. This is useful when the main ABI is ARMv7-A (identified as 'armeabi-v7a') which also supports ARMv5TE. Such devices should have TARGET_CPU_ABI defined to 'armeabi-v7a' and TARGET_CPU_ABI2 defined to 'armeabi'. TARGET_CPU_ABI2 will be translated into the ro.product.cpu.abi2 property in build.prop. This value will be used by the PackageManager to handle "fat-binaries" generated with the NDK.
Diffstat (limited to 'tools/buildinfo.sh')
-rwxr-xr-xtools/buildinfo.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index af5aa47..6c85149 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -21,6 +21,9 @@ echo "ro.product.name=$PRODUCT_NAME"
echo "ro.product.device=$TARGET_DEVICE"
echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME"
echo "ro.product.cpu.abi=$TARGET_CPU_ABI"
+if [ -n "$TARGET_CPU_ABI2" ] ; then
+ echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2"
+fi
echo "ro.product.manufacturer=$PRODUCT_MANUFACTURER"
echo "ro.product.locale.language=$PRODUCT_DEFAULT_LANGUAGE"
echo "ro.product.locale.region=$PRODUCT_DEFAULT_REGION"