John Stultz | bffd63c | 2020-01-29 00:23:28 +0000 | [diff] [blame] | 1 | PIXEL3_KERNEL_DIR := device/linaro/dragonboard-kernel/pixel3_mainline/ |
| 2 | |
Amit Pundir | 579f609 | 2019-04-18 19:15:05 +0530 | [diff] [blame] | 3 | # 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 |
| 10 | PRODUCT_NAME := pixel3_mainline |
| 11 | PRODUCT_DEVICE := pixel3_mainline |
| 12 | PRODUCT_BRAND := Android |
John Stultz | bffd63c | 2020-01-29 00:23:28 +0000 | [diff] [blame] | 13 | |
| 14 | ifndef PIXEL3_USES_GKI |
| 15 | PIXEL3_USES_GKI := true |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(PIXEL3_USES_GKI), true) |
| 19 | PIXEL3_MODS := $(wildcard $(PIXEL3_KERNEL_DIR)/*.ko) |
| 20 | ifneq ($(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 Stultz | bffd63c | 2020-01-29 00:23:28 +0000 | [diff] [blame] | 24 | |
| 25 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(P3_ONLY_VENDOR),$(PIXEL3_MODS)) |
| 26 | endif |
| 27 | endif |