-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.mk
39 lines (33 loc) · 1.19 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Inherit from common AOSP config
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
# Inherit from our custom product configuration
$(call inherit-product, vendor/$(CUSTOM_VENDOR)/config/common.mk)
PRODUCT_PACKAGES += \
charger_res_images \
charger
# Define time zone data path
ifneq ($(wildcard bionic/libc/zoneinfo),)
TZDATAPATH := bionic/libc/zoneinfo
else ifneq ($(wildcard system/timezone),)
TZDATAPATH := system/timezone/output_data/iana
endif
# Time Zone data for Recovery
ifdef TZDATAPATH
PRODUCT_COPY_FILES += \
$(TZDATAPATH)/tzdata:recovery/root/system/usr/share/zoneinfo/tzdata
endif
# Set product device
ifeq ($(PRODUCT_RELEASE_NAME),us996d)
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.device=us996
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.device=$(PRODUCT_RELEASE_NAME)
endif
# Device identifier. This must come after all inclusions
PRODUCT_BRAND := $(BOARD_VENDOR)
PRODUCT_DEVICE := $(PRODUCT_RELEASE_NAME)
PRODUCT_NAME := $(CUSTOM_VENDOR)_$(PRODUCT_DEVICE)
PRODUCT_MODEL := LG-$(shell echo $(PRODUCT_DEVICE) | tr a-z A-Z)
PRODUCT_MANUFACTURER := $(shell echo $(PRODUCT_BRAND) | tr a-z A-Z)