diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-05-07 21:45:36 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-05-07 21:45:36 +0000 |
commit | ab16b728a9cde89eb68942d03225d2d8f264727b (patch) | |
tree | 6e0a392edaa7f1acacb1fa7fb1495de9b1027f8d | |
parent | 7e8994acce7eeaa6256dc80c022a9ca256cc20fa (diff) | |
parent | 40113d035473d35c56cf62e9801ddaed8d7c16ac (diff) | |
download | device_common-ab16b728a9cde89eb68942d03225d2d8f264727b.tar.gz device_common-ab16b728a9cde89eb68942d03225d2d8f264727b.tar.bz2 device_common-ab16b728a9cde89eb68942d03225d2d8f264727b.zip |
Snap for 5450365 from 40113d035473d35c56cf62e9801ddaed8d7c16ac to pi-platform-releasepie-platform-release
Change-Id: Iea2c27c6d31696fe8a281a2c0c9d0d4fc3e960c6
-rwxr-xr-x | generate-packages.sh | 66 |
1 files changed, 27 insertions, 39 deletions
diff --git a/generate-packages.sh b/generate-packages.sh index 2f3e9c3..288880f 100755 --- a/generate-packages.sh +++ b/generate-packages.sh @@ -42,7 +42,7 @@ do FILEDIR_ROOT=tmp/vendor/$MANUFACTURER/$ROOTDEVICE case ${ROOTDEVICE} in - dragon|marlin|sailfish|taimen|walleye|crosshatch|blueline) + dragon|marlin|sailfish|taimen|walleye|crosshatch|blueline|bonito|sargo) FILEDIR_ROOT=tmp/vendor/${MANUFACTURER}_devices/$ROOTDEVICE ;; hikey960) FILEDIR=tmp/vendor/linaro/$DEVICE/$COMPANY/proprietary @@ -55,14 +55,6 @@ do TO_EXTRACT=`sed -n -e '/'" $COMPANY"'/,/;;/ p' $EXTRACT_LIST_FILENAME | tail -n+3 | head -n-2 | sed -e 's/\\\//g'` - # Check if TO_EXTRACT list has any APK files - if [[ ${TO_EXTRACT} == *.apk* ]] - then - APK_MAKEFILE=${FILEDIR}/Android.mk - echo "LOCAL_PATH := \$(call my-dir)" > ${APK_MAKEFILE} - echo "" >> ${APK_MAKEFILE} - fi - echo \ \ Extracting files from OTA package for ONE_FILE in $TO_EXTRACT do @@ -74,6 +66,9 @@ do if [[ $ONE_FILE == */lib64/* ]] then FILEDIR_NEW=$FILEDIR/lib64 + elif [[ $ONE_FILE == */arm64/* ]] + then + FILEDIR_NEW=$FILEDIR/arm64 elif [[ $ONE_FILE == */arm/nb/* ]] then FILEDIR_NEW=$FILEDIR/armnb @@ -81,36 +76,6 @@ do FILEDIR_NEW=$FILEDIR fi - # apk makefile - if [[ ${ONE_FILE} == *.apk ]] - then - TMP_ONE_FILE_NAME=$(basename ${ONE_FILE} | sed 's/.apk//g') - - echo "include \$(CLEAR_VARS)" >> ${APK_MAKEFILE} - - echo "LOCAL_MODULE_SUFFIX := \$(COMMON_ANDROID_PACKAGE_SUFFIX)" >> ${APK_MAKEFILE} - echo "LOCAL_MODULE := ${TMP_ONE_FILE_NAME}" >> ${APK_MAKEFILE} - echo "LOCAL_MODULE_TAGS := optional" >> ${APK_MAKEFILE} - echo "LOCAL_BUILT_MODULE_STEM := package.apk" >> ${APK_MAKEFILE} - echo "LOCAL_MODULE_OWNER := ${COMPANY}" >> ${APK_MAKEFILE} - echo "LOCAL_MODULE_CLASS := APPS" >> ${APK_MAKEFILE} - echo "LOCAL_SRC_FILES := \$(LOCAL_MODULE).apk" >> ${APK_MAKEFILE} - echo "LOCAL_CERTIFICATE := PRESIGNED" >> ${APK_MAKEFILE} - - if [[ ${ONE_FILE} == *priv-app/* ]] - then - echo "LOCAL_PRIVILEGED_MODULE := true" >> ${APK_MAKEFILE} - fi - - if [[ ${TMP_ONE_FILE_NAME} == "LeanbackLauncher" ]] - then - echo "LOCAL_OVERRIDES_PACKAGES := Launcher2" >> ${APK_MAKEFILE} - fi - - echo "include \$(BUILD_PREBUILT)" >> ${APK_MAKEFILE} - echo "" >> ${APK_MAKEFILE} - fi - echo \ \ \ \ Extracting $ONE_FILE unzip -j -o $ZIP $ONE_FILE -d $FILEDIR_NEW> /dev/null || echo \ \ \ \ Error extracting $ONE_FILE if test ${ONE_FILE,,} = system/vendor/bin/gpsd -o ${ONE_FILE,,} = system/vendor/bin/pvrsrvinit -o ${ONE_FILE,,} = system/bin/fRom @@ -176,6 +141,29 @@ do # Move device-vendor-blueline.mk under crosshatch directory so that it can # be inherited by device/google/crosshatch/aosp_blueline.mk mv ${FILEDIR_ROOT}/proprietary/device-vendor.mk ${FILEDIR_ROOT_SHARE} + elif [[ ${ROOTDEVICE} == sargo ]] + then + FILEDIR_ROOT_SHARE=tmp/vendor/${MANUFACTURER}_devices/bonito/proprietary + mkdir -p ${FILEDIR_ROOT_SHARE} + + # sargo shares BoardConfigVendor.mk with its bro-in-law' bonito + mv ${FILEDIR_ROOT}/proprietary/BoardConfigVendor.mk ${FILEDIR_ROOT_SHARE} + # 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} + 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 fi echo \ \ Generating self-extracting script |