[meta-freescale] [meta-fsl-demos][PATCH] distro: i.MX BSP distros to integrate i.MX supported components

Lauren Post lauren.post at nxp.com
Fri Apr 29 05:02:37 PDT 2016


The fsl-imx-x11 supports the x11 graphical backend
The fsl-imx-xwayland supports the Xwayland backend
The fsl-imx-fb supports the Frame Buffer backend
The fsl-imx-wayland supports the Wayland backend

Signed-off-by: Lauren Post <lauren.post at nxp.com>
---
 conf/distro/fsl-imx-fb.conf                   |  9 +++
 conf/distro/fsl-imx-wayland.conf              | 10 +++
 conf/distro/fsl-imx-x11.conf                  | 12 ++++
 conf/distro/fsl-imx-xwayland.conf             | 10 +++
 conf/distro/include/fsl-imx-base.inc          | 95 +++++++++++++++++++++++++++
 conf/distro/include/fsl-imx-preferred-env.inc | 47 +++++++++++++
 6 files changed, 183 insertions(+)
 create mode 100644 conf/distro/fsl-imx-fb.conf
 create mode 100644 conf/distro/fsl-imx-wayland.conf
 create mode 100644 conf/distro/fsl-imx-x11.conf
 create mode 100644 conf/distro/fsl-imx-xwayland.conf
 create mode 100644 conf/distro/include/fsl-imx-base.inc
 create mode 100644 conf/distro/include/fsl-imx-preferred-env.inc

