partner_gms: Simplify if/else if logic

Change-Id: Ib5e3dc3741c6784cb47bd0f66150df8a499aaf92
This commit is contained in:
Ethan Chen 2020-12-31 11:51:28 -08:00 committed by Bruno Martins
parent 151e17118c
commit 64b5b1cacd

View file

@ -1,23 +1,15 @@
ifeq ($(WITH_GMS),true)
ifeq ($(PRODUCT_IS_ATV),true)
$(call inherit-product-if-exists, vendor/partner_gms-tv/products/gms.mk)
else
ifeq ($(WITH_GMS_FI),true)
else ifeq ($(WITH_GMS_FI),true)
$(call inherit-product-if-exists, vendor/partner_gms/products/fi.mk)
else
ifeq ($(WITH_GMS_GO),true)
else ifeq ($(WITH_GMS_GO),true)
$(call inherit-product-if-exists, vendor/partner_gms/products/gms_go.mk)
else
ifeq ($(WITH_GMS_GO_2GB),true)
else ifeq ($(WITH_GMS_GO_2GB),true)
$(call inherit-product-if-exists, vendor/partner_gms/products/gms_go_2gb.mk)
else
ifeq ($(WITH_GMS_MINIMAL),true)
else ifeq ($(WITH_GMS_MINIMAL),true)
$(call inherit-product-if-exists, vendor/partner_gms/products/gms_minimal.mk)
else
$(call inherit-product-if-exists, vendor/partner_gms/products/gms.mk)
endif
endif
endif
endif
endif
endif