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

require conf/machine/include/apq8009.inc

PREFERRED_PROVIDER_virtual/bootloader = "lk"

KERNEL_IMAGETYPE = "zImage-dtb"
KERNEL_DTS_NAME = "msm8909"
KERNEL_BASE = "0x81C00000"
KERNEL_TAGS_OFFSET = "0x81900000"

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

KERNEL_CMD_PARAMS = "noinitrd ro console=ttyHSL0,115200,n8 androidboot.hardware=qcom ehci-hcd.park=3 msm_rtb.filter=0x37 lpm_levels.sleep_disabled=1 rootwait androidboot.bootdevice=7824900.sdhci mem=512M"
KERNEL_CMD_PARAMS:remove = "${@bb.utils.contains_any('VARIANT', 'perf user', 'console=ttyHSL0,115200,n8', '', d)}"

# readonly-rootfs
DISTRO_FEATURES += " ro-rootfs"

#enable selinux
DISTRO_FEATURES += " selinux"
DEFAULT_ENFORCING = "enforcing"

# Use systemd init manager.
DISTRO_FEATURES:remove = "sysvinit"
DISTRO_FEATURES += " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_dev_manager = "udev"
VIRTUAL-RUNTIME_init_manager = "systemd"

# Change Image features for systemd.
IMAGE_DEV_MANAGER = "udev"
IMAGE_INIT_MANAGER = "systemd"
IMAGE_INITSCRIPTS = ""

PREFERRED_VERSION_gstreamer1.0="1.12.2"
PREFERRED_VERSION_gstreamer1.0-plugins-base="1.12.2"
PREFERRED_VERSION_gstreamer1.0-plugins-good="1.12.2"
PREFERRED_VERSION_gstreamer1.0-plugins-bad="1.12.2"
PREFERRED_VERSION_gstreamer1.0-libav="1.12.2"
PREFERRED_VERSION_gstreamer1.0-omx="1.12.2"
PREFERRED_VERSION_gstreamer1.0-rtsp-server="1.12.2"
