blob: 1b205c2428dda15b7366a8d76a5f2203d611501e [file] [log] [blame]
John Stultzbffd63c2020-01-29 00:23:28 +00001PIXEL3_KERNEL_DIR := device/linaro/dragonboard-kernel/pixel3_mainline/
2
Amit Pundir579f6092019-04-18 19:15:05 +05303# Inherit the full_base and device configurations
4$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
5$(call inherit-product, device/linaro/dragonboard/pixel3_mainline/device.mk)
6$(call inherit-product, device/linaro/dragonboard/device-common.mk)
7$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
8
9# Product overrides
10PRODUCT_NAME := pixel3_mainline
11PRODUCT_DEVICE := pixel3_mainline
12PRODUCT_BRAND := Android
John Stultzbffd63c2020-01-29 00:23:28 +000013
14ifndef PIXEL3_USES_GKI
15PIXEL3_USES_GKI := true
16endif
17
18ifeq ($(PIXEL3_USES_GKI), true)
19PIXEL3_MODS := $(wildcard $(PIXEL3_KERNEL_DIR)/*.ko)
20ifneq ($(PIXEL3_MODS),)
21 BOARD_VENDOR_KERNEL_MODULES += $(PIXEL3_MODS)
22 P3_ONLY_VENDOR := %/msm.ko %/dwc3.ko %/dwc3-qcom.ko %/hci_uart.ko %/btqca.ko %/incrementalfs.ko
23 P3_ONLY_VENDOR += %/ath10k_core.ko %/ath10k_pci.ko %/ath10k_snoc.ko %/ath.ko
John Stultzbffd63c2020-01-29 00:23:28 +000024
25 BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(P3_ONLY_VENDOR),$(PIXEL3_MODS))
26endif
27endif