Sumit Semwal | 434515e | 2024-04-11 12:50:21 +0530 | [diff] [blame] | 1 | # Target defaults to 64- and 32-bit |
| 2 | TARGET_64BIT_ONLY ?= false |
| 3 | |
Sumit Semwal | a065ab9 | 2024-04-11 19:46:37 +0530 | [diff] [blame] | 4 | # 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 |
| 7 | TARGET_16K_PAGESIZE ?= false |
| 8 | ifeq ($(TARGET_16K_PAGESIZE), true) |
| 9 | TARGET_64BIT_ONLY := true |
| 10 | endif |
| 11 | |
Peter Collingbourne | e8b96e3 | 2022-02-02 11:38:11 -0800 | [diff] [blame] | 12 | $(call inherit-product, device/linaro/dragonboard/full.mk) |
Sumit Semwal | 434515e | 2024-04-11 12:50:21 +0530 | [diff] [blame] | 13 | ifeq ($(TARGET_64BIT_ONLY), true) |
| 14 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) |
| 15 | else |
| 16 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 17 | endif |
Amit Pundir | ab68f0e | 2023-10-12 11:47:50 +0530 | [diff] [blame] | 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |
Amit Pundir | 6749c91 | 2023-09-12 10:52:20 +0530 | [diff] [blame] | 19 | $(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 Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 22 | $(call inherit-product, device/linaro/dragonboard/db845c/device.mk) |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 23 | |
Amit Pundir | 94ccdd9 | 2024-02-20 17:50:31 +0530 | [diff] [blame] | 24 | #Boot with Android boot image header v3 |
Amit Pundir | 5ed691d | 2023-07-04 11:21:49 +0530 | [diff] [blame] | 25 | ifeq ($(TARGET_KERNEL_USE),5.4) |
| 26 | TARGET_USES_BOOT_HDR_V3 := true |
| 27 | else |
| 28 | TARGET_USES_BOOT_HDR_V3 ?= false |
| 29 | endif |
Amit Pundir | c6aace7 | 2022-02-17 23:26:34 +0530 | [diff] [blame] | 30 | |
Amit Pundir | 94ccdd9 | 2024-02-20 17:50:31 +0530 | [diff] [blame] | 31 | #Boot from mmc-sdcard |
Amit Pundir | dc57023 | 2024-01-11 13:07:10 +0530 | [diff] [blame] | 32 | TARGET_SDCARD_BOOT ?= false |
| 33 | |
Amit Pundir | 94ccdd9 | 2024-02-20 17:50:31 +0530 | [diff] [blame] | 34 | #Load kernel modules in parallel |
| 35 | ifneq ($(filter 5.15 6.1 6.6, $(TARGET_KERNEL_USE)),) |
| 36 | TARGET_USES_LMP ?= false |
| 37 | else |
| 38 | TARGET_USES_LMP := false |
| 39 | endif |
| 40 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 41 | # Product overrides |
| 42 | PRODUCT_NAME := db845c |
| 43 | PRODUCT_DEVICE := db845c |
| 44 | PRODUCT_BRAND := Android |