diff --git a/conf/distro/fsl-imx-fb.conf b/conf/distro/fsl-imx-fb.conf
new file mode 100644
index 0000000..fa36f88
--- /dev/null
+++ b/conf/distro/fsl-imx-fb.conf
@@ -0,0 +1,9 @@
+# i.MX DISTRO for the FrameBuffer graphical backend.
+
+include conf/distro/include/fsl-imx-base.inc
+include conf/distro/include/fsl-imx-preferred-env.inc
+
+DISTRO = "fsl-imx-fb"
+
+# Remove conflicting backends.
+DISTRO_FEATURES_remove = "x11 wayland directfb "
diff --git a/conf/distro/fsl-imx-wayland.conf b/conf/distro/fsl-imx-wayland.conf
new file mode 100644
index 0000000..ac0bf8a
--- /dev/null
+++ b/conf/distro/fsl-imx-wayland.conf
@@ -0,0 +1,10 @@
+# i.MX DISTRO for Wayland without X11
+
+include conf/distro/include/fsl-imx-base.inc
+include conf/distro/include/fsl-imx-preferred-env.inc
+
+DISTRO = "fsl-imx-wayland"
+
+# Remove conflicting backends
+DISTRO_FEATURES_remove = "directfb x11 "
+DISTRO_FEATURES_append = " wayland"
diff --git a/conf/distro/fsl-imx-x11.conf b/conf/distro/fsl-imx-x11.conf
new file mode 100644
index 0000000..783e86e
--- /dev/null
+++ b/conf/distro/fsl-imx-x11.conf
@@ -0,0 +1,12 @@
+# i.MX DISTRO for X11 with no wayland
+
+include conf/distro/include/fsl-imx-base.inc
+include conf/distro/include/fsl-imx-preferred-env.inc
+
+DISTRO = "fsl-imx-x11"
+
+# Remove conflicting backends.
+DISTRO_FEATURES_remove = "wayland"
+
+# These are X11 specific
+DISTRO_FEATURES_append = " x11"
diff --git a/conf/distro/fsl-imx-xwayland.conf b/conf/distro/fsl-imx-xwayland.conf
new file mode 100644
index 0000000..0cc9065
--- /dev/null
+++ b/conf/distro/fsl-imx-xwayland.conf
@@ -0,0 +1,10 @@
+# i.MX DISTRO for Wayland with X11
+
+include conf/distro/include/fsl-imx-base.inc
+include conf/distro/include/fsl-imx-preferred-env.inc
+
+DISTRO = "fsl-imx-xwayland"
+
+# Remove conflicting backends
+DISTRO_FEATURES_remove = "directfb "
+DISTRO_FEATURES_append = " x11 wayland pam"
diff --git a/conf/distro/include/fsl-imx-base.inc b/conf/distro/include/fsl-imx-base.inc
new file mode 100644
index 0000000..8223504
--- /dev/null
+++ b/conf/distro/include/fsl-imx-base.inc
@@ -0,0 +1,95 @@
+DISTRO = "fsl-imx"
+DISTRO_NAME = "Freescale i.MX Release Distro"
+DISTRO_VERSION = "4.1.15-1.1.0"
+DISTRO_CODENAME = "jethro"
+SDK_VENDOR = "-pokysdk"
+SDK_VERSION := "${DISTRO_VERSION}"
+#SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
+
+MAINTAINER = "Freescale Semiconductors <lauren.post at nxp.com>"
+
+TARGET_VENDOR = "-poky"
+
+LOCALCONF_VERSION = "1"
+
+IMX_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch"
+IMX_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
+IMX_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
+IMAGE_FSTYPES = "tar.bz2 ext4 sdcard"
+
+DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${IMX_DEFAULT_DISTRO_FEATURES}"
+
+# support bluez5 for i.MX Distro
+# Comment out the 2 lines below to use bluez4.
+DISTRO_FEATURES_append_mx6 = " bluez5"
+DISTRO_FEATURES_append_mx6ul = " bluez5"
+DISTRO_FEATURES_append_mx7 = " bluez5"
+
+SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
+SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
+
+DISTRO_EXTRA_RDEPENDS += " ${IMX_DEFAULT_EXTRA_RDEPENDS}"
+DISTRO_EXTRA_RRECOMMENDS += " ${IMX_DEFAULT_EXTRA_RRECOMMENDS}"
+
+TCLIBCAPPEND = ""
+
+PREMIRRORS ??= "\
+bzr://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
+cvs://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
+git://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
+gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+hg://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \n \
+osc://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
+p4://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \n \
+svn://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n"
+
+MIRRORS =+ "\
+ftp://.*/.*      http://downloads.yoctoproject.org/mirror/sources/ \n \
+http://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
+https://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \n"
+
+# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
+# fetch from the network (and warn you if not). To disable the test set
+# the variable to be empty.
+# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=master
+
+CONNECTIVITY_CHECK_URIS ?= " \
+             https://eula-downloads.yoctoproject.org/index.php \
+             http://bugzilla.yoctoproject.org/report.cgi"
+
+SANITY_TESTED_DISTROS ?= " \
+            poky-1.7 \n \
+            poky-1.8 \n \
+            Ubuntu-12.04 \n \
+            Ubuntu-14.04 \n \
+            Ubuntu-14.10 \n \
+            Ubuntu-15.04 \n \
+            Fedora-21 \n \
+            CentOS-6.* \n \
+            CentOS-7.* \n \
+            Debian-7.* \n \
+            Debian-8.* \n \
+            openSUSE-project-13.2 \n \
+            "
+
+# Default hash policy for distro
+BB_SIGNATURE_HANDLER ?= 'OEBasicHash'
+#
+# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in
+# an incompatible way. Such changes should usually be detailed in the commit
+# that breaks the format and have been previously discussed on the mailing list
+# with general agreement from the core team.
+#
+OELAYOUT_ABI = "11"
+
+# add poky sanity bbclass
+INHERIT += "poky-sanity"
+
+# QA check settings - a little stricter than the OE-Core defaults
+WARN_TO_ERROR_QA = "already-stripped compile-host-path install-host-path \
+                    installed-vs-shipped ldflags pn-overrides rpaths staticdev \
+                    useless-rpaths"
+WARN_QA_remove = "${WARN_TO_ERROR_QA}"
+ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
+
+MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_mx6 = "1"
diff --git a/conf/distro/include/fsl-imx-preferred-env.inc b/conf/distro/include/fsl-imx-preferred-env.inc
new file mode 100644
index 0000000..d1bf7ca
--- /dev/null
+++ b/conf/distro/include/fsl-imx-preferred-env.inc
@@ -0,0 +1,47 @@
+The following set the providers to components supported by NXP
+
+# Use i.MX Kernel, U-Boot and Gstreamer 1.0 providers
+PREFERRED_PROVIDER_u-boot_mx5 = "u-boot-fslc"
+PREFERRED_PROVIDER_u-boot_mx6 = "u-boot-imx"
+PREFERRED_PROVIDER_u-boot_mx6ul = "u-boot-imx"
+PREFERRED_PROVIDER_u-boot_mx7 = "u-boot-imx"
+
+PREFERRED_PROVIDER_virtual/bootloader_mx6 = "u-boot-imx"
+PREFERRED_PROVIDER_virtual/bootloader_mx6ul = "u-boot-imx"
+PREFERRED_PROVIDER_virtual/bootloader_mx7 = "u-boot-imx"
+
+PREFERRED_PROVIDER_virtual/kernel_mx6 = "linux-imx"
+PREFERRED_PROVIDER_virtual/kernel_mx6ul = "linux-imx"
+PREFERRED_PROVIDER_virtual/kernel_mx7 = "linux-imx"
+
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6 = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6ul = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6q = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6dl = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6sl = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx6sx = "imx-gst1.0-plugin"
+MACHINE_GSTREAMER_1_0_PLUGIN_mx7 = "imx-gst1.0-plugin"
+
+# Extra audio support
+# FIXME: Add support for ALL SoC families
+MACHINE_EXTRA_RRECOMMENDS_remove_mx6 = " fsl-alsa-plugins"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " ${@base_contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6ul = " ${@base_contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx7 = " ${@base_contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+
+# Default toolchains used in testing i.MX BSPs
+DEFAULTTUNE_mx6   = "cortexa9hf-neon"
+DEFAULTTUNE_mx6ul = "cortexa7hf-neon"
+DEFAULTTUNE_mx7   = "cortexa7hf-neon"
+
+# Use new Wayland version
+PREFERRED_VERSION_wayland_mx6 = "1.9.0"
+PREFERRED_VERSION_weston_mx6 = "1.9.0"
+PREFERRED_VERSION_wayland_mx6ul = "1.9.0"
+PREFERRED_VERSION_weston_mx6ul = "1.9.0"
+PREFERRED_VERSION_wayland_mx7 = "1.9.0"
+PREFERRED_VERSION_weston_mx7 = "1.9.0"
+PREFERRED_VERSION_wayland-native = "1.9.0"
+
+# Enable the kenrel loadable module as default
+USE_GPU_VIV_MODULE = "1"
-- 
1.9.1



More information about the meta-freescale mailing list