Changes

Jump to: navigation, search

Building the Yocto BSP (SDVX)

2,012 bytes removed, 09:50, 6 September 2018
no edit summary
|-
! stable branch
| sdvx-krogoth| sdvx-krogoth
|-
! stable tag
| QT5.x support
|-
| sdvxdave-image-devel
| minimal for development/debugging image
|-
| sdvxdave-image-networking
| based on sdvx-image-devel plus networking tools
|-
| sdvxdave-image-core
| minimal working image with SSH
|-
| sdvx-image-gui
| based on sdvx-image-core with additional tools to support the graphical environment
|}
You can refer to [http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#yp-resources Yocto manual setup section] for a list of supported Linux distribution and their configuration to create your own build environment on your favorite distribution.
 
 
== Build the XUELK Yocto BSP ==
<pre class="workstation-terminal">
dvdk@dvdkubuntu-vmxenial:~/sdvx/build-ul$ bitbake memtester
</pre>
<pre class="workstation-terminal">
dvdk@ubuntu-xenial:~/sdvx/build-ul$ ls -l tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester*
-rw-r--r-- 1 dvdk dvdk 9967 Sep 7 05:43 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-4.1.3-r0.cortexa7hf_vfp_neon.rpm
-rw-r--r-- 1 dvdk dvdk 25544 Sep 7 05:43 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-dbg-4.1.3-r0.cortexa7hf_vfp_neon.rpm
-rw-r--r-- 1 dvdk dvdk 2884 Sep 7 05:42 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-dev-4.1.3-r0.cortexa7hf_vfp_neon.rpm
-rw-r--r-- 1 dvdk dvdk 5611 Sep 7 05:44 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-doc-4.1.3-r0.cortexa7hf_vfp_neon.rpm
</pre>
dvdk@ubuntu-xenial:~/sdvx$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo
dvdk@ubuntu-xenial:~/sdvx$ chmod a+x repo
dvdk@ubuntu-xenial:~/sdvx$ ./repo init -u git@gitlab.lan.dave.eu:sdvx/sdvx-bsp.git -b sdvx-krogoth
dvdk@ubuntu-xenial:~/sdvx$ ./repo sync
</pre>
 
 
 
===Generating the SDKs===
 
After creating an image as described above, the corresponding SDK can be generated by issuing the following command:
<pre class="workstation-terminal">
bitbake <target-image-name> -c populate-sdk
</pre>
Again, replace <code><target-image-name></code> with one of the images listed in [[#Quick reference|here]].
 
=== Build additional packages ===
 
To build additional packages the user must first enter the directory where the <code>lynx-setup-release.sh</code> is placed and source it
 
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/lynx$ DISTRO=fsl-imx-fb MACHINE=sbc-lynx source lynx-setup-release.sh -b build
dvdk@dvdk-vm:~/lynx/build$
</pre>
 
And then he can run any of the [http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#usingpoky-components-bitbake bitbake] commands.
 
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/lynx/build$ bitbake memtester
</pre>
 
The resulting packages (the default format is ipk) can be found inside ''build/tmp/deploy/rpm''.
 
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/lynx/build$ ls -l tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester*
-rw-r--r-- 1 dvdk dvdk 9967 Sep 7 05:43 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-4.1.3-r0.cortexa7hf_vfp_neon.rpm
-rw-r--r-- 1 dvdk dvdk 25544 Sep 7 05:43 tmp/deploy/rpm/cortexa7hf_vfp_neon/memtester-dbg-4.1.3-r0.cortexa7hf_vfp_neon.rpm
170
edits

Navigation menu