Fix makefile guarding (for real)

* previously definitions for different arches would conflict

Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
This commit is contained in:
Paul Keith
2017-04-06 14:49:53 -05:00
parent b35c6bdd57
commit 2c6d5966f7
4 changed files with 8 additions and 8 deletions

View File

@@ -32,10 +32,10 @@ fi
. "$HELPER"
# Initialize the helper for common gapps
setup_vendor "$GAPPS_COMMON" "$VENDOR" "$CM_ROOT"
setup_vendor "$GAPPS_COMMON" "$VENDOR" "$CM_ROOT" true
# Copyright headers
write_headers
write_headers "arm arm64 x86"
# Common gapps
write_makefiles "$MY_DIR"/common-proprietary-files.txt
@@ -44,10 +44,10 @@ write_makefiles "$MY_DIR"/common-proprietary-files.txt
write_footers
# Reinitialize the helper for target gapps
setup_vendor "$TARGET" "$VENDOR" "$CM_ROOT"
setup_vendor "$TARGET" "$VENDOR" "$CM_ROOT" true
# Copyright headers and guards
write_headers
write_headers "$TARGET"
write_makefiles "$MY_DIR"/proprietary-files-$TARGET.txt
write_makefiles "$MY_DIR"/proprietary-files.txt
@@ -57,4 +57,4 @@ printf '\n%s\n' "\$(call inherit-product, vendor/gapps/common/common-vendor.mk)"
# We are done with target
write_footers
for f in `find "$MY_DIR" -type f -name Android.mk`; do sed -i s/ifeq/ifneq/g $f; done
for f in `find "$MY_DIR" -type f -name Android.mk`; do sed -i s/TARGET_DEVICE/TARGET_ARCH/g $f; done