Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | partition="$1" |
| 4 | |
| 5 | if [ "$#" -ne 1 ]; then |
| 6 | echo "Usage: $0 <vendor|odm>" 1>&2 |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | if [ "$partition" != "vendor" ] && [ "$partition" != "odm" ]; then |
| 11 | echo "Unknown partition name: $partition" 1>&2 |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | echo "# begin build properties" |
| 16 | echo "# autogenerated by device_buildinfo.sh" |
| 17 | |
| 18 | echo "ro.${partition}.build.id=$BUILD_ID" |
| 19 | echo "ro.${partition}.build.version.incremental=$BUILD_NUMBER" |
| 20 | echo "ro.${partition}.build.version.sdk=$PLATFORM_SDK_VERSION" |
| 21 | echo "ro.${partition}.build.version.release=$PLATFORM_VERSION" |
| 22 | echo "ro.${partition}.build.type=$TARGET_BUILD_TYPE" |
| 23 | echo "ro.${partition}.build.tags=$BUILD_VERSION_TAGS" |
| 24 | |
| 25 | echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME" |
| 26 | echo "ro.board.platform=$TARGET_BOARD_PLATFORM" |
| 27 | |
| 28 | echo "ro.product.${partition}.manufacturer=$PRODUCT_MANUFACTURER" |
| 29 | echo "ro.product.${partition}.model=$PRODUCT_MODEL" |
| 30 | echo "ro.product.${partition}.brand=$PRODUCT_BRAND" |
| 31 | echo "ro.product.${partition}.name=$PRODUCT_NAME" |
| 32 | echo "ro.product.${partition}.device=$TARGET_DEVICE" |
| 33 | |
| 34 | echo "# end build properties" |