#@TYPE: Machine
#@NAME: APQ8098
#@DESCRIPTION: Machine configuration for QTI MTP with APQ8098

require conf/machine/include/apq8098.inc

KERNEL_IMAGETYPE = "Image.gz-dtb"
KERNEL_DTS_NAME = "msmcobalt"
KERNEL_BASE = "0x80000000"
KERNEL_TAGS_OFFSET = "0x81900000"

KERNEL_CONFIG = "${@['msmcortex_mediabox-perf_defconfig', 'msmcortex_mediabox_defconfig'][d.getVar('VARIANT', True) == ('' or 'debug')]}"

KERNEL_CMD_PARAMS = "noinitrd rw rootwait console=ttyMSM0,115200,n8 no_console_suspend=1 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=qcom androidboot.console=ttyMSM0 service_locator.enable=1 sched_enable_hmp=1 sched_enable_power_aware=1 ehci-hcd.park=3 msm_rtb.filter=0x37 lpm_levels.sleep_disabled=1 root=/dev/sde20 rootfstype=ext4 earlyprintk"
KERNEL_CMD_PARAMS:remove = "${@bb.utils.contains_any('VARIANT', 'perf user', 'console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0', '', d)}"

#enable selinux
DISTRO_FEATURES:append=" selinux"
DEFAULT_ENFORCING = "permissive"

PREFERRED_PROVIDER_virtual/libgles1  = "adreno"
PREFERRED_PROVIDER_virtual/libgles2  = "adreno"
PREFERRED_PROVIDER_virtual/egl = "adreno"
