Eleven gapps
From redfin-rq1a.201205.011 * Move everything to product or system_ext * No more maps jar? * Fix sha1sum of arm64 MarkupGoogle/lib/arm64/libsketchology_native.so The file is unchanged, the checksum simply has always been wrong * Adapt to new blueprint based extract utils
This commit is contained in:
@@ -20,7 +20,7 @@ set -e
|
||||
|
||||
export INITIAL_COPYRIGHT_YEAR=2017
|
||||
|
||||
export GAPPS_COMMON=common
|
||||
export DEVICE_COMMON=common
|
||||
export VENDOR=gapps
|
||||
|
||||
# Load extract_utils and do some sanity checks
|
||||
@@ -37,7 +37,7 @@ fi
|
||||
. "$HELPER"
|
||||
|
||||
# Initialize the helper for common gapps
|
||||
setup_vendor "$GAPPS_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
|
||||
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
|
||||
|
||||
# Copyright headers
|
||||
write_headers "arm arm64 x86"
|
||||
@@ -46,36 +46,34 @@ write_headers "arm arm64 x86"
|
||||
write_makefiles "$MY_DIR"/proprietary-files-common.txt
|
||||
|
||||
# Gapps that are too large for grouper
|
||||
printf "\n" >> "$PRODUCTMK"
|
||||
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$PRODUCTMK"
|
||||
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$ANDROIDMK"
|
||||
write_makefiles "$MY_DIR"/proprietary-files-common-nongrouper.txt
|
||||
echo "endif" >> "$PRODUCTMK"
|
||||
echo "endif" >> "$ANDROIDMK"
|
||||
|
||||
sed -i 's/TARGET_DEVICE/TARGET_ARCH/g' "$ANDROIDMK"
|
||||
|
||||
# Make Google SuW override Provision
|
||||
sed -i 's/\(SetupWizardPrebuilt.apk\)/\1\nLOCAL_OVERRIDES_PACKAGES := Provision/' "$ANDROIDMK"
|
||||
sed -i 's/\(SetupWizardPrebuilt.apk",\)/\1\n\toverrides: ["Provision"],/' "$ANDROIDBP"
|
||||
|
||||
# We are done with common
|
||||
write_footers
|
||||
|
||||
for TARGET in arm arm64 x86; do
|
||||
for DEVICE in arm arm64 x86; do
|
||||
|
||||
# Reinitialize the helper for target gapps
|
||||
setup_vendor "$TARGET" "$VENDOR" "$LINEAGE_ROOT" true
|
||||
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT"
|
||||
|
||||
# Copyright headers and guards
|
||||
write_headers "$TARGET"
|
||||
write_headers "$DEVICE"
|
||||
|
||||
write_makefiles "$MY_DIR"/proprietary-files-$TARGET.txt
|
||||
write_makefiles "$MY_DIR"/proprietary-files-$DEVICE.txt
|
||||
|
||||
# Gapps that are too large for grouper
|
||||
printf "\n" >> "$PRODUCTMK"
|
||||
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$PRODUCTMK"
|
||||
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$ANDROIDMK"
|
||||
write_makefiles "$MY_DIR"/proprietary-files-$TARGET-nongrouper.txt
|
||||
write_makefiles "$MY_DIR"/proprietary-files-$DEVICE-nongrouper.txt
|
||||
echo "endif" >> "$PRODUCTMK"
|
||||
echo "endif" >> "$ANDROIDMK"
|
||||
|
||||
printf '\n%s\n' "\$(call inherit-product, vendor/gapps/common/common-vendor.mk)" >> "$PRODUCTMK"
|
||||
|
||||
|
Reference in New Issue
Block a user