<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Transclusion%3A_CL-SOM-iMX7%3A_Yocto_Linux%3A_Building</id>
	<title>Transclusion: CL-SOM-iMX7: Yocto Linux: Building - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Transclusion%3A_CL-SOM-iMX7%3A_Yocto_Linux%3A_Building"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=Transclusion:_CL-SOM-iMX7:_Yocto_Linux:_Building&amp;action=history"/>
	<updated>2026-09-02T04:16:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://mediawiki.compulab.com/w/index.php?title=Transclusion:_CL-SOM-iMX7:_Yocto_Linux:_Building&amp;diff=4383&amp;oldid=prev</id>
		<title>imported&gt;Igor.vaisbein: /* Setting up build configuration */</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=Transclusion:_CL-SOM-iMX7:_Yocto_Linux:_Building&amp;diff=4383&amp;oldid=prev"/>
		<updated>2019-01-27T09:48:51Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Setting up build configuration&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
The Yocto Project is an open-source collaboration focused on embedded Linux development.&amp;lt;br&amp;gt;&lt;br /&gt;
The purpose of this article is to show how to get Yocto Image with CL-SOM-iMX7 system-on-module (SoM) support, which includes following derived devices built around the CL-SOM-iMX7 SoM:&lt;br /&gt;
* SBC-iMX7 Single Board Computer&lt;br /&gt;
* SBC-IOT-iMX7 Internet of Things Single Board Computer&lt;br /&gt;
* IOT-GATE-iMX7 Internet of Things Gateway&lt;br /&gt;
&lt;br /&gt;
[https://www.yoctoproject.org/docs/ Learn more about Yocto]&lt;br /&gt;
&lt;br /&gt;
= Yocto Environment Setup =&lt;br /&gt;
Yocto host requirements are listed [https://www.yoctoproject.org/docs/2.6/brief-yoctoprojectqs/brief-yoctoprojectqs.html#brief-build-system-packages on the Yocto official site]&lt;br /&gt;
&lt;br /&gt;
In order to get NXP Yocto BSP building environment please follow [https://source.codeaurora.org/external/imx/meta-fsl-bsp-release/tree/imx/README?h=rocko-4.9.88-2.0.0_ga#n52 the NXP readme file]&lt;br /&gt;
&lt;br /&gt;
Next step is getting Compulab BSP meta-layer.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone -b master https://github.com/compulab-yokneam/meta-compulab-bsp.git sources/meta-compulab-bsp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The Compulab meta-layer consists of {{filename|meta-compulab-bsp}} directory, that provides support for CL-SOM-iMX7 and other Compulab i.MX based machines and contains recipes for U-boot and Linux kernel.&lt;br /&gt;
&lt;br /&gt;
= Image Build =&lt;br /&gt;
This section provides the detailed information about building CL-SOM-iMX7 images.&lt;br /&gt;
&lt;br /&gt;
== Setting up build configuration ==&lt;br /&gt;
The NXP Yocto Project BSP Release directory includes a {{filename|sources}} directory which contains the various build recipes and a set of scripts used to set up the environment. The recommended script {{filename|fsl-setup-release.sh}} simplifies the setup for i.MX machines. To use the script, it is necessary to specify the name of the machine to be built and the required graphical backend. The script sets up a directory and the configuration files for the specified machine and backend.&lt;br /&gt;
:* Select the required backend:&lt;br /&gt;
::Graphical backend is defined by the {{parameter|DISTRO}} parameter.&amp;lt;br&amp;gt;&lt;br /&gt;
::Available {{parameter|DISTRO}} values for CL-SOM-iMX7:&lt;br /&gt;
::*{{parameter|fsl-imx-x11}} - building X11&lt;br /&gt;
::*{{parameter|fsl-imx-fb}} - building Frame Buffer&lt;br /&gt;
::*{{parameter|fsl-imx-xwayland}} - building XWayland&lt;br /&gt;
::*{{parameter|fsl-imx-wayland}} - building Wayland-Weston&lt;br /&gt;
::*{{parameter|imx-wayland-ivi}} - building Wayland with IVI extension&lt;br /&gt;
:: For example:&lt;br /&gt;
::&amp;lt;pre&amp;gt;export DISTRO=fsl-imx-x11&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* Select the machine:&lt;br /&gt;
::&amp;lt;pre&amp;gt;export MACHINE=cl-som-imx7&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* Select the build directory:&lt;br /&gt;
::Select a different build directory for each distro. For example:&lt;br /&gt;
::&amp;lt;pre&amp;gt;BUILD_DIR=build-x11&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* Issue the '''NXP''' Setup Script:&lt;br /&gt;
::&amp;lt;pre&amp;gt;source fsl-setup-release.sh -b ${BUILD_DIR}&amp;lt;/pre&amp;gt;&lt;br /&gt;
:* Issue '''Compulab''' Setup Script:&lt;br /&gt;
::&amp;lt;pre&amp;gt;source ../sources/meta-compulab-bsp/tools/setup-compulab-env&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Building images ==&lt;br /&gt;
The Yocto Project build uses the {{parameter|bitbake}} command.&lt;br /&gt;
:* Select one of the the following image recipes&lt;br /&gt;
::* fsl-image-validation-imx - provides a gui image without Qt.&lt;br /&gt;
::* fsl-image-qt5-validation-imx - provides a Qt5 image&lt;br /&gt;
::&amp;lt;pre&amp;gt;IMAGE_RECIPES=fsl-image-qt5-validation-imx&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: Issue the bitbake build command:&lt;br /&gt;
::&amp;lt;pre&amp;gt;bitbake ${IMAGE_RECIPES}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Igor.vaisbein</name></author>
		
	</entry>
</feed>