281 lines
12 KiB
C++
281 lines
12 KiB
C++
# Digi's i.MX platforms common settings
|
|
include conf/machine/include/digi-defaults.inc
|
|
|
|
# @TODO: Use NXP's base file instead of copying
|
|
# IMX_DEFAULT_BSP = "nxp"
|
|
# include conf/machine/include/imx-base.inc
|
|
|
|
# Machines or distros can define which BSP it should use by default. We are
|
|
# intending to default for mainline BSP by default and specific machines or
|
|
# DISTROs might change it if need.
|
|
#
|
|
# Two values are considered valid: mainline, nxp
|
|
IMX_DEFAULT_BSP ?= "nxp"
|
|
MACHINEOVERRIDES =. "use-${IMX_DEFAULT_BSP}-bsp:"
|
|
|
|
# Allow setting the UART used during the boot by ATF.
|
|
# FIXME: We should return INVALID here but currently only i.MX8M has support to override the UART
|
|
# base address in source code.
|
|
SOC_ATF_BOOT_UART_BASE = ""
|
|
SOC_ATF_BOOT_UART_BASE:ccimx8m = "0x30860000"
|
|
ATF_BOOT_UART_BASE ?= "${SOC_ATF_BOOT_UART_BASE}"
|
|
|
|
XSERVER_DRIVER = "xf86-video-fbdev"
|
|
XSERVER_DRIVER:imxgpu2d = "xf86-video-imx-vivante"
|
|
XSERVER_DRIVER:append:mx8-generic-bsp = " xf86-video-modesetting"
|
|
XSERVER = "xserver-xorg \
|
|
xf86-input-evdev \
|
|
${XSERVER_DRIVER}"
|
|
|
|
# Ship kernel modules
|
|
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
|
|
|
|
# Tunes for hard/soft float-point selection. Note that we allow building for
|
|
# thumb support giving distros the chance to enable thumb by setting
|
|
# ARM_INSTRUCTION_SET = "thumb"
|
|
#
|
|
# handled by software
|
|
# DEFAULTTUNE:mx6-generic-bsp ?= "cortexa9t-neon"
|
|
# handled by hardware
|
|
DEFAULTTUNE:mx6-generic-bsp ?= "cortexa9thf-neon"
|
|
DEFAULTTUNE:mx6ul-generic-bsp ?= "cortexa7thf-neon"
|
|
DEFAULTTUNE:mx8m-generic-bsp ?= "cortexa53-crypto"
|
|
DEFAULTTUNE:mx8x-generic-bsp ?= "cortexa35-crypto"
|
|
|
|
INHERIT += "machine-overrides-extender"
|
|
|
|
#######
|
|
### NXP BSP specific overrides
|
|
#######
|
|
MACHINEOVERRIDES_EXTENDER:mx6q:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxfbdev:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d:mx6-generic-bsp:mx6-nxp-bsp:mx6q-generic-bsp:mx6q-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx6dl:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxfbdev:imxpxp:imxipu:imxvpu:imxgpu:imxgpu2d:imxgpu3d:imxepdc:mx6-generic-bsp:mx6-nxp-bsp:mx6dl-generic-bsp:mx6dl-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx6ul:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxfbdev:imxpxp:mx6-generic-bsp:mx6-nxp-bsp:mx6ul-generic-bsp:mx6ul-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mm:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d:mx8-generic-bsp:mx8-nxp-bsp:mx8m-generic-bsp:mx8m-nxp-bsp:mx8mm-generic-bsp:mx8mm-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mn:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxgpu:imxgpu3d:imxvulkan:mx8-generic-bsp:mx8-nxp-bsp:mx8m-generic-bsp:mx8m-nxp-bsp:mx8mn-generic-bsp:mx8mn-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mp:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxvpu:imxgpu:imxgpu2d:imxgpu3d:imxvulkan:mx8-generic-bsp:mx8-nxp-bsp:mx8m-generic-bsp:mx8m-nxp-bsp:mx8mp-generic-bsp:mx8mp-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8qxp:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d:imxvulkan:mx8-generic-bsp:mx8-nxp-bsp:mx8x-generic-bsp:mx8x-nxp-bsp:mx8qxp-generic-bsp:mx8qxp-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8dx:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxdpu:imxgpu:imxgpu2d:imxgpu3d:imxvulkan:mx8-generic-bsp:mx8-nxp-bsp:mx8x-generic-bsp:mx8x-nxp-bsp:mx8dx-generic-bsp:mx8dx-nxp-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx93:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:imxdrm:imxpxp:mx9-generic-bsp:mx9-nxp-bsp:mx93-generic-bsp:mx93-nxp-bsp"
|
|
|
|
#######
|
|
### Mainline BSP specific overrides
|
|
#######
|
|
MACHINEOVERRIDES_EXTENDER:mx6q:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx6-generic-bsp:mx6-mainline-bsp:mx6q-generic-bsp:mx6q-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx6dl:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx6-generic-bsp:mx6-mainline-bsp:mx6dl-generic-bsp:mx6dl-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx6ul:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx6-generic-bsp:mx6-mainline-bsp:mx6ul-generic-bsp:mx6ul-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mm:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx8-generic-bsp:mx8-mainline-bsp:mx8m-generic-bsp:mx8m-mainline-bsp:mx8mm-generic-bsp:mx8mm-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mn:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx8-generic-bsp:mx8-mainline-bsp:mx8m-generic-bsp:mx8m-mainline-bsp:mx8mn-generic-bsp:mx8mn-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8mp:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx8-generic-bsp:mx8-mainline-bsp:mx8m-generic-bsp:mx8m-mainline-bsp:mx8mp-generic-bsp:mx8mp-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8qxp:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx8-generic-bsp:mx8-mainline-bsp:mx8x-generic-bsp:mx8x-mainline-bsp:mx8qxp-generic-bsp:mx8qxp-mainline-bsp"
|
|
MACHINEOVERRIDES_EXTENDER:mx8dx:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx8-generic-bsp:mx8-mainline-bsp:mx8x-generic-bsp:mx8x-mainline-bsp:mx8dx-generic-bsp:mx8dx-mainline-bsp"
|
|
|
|
MACHINEOVERRIDES_EXTENDER_FILTER_OUT = " \
|
|
mx6 \
|
|
mx6q \
|
|
mx6dl \
|
|
mx6sx \
|
|
mx6sl \
|
|
mx6sll \
|
|
mx6ul \
|
|
mx6ull \
|
|
mx6ulz \
|
|
\
|
|
mx7 \
|
|
mx7d \
|
|
mx7ulp \
|
|
\
|
|
vf \
|
|
\
|
|
mx8 \
|
|
mx8m \
|
|
mx8qm \
|
|
mx8mm \
|
|
mx8mn \
|
|
mx8mp \
|
|
mx8mq \
|
|
mx8qxp \
|
|
mx8dx \
|
|
mx8dxl \
|
|
mx93 \
|
|
"
|
|
|
|
MACHINEOVERRIDES_FILTERED_OUT_QA_ERROR = "%s overrides cannot be used and need conversion to use the new BSP-specific overrides. Check 'meta-freescale/scripts/convert-bsp-specific-overrides'."
|
|
|
|
# Sub-architecture support
|
|
MACHINE_SOCARCH_SUFFIX ?= ""
|
|
MACHINE_SOCARCH_SUFFIX:mx6q-nxp-bsp = "-mx6qdl"
|
|
MACHINE_SOCARCH_SUFFIX:mx6dl-nxp-bsp = "-mx6qdl"
|
|
MACHINE_SOCARCH_SUFFIX:mx6ul-nxp-bsp = "-mx6ul"
|
|
MACHINE_SOCARCH_SUFFIX:mx8mm-nxp-bsp = "-mx8mm"
|
|
MACHINE_SOCARCH_SUFFIX:mx8mn-nxp-bsp = "-mx8mn"
|
|
MACHINE_SOCARCH_SUFFIX:mx8mp-nxp-bsp = "-mx8mp"
|
|
MACHINE_SOCARCH_SUFFIX:mx8qxp-nxp-bsp = "-mx8"
|
|
MACHINE_SOCARCH_SUFFIX:mx8dx-nxp-bsp = "-mx8"
|
|
MACHINE_SOCARCH_SUFFIX:mx93-nxp-bsp = "-mx93"
|
|
|
|
# For Mainline we use a single SoC suffix as we don't have different build options
|
|
MACHINE_SOCARCH_SUFFIX:imx-mainline-bsp = "-imx"
|
|
|
|
MACHINE_ARCH_FILTER = "virtual/kernel"
|
|
MACHINE_SOCARCH_FILTER:append:imx-nxp-bsp = " \
|
|
alsa-lib \
|
|
gstreamer1.0 \
|
|
weston \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imxvpu = " \
|
|
imx-codec \
|
|
imx-vpuwrap \
|
|
libimxvpuapi \
|
|
virtual/imxvpu \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imxvulkan = " \
|
|
vulkan-headers \
|
|
vulkan-loader \
|
|
vulkan-tools \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imxgpu = " \
|
|
virtual/egl \
|
|
virtual/libopenvg \
|
|
virtual/mesa \
|
|
virtual/opencl-icd \
|
|
libdrm \
|
|
cairo \
|
|
libgal-imx \
|
|
opencl-icd-loader \
|
|
opencl-clhpp \
|
|
opencl-headers \
|
|
opencv \
|
|
pango \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imxgpu2d = " \
|
|
virtual/libg2d \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imxgpu3d = " \
|
|
virtual/libgl \
|
|
virtual/libgles1 \
|
|
virtual/libgles2 \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:imx-mainline-bsp = " \
|
|
virtual/egl \
|
|
virtual/libopenvg \
|
|
virtual/libg2d \
|
|
virtual/libgl \
|
|
virtual/libgles1 \
|
|
virtual/libgles2 \
|
|
virtual/mesa \
|
|
cairo \
|
|
pango \
|
|
qtbase \
|
|
"
|
|
MACHINE_SOCARCH_FILTER:append:mx8qm-nxp-bsp = " \
|
|
virtual/libopenvx \
|
|
"
|
|
|
|
INHERIT += "fsl-dynamic-packagearch"
|
|
|
|
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS:append = " \
|
|
imx-gpu-viv->kernel-module-imx-gpu-viv \
|
|
libimxvpuapi->virtual/imxvpu \
|
|
imx-vpuwrap->virtual/imxvpu \
|
|
imx-codec->virtual/imxvpu \
|
|
imx-test->virtual/imxvpu \
|
|
"
|
|
|
|
# Firmware used for boot.
|
|
IMX_EXTRA_FIRMWARE ?= ""
|
|
IMX_EXTRA_FIRMWARE:mx8-generic-bsp = "firmware-imx-8 imx-sc-firmware imx-seco"
|
|
IMX_EXTRA_FIRMWARE:mx8m-generic-bsp = "firmware-imx-8m"
|
|
IMX_EXTRA_FIRMWARE:mx8x-generic-bsp = "imx-sc-firmware imx-seco"
|
|
IMX_EXTRA_FIRMWARE:mx9-nxp-bsp = "firmware-imx-9 firmware-sentinel"
|
|
|
|
# Extra udev rules
|
|
MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf udev-rules-imx"
|
|
|
|
# GStreamer 1.0 plugins
|
|
MACHINE_GSTREAMER_1_0_PLUGIN ?= ""
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx6dl-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx6q-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx6ul-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx8mm-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx8mn-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx8mp-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx8qxp-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
MACHINE_GSTREAMER_1_0_PLUGIN:mx8dx-nxp-bsp ?= "imx-gst1.0-plugin imx-gst1.0-plugin-gplay imx-gst1.0-plugin-grecorder"
|
|
|
|
# In 'meta-freescale' these gstreamer preferred versions are restricted to 'mx8-nxp-bsp'
|
|
# but in DEY we use them also in the 6UL, so relax the override to 'imx-nxp-base'
|
|
PREFERRED_VERSION_gstreamer1.0:imx-nxp-bsp ??= "1.20.3.imx"
|
|
PREFERRED_VERSION_gstreamer1.0-plugins-base:imx-nxp-bsp ??= "1.20.3.imx"
|
|
PREFERRED_VERSION_gstreamer1.0-plugins-good:imx-nxp-bsp ??= "1.20.3.imx"
|
|
PREFERRED_VERSION_gstreamer1.0-plugins-bad:imx-nxp-bsp ??= "1.20.3.imx"
|
|
PREFERRED_VERSION_ffmpeg:imx-nxp-bsp ??= "4.4.1"
|
|
|
|
# Determines if the SoC has support for Vivante kernel driver
|
|
SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0"
|
|
SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT:imxgpu = "1"
|
|
|
|
# Handle Vivante kernel driver setting:
|
|
# 0 - machine does not have Vivante GPU driver support
|
|
# 1 - machine has Vivante GPU driver support
|
|
MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ?= "${SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}"
|
|
|
|
# Graphics libraries
|
|
PREFERRED_PROVIDER_virtual/egl ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
|
|
PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
|
|
|
|
PREFERRED_PROVIDER_virtual/egl:imxgpu ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libgl:imxgpu3d ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libgles1:imxgpu3d ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libgles2:imxgpu3d ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libgles3:imxgpu3d ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libg2d ?= "imx-gpu-g2d"
|
|
PREFERRED_PROVIDER_virtual/libg2d:imxdpu ?= "imx-dpu-g2d"
|
|
PREFERRED_PROVIDER_opencl-clhpp:imxgpu ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_opencl-headers:imxgpu ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_opencl-icd-loader:imxgpu ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/opencl-icd:imxgpu ?= "imx-gpu-viv"
|
|
PREFERRED_PROVIDER_virtual/libg2d:mx93-nxp-bsp ?= "imx-pxp-g2d"
|
|
|
|
PREFERRED_VERSION_weston:imx-nxp-bsp ??= "10.0.1.imx"
|
|
PREFERRED_VERSION_weston:imx-mainline-bsp = ""
|
|
|
|
PREFERRED_VERSION_wayland-protocols:mx6-nxp-bsp ??= "1.25.imx"
|
|
PREFERRED_VERSION_wayland-protocols:mx7-nxp-bsp ??= "1.25.imx"
|
|
PREFERRED_VERSION_wayland-protocols:mx8-nxp-bsp ??= "1.25.imx"
|
|
PREFERRED_VERSION_wayland-protocols:mx9-nxp-bsp ??= "1.25.imx"
|
|
|
|
# Use i.MX libdrm Version
|
|
PREFERRED_VERSION_libdrm:mx6-nxp-bsp ??= "2.4.109.imx"
|
|
PREFERRED_VERSION_libdrm:mx7-nxp-bsp ??= "2.4.109.imx"
|
|
PREFERRED_VERSION_libdrm:mx8-nxp-bsp ??= "2.4.109.imx"
|
|
PREFERRED_VERSION_libdrm:mx9-nxp-bsp ??= "2.4.109.imx"
|
|
|
|
PREFERRED_VERSION_vulkan-headers:imxvulkan ??= "1.2.182.0"
|
|
PREFERRED_VERSION_vulkan-loader:imxvulkan ??= "1.2.182.0"
|
|
PREFERRED_VERSION_vulkan-tools:imxvulkan ??= "1.2.182.0"
|
|
|
|
# Use i.MX optee Version
|
|
PREFERRED_VERSION_optee-client:mx8-nxp-bsp ??= "3.19.0.imx"
|
|
PREFERRED_VERSION_optee-client:mx9-nxp-bsp ??= "3.19.0.imx"
|
|
PREFERRED_VERSION_optee-os:mx8-nxp-bsp ??= "3.19.0.imx"
|
|
PREFERRED_VERSION_optee-os:mx9-nxp-bsp ??= "3.19.0.imx"
|
|
PREFERRED_VERSION_optee-test:mx8-nxp-bsp ??= "3.19.0.imx"
|
|
PREFERRED_VERSION_optee-test:mx9-nxp-bsp ??= "3.19.0.imx"
|
|
|
|
#Use i.MX opencv Version for mx8
|
|
PREFERRED_VERSION_opencv:mx8-nxp-bsp ??= "4.6.0.imx"
|
|
|
|
EXTRA_IMAGEDEPENDS += "u-boot"
|
|
|
|
KERNEL_IMAGETYPE ?= "zImage"
|
|
|
|
MACHINE_FEATURES = "usbgadget usbhost vfat alsa touchscreen"
|
|
|
|
# U-Boot 2017.X requires a specific dtc version.
|
|
PREFERRED_VERSION_dtc-native:ccimx6 ?= "1.4.5"
|
|
PREFERRED_VERSION_nativesdk-dtc:ccimx6 ?= "1.4.5"
|
|
|
|
DEY_BUILD_PLATFORM = "NXP"
|