Regen makefiles

This commit is contained in:
Alessandro Astone
2022-02-24 14:49:45 +01:00
parent ea10299451
commit d6035b9d9f
17 changed files with 318 additions and 259 deletions

View File

@@ -47,15 +47,13 @@ write_makefiles "$MY_DIR"/proprietary-files-common.txt
# Gapps that are too large for grouper
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
@@ -72,10 +70,8 @@ write_makefiles "$MY_DIR"/proprietary-files-$TARGET.txt
# Gapps that are too large for grouper
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$PRODUCTMK"
echo "ifeq (\$(TARGET_IS_GROUPER),)" >> "$ANDROIDMK"
write_makefiles "$MY_DIR"/proprietary-files-$TARGET-nongrouper.txt
echo "endif" >> "$PRODUCTMK"
echo "endif" >> "$ANDROIDMK"
printf '\n%s\n' "\$(call inherit-product, vendor/gapps/common/common-vendor.mk)" >> "$PRODUCTMK"