blob: fe7547f6523355299e31ff1d2c6912e3f9250df5 [file] [log] [blame]
Sumit Semwal434515e2024-04-11 12:50:21 +05301# Target defaults to 64- and 32-bit
2TARGET_64BIT_ONLY ?= false
3
Sumit Semwala065ab92024-04-11 19:46:37 +05304# Target can boot 16K kernels - defaults to false
5# If 16K_PAGESIZE is set, enable 64BIT_ONLY as well
6# since that's a prerequisite
7TARGET_16K_PAGESIZE ?= false
8ifeq ($(TARGET_16K_PAGESIZE), true)
9 TARGET_64BIT_ONLY := true
10endif
11
Peter Collingbournee8b96e32022-02-02 11:38:11 -080012$(call inherit-product, device/linaro/dragonboard/full.mk)
Sumit Semwal434515e2024-04-11 12:50:21 +053013ifeq ($(TARGET_64BIT_ONLY), true)
14 $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
15else
16 $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
17endif
Amit Pundirab68f0e2023-10-12 11:47:50 +053018$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
Amit Pundir6749c912023-09-12 10:52:20 +053019$(call inherit-product, device/linaro/dragonboard/shared/graphics/drm_hwcomposer/device.mk)
20$(call inherit-product, device/linaro/dragonboard/shared/graphics/mesa/device.mk)
21$(call inherit-product, device/linaro/dragonboard/shared/graphics/minigbm_msm/device.mk)
Amit Pundir4e375822019-04-18 16:46:10 +053022$(call inherit-product, device/linaro/dragonboard/db845c/device.mk)
Amit Pundir4e375822019-04-18 16:46:10 +053023
Amit Pundir94ccdd92024-02-20 17:50:31 +053024#Boot with Android boot image header v3
Amit Pundir5ed691d2023-07-04 11:21:49 +053025ifeq ($(TARGET_KERNEL_USE),5.4)
26 TARGET_USES_BOOT_HDR_V3 := true
27else
28 TARGET_USES_BOOT_HDR_V3 ?= false
29endif
Amit Pundirc6aace72022-02-17 23:26:34 +053030
Amit Pundir94ccdd92024-02-20 17:50:31 +053031#Boot from mmc-sdcard
Amit Pundirdc570232024-01-11 13:07:10 +053032TARGET_SDCARD_BOOT ?= false
33
Amit Pundir94ccdd92024-02-20 17:50:31 +053034#Load kernel modules in parallel
35ifneq ($(filter 5.15 6.1 6.6, $(TARGET_KERNEL_USE)),)
36 TARGET_USES_LMP ?= false
37else
38 TARGET_USES_LMP := false
39endif
40
Amit Pundir4e375822019-04-18 16:46:10 +053041# Product overrides
42PRODUCT_NAME := db845c
43PRODUCT_DEVICE := db845c
44PRODUCT_BRAND := Android