diff options
author | Bill Yi <byi@google.com> | 2019-06-05 15:09:34 -0700 |
---|---|---|
committer | Bill Yi <byi@google.com> | 2019-06-05 15:09:34 -0700 |
commit | 86679dc4aa80cedcbda853103637d92240cd9310 (patch) | |
tree | 306185886e403e74dd0c58b510109152ce820966 | |
parent | 9d2a0d0c3aab8b698669bad9810bc52ac7f76dfb (diff) | |
download | device_common-86679dc4aa80cedcbda853103637d92240cd9310.tar.gz device_common-86679dc4aa80cedcbda853103637d92240cd9310.tar.bz2 device_common-86679dc4aa80cedcbda853103637d92240cd9310.zip |
Add coral/flame support in common scriptsandroid-mainline-10.0.0_r4android10-qpr1-mainline-releaseandroid10-mainline-media-release
Done a little bit refactoring so we don't need to explicitly add new devices
any more.
TEST:generated blobs and build with the qt aosp source, flashed devices
BUG:130808032
Change-Id: Ia4f6f807dd3ff15dd78722331890e991dfc6430c
-rwxr-xr-x | generate-packages.sh | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/generate-packages.sh b/generate-packages.sh index d3b1ff4..fb72dd4 100755 --- a/generate-packages.sh +++ b/generate-packages.sh @@ -42,12 +42,11 @@ do FILEDIR_ROOT=tmp/vendor/$MANUFACTURER/$ROOTDEVICE case ${ROOTDEVICE} in - dragon|marlin|sailfish|taimen|walleye|crosshatch|blueline|bonito|sargo) - FILEDIR_ROOT=tmp/vendor/${MANUFACTURER}_devices/$ROOTDEVICE ;; hikey960) FILEDIR=tmp/vendor/linaro/$DEVICE/$COMPANY/proprietary MAKEFILEDIR=tmp/vendor/linaro/$DEVICE/$COMPANY ;; - *) ;; + *) + FILEDIR_ROOT=tmp/vendor/${MANUFACTURER}_devices/$ROOTDEVICE ;; esac mkdir -p ${FILEDIR} @@ -142,19 +141,24 @@ do # Move device-vendor-sargo.mk under bonito directory so that it can # be inherited by device/google/bonito/aosp_sargo.mk mv ${FILEDIR_ROOT}/proprietary/device-vendor.mk ${FILEDIR_ROOT_SHARE} + elif [[ ${ROOTDEVICE} == flame ]] + then + FILEDIR_ROOT_SHARE=tmp/vendor/${MANUFACTURER}_devices/coral/proprietary + mkdir -p ${FILEDIR_ROOT_SHARE} + + # flame shares BoardConfigVendor.mk with its sis-in-law' coral + mv ${FILEDIR_ROOT}/proprietary/BoardConfigVendor.mk ${FILEDIR_ROOT_SHARE} + # Move device-vendor-flame.mk under coral directory so that it can + # be inherited by device/google/coral/aosp_flame.mk + mv ${FILEDIR_ROOT}/proprietary/device-vendor.mk ${FILEDIR_ROOT_SHARE} fi if [[ ${COMPANY} == qcom ]] then - case ${ROOTDEVICE} in - marlin|sailfish|taimen|walleye|crosshatch|blueline|bonito|sargo) - if [[ -e "${MAKEFILEDIR}/Android.mk" ]] - then - mv ${MAKEFILEDIR}/Android.mk ${FILEDIR}/ - fi - ;; - *) ;; - esac + if [[ -e "${MAKEFILEDIR}/Android.mk" ]] + then + mv ${MAKEFILEDIR}/Android.mk ${FILEDIR}/ + fi fi echo \ \ Generating self-extracting script |