Date   

[PATCH] optee-client-qoriq: update SRC_URL

chunrong.guo@...
 

From: Chunrong Guo <chunrong.guo@...>

Signed-off-by: Chunrong Guo <chunrong.guo@...>
---
recipes-security/optee/optee-client-qoriq.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-security/optee/optee-client-qoriq.bb b/recipes-security/optee/optee-client-qoriq.bb
index bae18f8..24fa287 100644
--- a/recipes-security/optee/optee-client-qoriq.bb
+++ b/recipes-security/optee/optee-client-qoriq.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=69663ab153298557a59c67a60a743e5b"

inherit pythonnative systemd

-SRC_URI = "git://github.com/qoriq-open-source/optee_client.git;nobranch=1 \
+SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_client;nobranch=1 \
file://0001-Respect-LDFLAGS-set-from-OE-build.patch \
"
S = "${WORKDIR}/git"
--
2.7.4


Re: [PATCH] libdrm: Create i.MX specific version recipe to switch to use i.MX fork

Marcel Ziswiler
 

Hi Otavio

BTW: That one is still missing on rocko which currently fails building!

On Wed, 2018-06-06 at 11:46 +0800, Yuqing Zhu wrote:
This i.MX specific version is based on v2.4.84

Signed-off-by: Yuqing Zhu <carol.zhu@...>
Acked-by: Marcel Ziswiler <marcel.ziswiler@...>

---
...ac-Allow-explicit-enabling-of-cunit-tests.patch | 56
++++++++++++++++++
.../drm/libdrm/fix_O_CLOEXEC_undeclared.patch | 24 ++++++++
recipes-graphics/drm/libdrm/installtests.patch | 25 ++++++++
recipes-graphics/drm/libdrm_2.4.84.imx.bb | 66
++++++++++++++++++++++
4 files changed, 171 insertions(+)
create mode 100644 recipes-graphics/drm/libdrm/0001-configure.ac-
Allow-explicit-enabling-of-cunit-tests.patch
create mode 100644 recipes-
graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch
create mode 100644 recipes-graphics/drm/libdrm/installtests.patch
create mode 100644 recipes-graphics/drm/libdrm_2.4.84.imx.bb

diff --git a/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-
explicit-enabling-of-cunit-tests.patch b/recipes-
graphics/drm/libdrm/0001-configure.ac-Allow-explicit-enabling-of-
cunit-tests.patch
new file mode 100644
index 0000000..bf52637
--- /dev/null
+++ b/recipes-graphics/drm/libdrm/0001-configure.ac-Allow-explicit-
enabling-of-cunit-tests.patch
@@ -0,0 +1,56 @@
+From e6bd4205b0b546afe991ae6f72256645f4404ad4 Mon Sep 17 00:00:00
2001
+From: Jussi Kukkonen <jussi.kukkonen@...>
+Date: Mon, 5 Sep 2016 14:41:37 +0300
+Subject: [PATCH libdrm] configure.ac: Allow explicit enabling of
cunit tests
+
+Add --with-cunit to make it easier to do reproducible builds.
Default
+is still to probe cunit and build opportunistically.
+
+Signed-off-by: Jussi Kukkonen <jussi.kukkonen@...>
+Upstream-Status: Submitted [mailing list]
+---
+ configure.ac | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index e3048c7..918d21d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -137,6 +137,12 @@ AC_ARG_ENABLE(install-test-programs,
+ [Install test programs (default: no)]),
+ [INSTALL_TESTS=$enableval], [INSTALL_TESTS=no])
+
++AC_ARG_WITH([cunit],
++ [AS_HELP_STRING([--with-cunit],
++ [Build tests that use cunit (default:
auto)])],
++ [],
++ [with_cunit=auto])
++
+ dnl
=====================================================================
======
+ dnl check compiler flags
+ AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
+@@ -372,7 +378,7 @@ if test "x$RADEON" = xyes; then
+ AC_DEFINE(HAVE_RADEON, 1, [Have radeon support])
+ fi
+
+-if test "x$AMDGPU" != xno; then
++if test "x$with_cunit" != xno -a "x$AMDGPU" != xno; then
+ # Detect cunit library
+ PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1],
[have_cunit=yes], [have_cunit=no])
+ # If pkg-config does not find cunit, check it using
AC_CHECK_LIB. We
+@@ -399,7 +406,11 @@ if test "x$AMDGPU" = xyes; then
+ AC_DEFINE(HAVE_CUNIT, [test "x$have_cunit" != "xno"],
[Enable CUNIT Have amdgpu support])
+
+ if test "x$have_cunit" = "xno"; then
+- AC_MSG_WARN([Could not find cunit library.
Disabling amdgpu tests])
++ if test "x$with_cunit" = "xyes"; then
++ AC_MSG_ERROR([Could not find cunit library
but --with-cunit was given])
++ elif test "x$with_cunit" = "xauto"; then
++ AC_MSG_WARN([Could not find cunit library.
Disabling amdgpu tests])
++ fi
+ fi
+ fi
+
+--
+2.1.4
+
diff --git a/recipes-
graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch b/recipes-
graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch
new file mode 100644
index 0000000..4708bf1
--- /dev/null
+++ b/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch
@@ -0,0 +1,24 @@
+drmdevice.c: define _GNU_SOURCE
+
+Include config.h to fix this build error with uclibc:
+
+libdrm-2.4.66/tests/drmdevice.c: In function 'main':
+libdrm-2.4.66/tests/drmdevice.c:96:60: error:
+'O_CLOEXEC' undeclared (first use in this function)
+fd = open(devices[i]->nodes[j],O_RDONLY | O_CLOEXEC, 0);
+
+Upstream-Status: Pending
+
+Signed-off-by: Maxin B. John <maxin.john@...>
+---
+diff -Naur libdrm-2.4.66-orig/tests/drmdevice.c libdrm-
2.4.66/tests/drmdevice.c
+--- libdrm-2.4.66-orig/tests/drmdevice.c 2016-02-23
11:34:02.054904502 +0200
++++ libdrm-2.4.66/tests/drmdevice.c 2016-02-23
11:35:34.371750383 +0200
+@@ -21,6 +21,7 @@
+ *
+ */
+
++#include <config.h>
+ #include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
diff --git a/recipes-graphics/drm/libdrm/installtests.patch
b/recipes-graphics/drm/libdrm/installtests.patch
new file mode 100644
index 0000000..ec1fb02
--- /dev/null
+++ b/recipes-graphics/drm/libdrm/installtests.patch
@@ -0,0 +1,25 @@
+From 5c6eb43c2f6e7f2ee7c25c92e42f4e4403fa0527 Mon Sep 17 00:00:00
2001
+From: Jussi Kukkonen <jussi.kukkonen@...>
+Date: Tue, 21 Feb 2017 14:37:52 +0200
+Subject: [PATCH] tests: also install test apps
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Yu Ke <ke.yu@...>
+Signed-off-by: Jussi Kukkonen <jussi.kukkonen@...>
+---
+ tests/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0355a92..b4882cd 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -45,3 +45,4 @@ TESTS = \
+ check_PROGRAMS = \
+ $(TESTS) \
+ drmdevice
++bin_PROGRAMS = $(check_PROGRAMS)
+--
+2.1.4
+
diff --git a/recipes-graphics/drm/libdrm_2.4.84.imx.bb b/recipes-
graphics/drm/libdrm_2.4.84.imx.bb
new file mode 100644
index 0000000..53de62b
--- /dev/null
+++ b/recipes-graphics/drm/libdrm_2.4.84.imx.bb
@@ -0,0 +1,66 @@
+SUMMARY = "Userspace interface to the kernel DRM services"
+DESCRIPTION = "The runtime library for accessing the kernel DRM
services. DRM \
+stands for \"Direct Rendering Manager\", which is the kernel portion
of the \
+\"Direct Rendering Infrastructure\" (DRI). DRI is required for many
hardware \
+accelerated OpenGL drivers."
+HOMEPAGE = "http://dri.freedesktop.org"
+SECTION = "x11/base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM =
"file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761
e949dc71"
+PROVIDES = "drm"
+DEPENDS = "libpthread-stubs libpciaccess"
+
+IMX_LIBDRM_SRC ?= "git://source.codeaurora.org/external/imx/libdrm-
imx.git;protocol=https"
+IMX_LIBDRM_BRANCH = "libdrm-imx-2.4.84"
+SRC_URI = "${IMX_LIBDRM_SRC};branch=${IMX_LIBDRM_BRANCH} \
+ file://installtests.patch \
+ file://fix_O_CLOEXEC_undeclared.patch \
+ file://0001-configure.ac-Allow-explicit-enabling-of-
cunit-tests.patch \
+ "
+SRC_URI_remove_mx8 = "file://drm-update-arm.patch"
+SRCREV = "8c8c46d41839035de605291bc1c26902011a74ac"
+
+# IMX: Remove manpages which is added in pyro
+#inherit autotools pkgconfig manpages
+inherit autotools pkgconfig
+
+EXTRA_OECONF += "--disable-cairo-tests \
+ --without-cunit \
+ --enable-omap-experimental-api \
+ --enable-etnaviv-experimental-api \
+ --enable-install-test-programs \
+ --disable-valgrind \
+ "
+# IMX: Remove manpages which is added in pyro
+#PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages,
libxslt-native xmlto-native"
+EXTRA_OECONF += "--disable-manpages"
+
+ALLOW_EMPTY_${PN}-drivers = "1"
+PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau
${PN}-omap \
+ ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno
${PN}-amdgpu \
+ ${PN}-etnaviv"
+
+RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap
${PN}-intel \
+ ${PN}-exynos ${PN}-freedreno ${PN}-
amdgpu \
+ ${PN}-etnaviv"
+
+FILES_${PN}-tests = "${bindir}/*"
+FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
+FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
+FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*"
+FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"
+FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
+FILES_${PN}-kms = "${libdir}/libkms*.so.*"
+FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
+FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.*"
+FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
+
+EXTRA_OECONF_append_imxgpu = " --enable-vivante-experimental-api"
+
+PACKAGES_prepend_imxgpu = "${PN}-vivante "
+
+RRECOMMENDS_${PN}-drivers_append_imxgpu = " ${PN}-vivante"
+
+FILES_${PN}-vivante = "${libdir}/libdrm_vivante.so.*"
+
+S = "${WORKDIR}/git"
--
1.9.1
Cheers

Marcel


Re: Edimax EW7811un + imx6dlsabresd + Krogoth

Bas Mevissen
 

On 2018-06-19 10:16, Mauro Ziliani wrote:

Please don't top post. I reordered the message to keep it readable.

Il 18/06/2018 17:07, Bas Mevissen ha scritto:
On 2018-06-18 14:41, Mauro Ziliani wrote:
Hi all.
Anyone has experience with wifi dongle, imx6dlsabresd on kernel
linux-imx 4.1.15?
Not specifically this one, but on an RTL8812AU based wifi dongle on the same kernel for i.mx 6sx. That went pretty well.
What is your problem? It is used a lot in the rPi world.
Thanks for the answer.
My dongle is based on RTL8192CU.
All works fine, but after a small time of inactivity, it's like the
dongle go to sleep, but this is not true.
Some things I can think of:

- Is the 5V still there after a few minutes of inactivity?
- Check the settings for usb autosuspend in /sys
- Does the wifi dongle stay connected to the wifi AP?

Example
Time0: I try to upload a file into the board with scp
  scp muapp root@board:/home/root
and the file is uploaded
Time1 (after some mintues): I retry the upload, but the scp doens't
start the transfer
So I go to the board and looking into dmesg I don't see anything about
the dongle.
I make a ping on from the board to the host and scp restart.
If you let it ping all the time, does it also appear to sleep?

In another cases I need to restart command.
You could try the exact same driver code on an Intel PC. That gives some hint on whether this is something on the i.MX platform/kernel or on the driver/hardware. Depending on the outcome, try with a different driver (for rtl8812au I know there are a few). You might compare the /sys settings as well.


-- bas


Re: Edimax EW7811un + imx6dlsabresd + Krogoth

Mauro Ziliani
 

Thanks for the answer.

My dongle is based on RTL8192CU.

All works fine, but after a small time of inactivity, it's like the dongle go to sleep, but this is not true.

Example

Time0: I try to upload a file into the board with scp

  scp muapp root@board:/home/root

and the file is uploaded


Time1 (after some mintues): I retry the upload, but the scp doens't start the transfer

So I go to the board and looking into dmesg I don't see anything about the dongle.

I make a ping on from the board to the host and scp restart.


In another cases I need to restart connmand.


MZ

Il 18/06/2018 17:07, Bas Mevissen ha scritto:
On 2018-06-18 14:41, Mauro Ziliani wrote:
Hi all.


Anyone has experience with wifi dongle, imx6dlsabresd on kernel
linux-imx 4.1.15?

Not specifically this one, but on an RTL8812AU based wifi dongle on the same kernel for i.mx 6sx. That went pretty well.

What is your problem? It is used a lot in the rPi world.

BR,

Bas.


X11/wayland configuration for i.mx7 board

Dennis Muhlestein
 

I've recently started learning about the Yocto project and freescale. I have an i.mx7 Dual sabre SD board to work with.

On the SD card shipped with a the board was a 4.1.15 kernel that boots a simple interface that allows various things like X11-vnc, a terminal, and a few sample games. When I build the distro config xwayland w/ image fsl-image-gui, or image-qt5 etc the resulting image is much smaller. I can write directly to the framebuffers with gstreamer and get output on the LCD or an HDMI monitor but there doesn't appear to be any sample programs and Xorg refused to start saying it was missing some drivers and config information.

(I built the 4.9.88 kernel 2.0.0 release from the repo/git branch).

Is there a specific image or a layer I need to enable to build an image with more UI support? It seems the images built w/ yocto/bitbake is a little sparse and I'm not sure if that is by design or if I've done something wrong along the way.

-Dennis


Configuring UART on SabreSD Board

Subin Sebastian
 

Hi All,

I'm working with iMX6 based Sabre SD board for my project. Details are available here : Link

I'm using Yocto to build Linux for this board. I have not done any customization as such to the build process. Just added meta-freescale layer, and started building images using bitbake without trouble.

Now, the board has two UARTs out of which, one used for debugging, which is detected by the Linux and is working fine, as I'm able to communicate with the board just fine.

There is a GPS chip on this board, and it looks like that, it is also on UART. But this UART is not detected by Linux, as I can't find a corresponding device node in /dev. (I'm not really concerned about the GPS itself, as I will be breaking out these lines anyway, and will be using the UART for another purpos).

It appears to me that the device tree file probably don't have the information about this channel, and might need customization to go ahead.

Can someone give me some pointers on how to go about this problem?

Thanks in Advance.

PS:- First forum post. Let me know if this is not the right place to post such a question.
--
Subin Sebastian
Skype subinsebastien
+91-944-6475-826


Re: Edimax EW7811un + imx6dlsabresd + Krogoth

Bas Mevissen
 

On 2018-06-18 14:41, Mauro Ziliani wrote:
Hi all.
Anyone has experience with wifi dongle, imx6dlsabresd on kernel
linux-imx 4.1.15?
Not specifically this one, but on an RTL8812AU based wifi dongle on the same kernel for i.mx 6sx. That went pretty well.

What is your problem? It is used a lot in the rPi world.

BR,

Bas.


[PATCH] gstreamer1.0-plugins-base: Remove append for version 1.14.0

Fabio Berton
 

Patch "viv-fb: Include gstglfuncs.h to fix cross compilation errors"
has already merged on 1.14.1.

Signed-off-by: Fabio Berton <fabio.berton@...>
---
...stglfuncs.h-to-fix-cross-compilation.patch | 50 -------------------
.../gstreamer1.0-plugins-base_1.14.0.bbappend | 4 --
2 files changed, 54 deletions(-)
delete mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base-1.14.0/viv-fb-Include-gstglfuncs.h-to-fix-cross-compilation.patch
delete mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.0.bbappend

diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base-1.14.0/viv-fb-Include-gstglfuncs.h-to-fix-cross-compilation.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base-1.14.0/viv-fb-Include-gstglfuncs.h-to-fix-cross-compilation.patch
deleted file mode 100644
index f98aea37..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base-1.14.0/viv-fb-Include-gstglfuncs.h-to-fix-cross-compilation.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From e66971cf516b371468b6712b05b9b82bed0c2a4a Mon Sep 17 00:00:00 2001
-From: Carlos Rafael Giani <dv@...>
-Date: Thu, 22 Mar 2018 07:56:28 +0100
-Subject: [PATCH] viv-fb: Include gstglfuncs.h to fix cross compilation errors
-Organization: O.S. Systems Software LTDA.
-
-Upstream-Status: Accepted [expected in 1.14.1]
-
-https://bugzilla.gnome.org/show_bug.cgi?id=794589
----
- gst-libs/gst/gl/gstglupload.c | 1 +
- gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c | 3 ++-
- 2 files changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c
-index feaf2f68e..5390cdf4b 100644
---- a/gst-libs/gst/gl/gstglupload.c
-+++ b/gst-libs/gst/gl/gstglupload.c
-@@ -40,6 +40,7 @@
-
- #if GST_GL_HAVE_VIV_DIRECTVIV
- #include <gst/allocators/gstphysmemory.h>
-+#include <gst/gl/gstglfuncs.h>
- #endif
-
- /**
-diff --git a/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c b/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-index 8515dc8ec..8d6fceb80 100644
---- a/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-+++ b/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-@@ -23,6 +23,7 @@
-
- #include "../gstgl_fwd.h"
- #include <gst/gl/gstglcontext.h>
-+#include <gst/gl/gstglfuncs.h>
-
- #include "gstglwindow_viv_fb_egl.h"
- #include "../gstglwindow_private.h"
-@@ -215,7 +216,7 @@ _free_set_render_rectangle (SetRenderRectangleData * render)
- }
-
- static void
--_calculate_viewport_coordinates(GstGLWindowVivFBEGL * window_egl,
-+_calculate_viewport_coordinates (GstGLWindowVivFBEGL * window_egl,
- GstVideoRectangle * req, GstVideoRectangle * result)
- {
- result->x = req->x;
---
-2.17.1
-
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.0.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.0.bbappend
deleted file mode 100644
index a94acf48..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.14.0.bbappend
+++ /dev/null
@@ -1,4 +0,0 @@
-# Copyright 2018 (C) O.S. Systems Software LTDA.
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
-
-SRC_URI += "file://viv-fb-Include-gstglfuncs.h-to-fix-cross-compilation.patch"
--
2.17.1


Edimax EW7811un + imx6dlsabresd + Krogoth

Mauro Ziliani
 

Hi all.


Anyone has experience with wifi dongle, imx6dlsabresd on kernel linux-imx 4.1.15?


Best regards,

  Mauro


Re: [yocto] [bitbake] fsl-image-xwayland DISTRO -- can't get rid of dev packages.

Khem Raj <raj.khem@...>
 

Hi Karim

On 6/15/18 6:29 AM, Karim ATIKI wrote:
Hi all,
I've created a custom image based on core-image.
It runs for an i.MX6 and i.MX8.
I've installed only Qt, gstreamer and xwayland stuff.
I've removed dev-pkgs, dbg-pkgs and staticdev-pkgs from IMAGE_FEATURES.
Finally, in the created image, ALL the dpg, dev packages have been installed, with tons of .h header files. static .a files etc.
I've tried everything and just can't figure out how to get rid of them.
Any idea ?
It seems that some dev packages are still being pulled in you might want to check output of

bitbake -g <image>

which will be in bunch of dotty files, that can show what is being pulled and why

Thanks.
K.


[bitbake] fsl-image-xwayland DISTRO -- can't get rid of dev packages.

Atiki Karim
 

Hi all,


I've created a custom image based on core-image.

It runs for an i.MX6 and i.MX8.

I've installed only Qt, gstreamer and xwayland stuff.


I've removed dev-pkgs, dbg-pkgs and staticdev-pkgs from IMAGE_FEATURES.


Finally, in the created image, ALL the dpg, dev packages have been installed, with tons of .h header files. static .a files etc.

I've tried everything and just can't figure out how to get rid of them.


Any idea ?


Thanks.


K.


Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

C.r. Guo <chunrong.guo@...>
 

Hello Tim,

Thank you for your commends.

You are right.

LS1012A rcw do not be swapped .

You can swap by the below command :

tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8

Rcw new code  will include auto swapped binaries for qspiboot during install target

 

I will submitted patch for new rcw code .

 

Thanks

Chunrong

 

From: Tim Hammer [mailto:tdhammer99@...]
Sent: 2018
615 2:45
To: C.r. Guo <chunrong.guo@...>
Cc: meta-freescale@...
Subject: Re: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

 

 

On Thu, Jun 14, 2018 at 5:29 AM, C.r. Guo <chunrong.guo@...> wrote:

Hello Tim,

Rcw has been swap .

You can see the below recipes.

 

https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/rcw/rcw_git.bb

 

do_install () {

    if [ ${M} = ls2088ardb ]; then

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install

    else

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

    fi

    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do

        if echo $f |grep -q "qspiboot_sben"; then

            continue

        fi

        f_swap=`echo $f |sed -e 's/qspiboot/qspiboot_swap/'`

        tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8

        mv -f $f_swap $f

    done

}

 

 

 

Thank you for the pointer. I might have seen that before, but never investigated why it is not working for me.

 

None of the LS1012A board RCW builds result in a file name with "qspiboot" in them. Therefore, this step is not done for the RCW files generated for these boards.

 

I see that many other LS1 boards get "qspiboot" in the file name (ls1021a*, ls1043a*, ls1046a*) but I have not figured out how/why.

 

The ls1012a* boards all have a qspi_endianess.rcw snippet with the same commands:

      .pbi

      write 0x550000, 0x000f400c

      .end

 

Is this supposed to take the place of the byte_swap script?

 

 

thanks

chunrong

 

 

From: meta-freescale-bounces@... [mailto:meta-freescale-bounces@...] On Behalf Of Tim Hammer
Sent: 2018
614 12:56
To: meta-freescale@...
Subject: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

 

 

The RCW/PBI file needs to be byte-swapped before being written into the QSPI flash.

 

Is there a reason why this step has not been included in the Yocto recipe that builds it?

 

Thanks!

--


.Tim



 

--


.Tim


Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

Tim Hammer <tdhammer99@...>
 


On Thu, Jun 14, 2018 at 5:29 AM, C.r. Guo <chunrong.guo@...> wrote:

Hello Tim,

Rcw has been swap .

You can see the below recipes.

 

https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/rcw/rcw_git.bb

 

do_install () {

    if [ ${M} = ls2088ardb ]; then

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install

    else

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

    fi

    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do

        if echo $f |grep -q "qspiboot_sben"; then

            continue

        fi

        f_swap=`echo $f |sed -e 's/qspiboot/qspiboot_swap/'`

        tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8

        mv -f $f_swap $f

    done

}

 

 


Thank you for the pointer. I might have seen that before, but never investigated why it is not working for me.

None of the LS1012A board RCW builds result in a file name with "qspiboot" in them. Therefore, this step is not done for the RCW files generated for these boards.

I see that many other LS1 boards get "qspiboot" in the file name (ls1021a*, ls1043a*, ls1046a*) but I have not figured out how/why.

The ls1012a* boards all have a qspi_endianess.rcw snippet with the same commands:
      .pbi
      write 0x550000, 0x000f400c
      .end

Is this supposed to take the place of the byte_swap script?
 

 

thanks

chunrong

 

 

From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-bounces@...] On Behalf Of Tim Hammer
Sent: 2018
614 12:56
To: meta-freescale@yoctoproject.org
Subject: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

 

 

The RCW/PBI file needs to be byte-swapped before being written into the QSPI flash.

 

Is there a reason why this step has not been included in the Yocto recipe that builds it?

 

Thanks!

--


.Tim




--

.Tim


Re: Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

C.r. Guo <chunrong.guo@...>
 

Hello Tim,

Rcw has been swap .

You can see the below recipes.

 

https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/rcw/rcw_git.bb

 

do_install () {

    if [ ${M} = ls2088ardb ]; then

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

        oe_runmake BOARDS=${M}_rev1.1  DESTDIR=${D}/boot/rcw/ install

    else

        oe_runmake BOARDS=${M} DESTDIR=${D}/boot/rcw/ install

    fi

    for f in `find ${D}/boot/rcw/ -name "*qspiboot*"`;do

        if echo $f |grep -q "qspiboot_sben"; then

            continue

        fi

        f_swap=`echo $f |sed -e 's/qspiboot/qspiboot_swap/'`

        tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl $f $f_swap 8

        mv -f $f_swap $f

    done

}

 

 

 

thanks

chunrong

 

 

From: meta-freescale-bounces@... [mailto:meta-freescale-bounces@...] On Behalf Of Tim Hammer
Sent: 2018
614 12:56
To: meta-freescale@...
Subject: [meta-freescale] Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

 

 

The RCW/PBI file needs to be byte-swapped before being written into the QSPI flash.

 

Is there a reason why this step has not been included in the Yocto recipe that builds it?

 

Thanks!

--


.Tim


[PATCH] qemu-qoriq: add recipes

chunrong.guo@...
 

From: Chunrong Guo <chunrong.guo@...>

*include the following changes:
6c297a7 - vfio fsl-mc: Expose DPIO cacheable region as cacheable
8e929a8 - fsl-mc: mc-bus device fdt node creation
4be2ad9 - fsl-mc: Add APIs to provide root mc-portal region
b1abcf2 - fsl-mc: Add API to provide mc-portals region
22d303a - vfio fsl-mc: Configure and setup irqfd
cfc1b9a - vfio fsl-mc: Enable DPMCP emulation
c5b28d1 - vfio fsl-mc: Add support to close dpmcp command interface
56353d9 - vfio fsl-mc: Support non dprc/dpmcp command interface on dpmcp
12a9dae - vfio fsl-mc: Add support for dprc command interface on dpmcp
a24861b - vfio fsl-mc: Add support to open dpmcp command interface
ae9efbb - vfio fsl-mc: forward non-emulated mc commands to VFIO
913ab98 - vfio fsl-mc: Add support of get_obj_irq mc commands
9883a03 - vfio fsl-mc: Add support of set obj_irq mc commands
57db3b4 - vfio fsl-mc: Add support of get_irq mc commands
c87c8c1 - vfio fsl-mc: Add support of set_irq mc commands
35413a8 - vfio fsl-mc: Add support of get_obj_region command
edca25c - vfio-fsl-mc: Add support of dprc get-attr command
74ca7d2 - vfio-fsl-mc: Add support of dprc open/close command
bb895ff - vfio-fsl-mc: Add framework for handling mc-portal commands
eb51475 - vfio fsl-mc: Scan dprc container and realize child devices
82a1b97 - vfio-fsl-mc: Register mc-device regions with mc-bus
f2a56a1 - vfio fsl-mc: add support for non-dprc device
c36e7f6 - vfio fsl-mc: Add nested dprc support
be171ec - vfio fsl-mc: framework to support fsl-mc-bus in vfio
16010da - vfio fsl-mc: Sync linux header for fsl-mc device
be260fc - fsl-mc: add interfaces to set/get msi messages
f9756ce - fsl-mc: Add mc-bus-devices region registration interface
5ae0227 - vfio-fsl-mc: Initialize fsl-mc bus devices device-id
9bdfa45 - fsl-mc: Add mc-bus-devices registration interface
c996be1 - fsl-mc: define device-id map for mc-bus devices

Signed-off-by: Chunrong Guo <chunrong.guo@...>
---
recipes-devtools/qemu/qemu-qoriq/memfd.patch | 41 +++++++++++++
recipes-devtools/qemu/qemu-qoriq/powerpc_rom.bin | Bin 0 -> 4096 bytes
recipes-devtools/qemu/qemu-qoriq/run-ptest | 10 ++++
recipes-devtools/qemu/qemu-qoriq_git.bb | 72 +++++++++++++++++++++++
4 files changed, 123 insertions(+)
create mode 100644 recipes-devtools/qemu/qemu-qoriq/memfd.patch
create mode 100644 recipes-devtools/qemu/qemu-qoriq/powerpc_rom.bin
create mode 100644 recipes-devtools/qemu/qemu-qoriq/run-ptest
create mode 100644 recipes-devtools/qemu/qemu-qoriq_git.bb

diff --git a/recipes-devtools/qemu/qemu-qoriq/memfd.patch b/recipes-devtools/qemu/qemu-qoriq/memfd.patch
new file mode 100644
index 0000000..d9e7a45
--- /dev/null
+++ b/recipes-devtools/qemu/qemu-qoriq/memfd.patch
@@ -0,0 +1,41 @@
+From d60ecdd94f4054aa0ec615824d5efdb4cebc7db9 Mon Sep 17 00:00:00 2001
+From: Ting Liu <ting.liu@...>
+Date: Thu, 19 Apr 2018 11:47:16 +0800
+Subject: [PATCH] memfd
+
+---
+ configure | 2 +-
+ util/memfd.c | 4 +---
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/configure b/configure
+index be4d326..cb5197c 100755
+--- a/configure
++++ b/configure
+@@ -3735,7 +3735,7 @@ fi
+ # check if memfd is supported
+ memfd=no
+ cat > $TMPC << EOF
+-#include <sys/memfd.h>
++#include <sys/mman.h>
+
+ int main(void)
+ {
+diff --git a/util/memfd.c b/util/memfd.c
+index 4571d1a..412e94a 100644
+--- a/util/memfd.c
++++ b/util/memfd.c
+@@ -31,9 +31,7 @@
+
+ #include "qemu/memfd.h"
+
+-#ifdef CONFIG_MEMFD
+-#include <sys/memfd.h>
+-#elif defined CONFIG_LINUX
++#if defined CONFIG_LINUX && !defined CONFIG_MEMFD
+ #include <sys/syscall.h>
+ #include <asm/unistd.h>
+
+--
+2.7.4
+
diff --git a/recipes-devtools/qemu/qemu-qoriq/powerpc_rom.bin b/recipes-devtools/qemu/qemu-qoriq/powerpc_rom.bin
new file mode 100644
index 0000000000000000000000000000000000000000..c4044296c51529878f5d2a46230949d09ef1d4e2
GIT binary patch
literal 4096
zcmeHJQEMDk6h4#Pn8Z}5VUd7UHb$_7oo16ZWvl_Wq7bx}RV;`Ib~1CD44Ivo&djz(
z20DZ^Sm;B1^P!YL$|?xr50Dxx<W1-=Nb#jAB1A;VL+N<VoqKm?mo4n8m<wmm`OZ1_
zyXT&{cV+<&$6*H!JMdrW!2M?){{b*MgY{|vBVVIFj`A$ZQ4}1?4fK1d-SMjkR6spQ
z_GQ*+=6p}1edN8j-n~$%zt8GvfO5${M!BlzGeJ!LBFYOW#4B+{V8!s70opWVtXD3@
zDYsT7E6WA+<uUG+56Lw@`umUh__@Kqf6n8Nx^M%7WfVF8S{METF%22NokAEuO`<ed
z!}V9WmvV;4>hcYvi`OX{&F6WBRnw|kl?KhhA=dzmNj!qa7`0aw&RpKS@@VUVz<iB3
zMpQ$|xW4%zN%nJ?dQI!dwdlD}J%p)_T~Q;N05Shf4N8(@M;Ibka{YvEauGg?vIjtA
zbqtD8FaGQiqq(Cfl+!&ZM!lezVg)+I$)>XgU6}SL_e61d_GCWQDdT+4h>0J6J|vY6
z?n%vooL{&VPxp1(X12&CZmJJ@_@6`fnCE!)^YzN9>I}3^S{w(>9Y>+QAbsI`)YLe%
zhsb^kg>uN3pwJm3OoIDU=pIs8v?nECzNOo>lb47s&EaP<^|yU5q9tpZ%W9g#!{`Jv
zr|0H!wb2^S$51#BeALr<I95i*YdC^h)=oK8XTDy_e`39s6Efd#dZB8#PUySXQy=qb
zi2XtSc~LLG(q`vgB_qvg-;s)C8L6AkMN@f2<h+bp)Cgs?d9P4!Wp?qtu*JH{JmPj=
z9X5+MwRTe6R?5lm8zJYFbLBH3ET5Y^zkF@UH=8!Po3GplAFV<2I`~fY=BxF=C+}Vd
z-|60b7yIC&+PdqT)q3&`#C`C|bJS5^Z@xl5eDtl8^${oMHJ06gIf&9&36H?r)A;V4
z#+S@==jEcgSd;QG&rb6RyBX$`vA~Dw|Jwn1zD7)T#WL6@;i|`=;hOjXG2Diyht{Ia
zU{W_tp9O(xFxw7bGO#{l!uHt`7`AJysF!?pxyc-36&9O84uw{OE$RWwxh&Ptjb*0V
zmcvvc1M`U<9+ne0ptr1=y`Obs#c{9N%v@sN>&_Cx0<&mZafTbZr#AFp1v*?A3Nlm0
zZzgj>xMKNXQ@2&xYBnqPS-@>HKdpGnx?^IqQWS)y+YFH+ToxY7u|nTegHZRwP8V}b
zSae+sEb;%K*M1#ny}qNsYkLXA5B@1?u>#SJLhH*7Xlm<8f;#-X1y`fH6W_i8$-egB
zukYdwC~E6a_+TB*MCN`S^Bz_3)<>=KiD-M`L~SkEkMBZtb6dHCdSP>WD2n&sT(mn?
z+PpV(Q@b~GE4~eH#;xQaDju($jbT{3o+O+D*Tz`w>>7;I`r2-i+`I$ItrjS_{sHo6
zTN_Ym=RSmE(Ze$(%wLGV!aq8Lpw!l&igq#Dm@1(jj;@#MaSO(y^{Eo=O`A-R1mJvJ
aoLIp7h<sDgFE5ple~0izly{QHzx@jx&XA}8

literal 0
HcmV?d00001

diff --git a/recipes-devtools/qemu/qemu-qoriq/run-ptest b/recipes-devtools/qemu/qemu-qoriq/run-ptest
new file mode 100644
index 0000000..2206b31
--- /dev/null
+++ b/recipes-devtools/qemu/qemu-qoriq/run-ptest
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+#This script is used to run qemu test suites
+#
+
+ptestdir=$(dirname "$(readlink -f "$0")")
+export SRC_PATH=$ptestdir
+
+cd $ptestdir/tests
+make -f Makefile.include -k runtest-TESTS | sed '/: OK/ s/^/PASS: /g'
diff --git a/recipes-devtools/qemu/qemu-qoriq_git.bb b/recipes-devtools/qemu/qemu-qoriq_git.bb
new file mode 100644
index 0000000..7423b54
--- /dev/null
+++ b/recipes-devtools/qemu/qemu-qoriq_git.bb
@@ -0,0 +1,72 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+require recipes-devtools/qemu/qemu.inc
+
+inherit ptest
+
+RDEPENDS_${PN}-ptest = "bash make"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
+ file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
+
+SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/qemu;nobranch=1 \
+ file://powerpc_rom.bin \
+ file://run-ptest \
+ file://memfd.patch \
+ "
+
+SRCREV = "6c297a7ddd355d499ddd31353a763d57a092f851"
+
+S = "${WORKDIR}/git"
+
+COMPATIBLE_HOST_mipsarchn32 = "null"
+COMPATIBLE_HOST_mipsarchn64 = "null"
+
+PROVIDES = "qemu"
+
+python() {
+ pkgs = d.getVar('PACKAGES', True).split()
+ for p in pkgs:
+ if 'qemu-qoriq' in p:
+ d.appendVar("RPROVIDES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+ d.appendVar("RCONFLICTS_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+ d.appendVar("RREPLACES_%s" % p, p.replace('qemu-qoriq', 'qemu'))
+}
+
+PPC_OECONF = '--enable-fdt --enable-kvm --with-system-pixman --disable-werror'
+EXTRA_OECONF_qoriq-arm64 = "--prefix=${prefix} --target-list=aarch64-softmmu --enable-fdt --enable-kvm --with-system-pixman --disable-werror"
+EXTRA_OECONF_qoriq-arm = "--prefix=${prefix} --target-list=arm-softmmu --enable-fdt --enable-kvm --with-system-pixman --disable-werror"
+EXTRA_OECONF_e5500-64b = "--prefix=${prefix} --target-list=ppc64-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_e6500-64b = "--prefix=${prefix} --target-list=ppc64-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_e6500 = "--prefix=${prefix} --target-list=ppc64-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_e5500 = "--prefix=${prefix} --target-list=ppc64-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_e500v2 = "--prefix=${prefix} --target-list=ppc-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_e500mc = "--prefix=${prefix} --target-list=ppc-softmmu ${PPC_OECONF}"
+
+DISABLE_STATIC = ""
+
+do_install_append() {
+ # Prevent QA warnings about installed ${localstatedir}/run
+ if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
+ install -Dm 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
+}
+
+do_compile_ptest() {
+ make buildtest-TESTS
+}
+
+do_install_ptest() {
+ cp -rL ${B}/tests ${D}${PTEST_PATH}
+ find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {}
+
+ cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests
+ # Don't check the file genreated by configure
+ sed -i -e '/wildcard config-host.mak/d' \
+ -e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include
+}
+
+INSANE_SKIP_${PN} += "already-stripped"
+FILES_${PN} += "/usr/share/qemu/* /usr/var/*"
+
+# FIXME: Avoid WARNING due missing patch for native/nativesdk
+BBCLASSEXTEND = ""
--
2.7.4


Layerscape LS1012A RCW/PBI (PBL image) byte-swapping

Tim Hammer <tdhammer99@...>
 


The RCW/PBI file needs to be byte-swapped before being written into the QSPI flash.

Is there a reason why this step has not been included in the Yocto recipe that builds it?

Thanks!
--

.Tim


[PATCH] restool: add dtc to rdepends

chunrong.guo@...
 

From: Chunrong Guo <chunrong.guo@...>

Signed-off-by: Chunrong Guo <chunrong.guo@...>
---
recipes-dpaa2/restool/restool_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-dpaa2/restool/restool_git.bb b/recipes-dpaa2/restool/restool_git.bb
index a1266f6..00a79fb 100644
--- a/recipes-dpaa2/restool/restool_git.bb
+++ b/recipes-dpaa2/restool/restool_git.bb
@@ -2,7 +2,7 @@ SUMMARY = "DPAA2 Resource Manager Tool"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=ec8d84e9cd4de287e290275d09db27f0"

-RDEPENDS_${PN} += "bash"
+RDEPENDS_${PN} += "bash dtc"

SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/restool;nobranch=1 \
file://0001-restool-fix-build-error-with-gcc7.patch"
--
2.7.4


How to enable OpenVG with meta-qt5 in QWebEngine?

Cyril Franceschini <cyril.franceschini@...>
 

Hi,

I would like to be able to use SVG on web pages displayed with QWebEngine (Chromium engine) from meta-qt5 on the UDOO Neo board (i.MX6SoloX).
Now it uses more than 70% of the CPU to process and the CPU temperature reaches 85°C (185 °F)!

My first try is to enable OpenVG by adding this line to my distro.conf file:

    PACKAGECONFIG_append_pn-qtbase = " gles2 openvg"

Unfortunately that didn't work.

Regards,
Cyril Franceschini


[Documentation][PATCH] Update NXP support board list to 2.5 (sumo)

chunrong.guo@...
 

From: Chunrong Guo <chunrong.guo@...>

*Update NXP machine list

*Update u-boot-qoriq version

*Update linux-qoriq verison

Signed-off-by: Chunrong Guo <chunrong.guo@...>
---
release-notes/source/bootloader-default.inc | 44 ++++++++++++++++------
release-notes/source/linux-default.inc | 44 ++++++++++++++++------
release-notes/source/machine-list.inc | 20 ++++++++++
release-notes/source/machines-with-maintainers.inc | 33 +++++++++++++---
4 files changed, 112 insertions(+), 29 deletions(-)

diff --git a/release-notes/source/bootloader-default.inc b/release-notes/source/bootloader-default.inc
index c1953b1..4526214 100644
--- a/release-notes/source/bootloader-default.inc
+++ b/release-notes/source/bootloader-default.inc
@@ -44,18 +44,38 @@ imx7d-pico u-boot-fslc v2017.11+git
imx7dsabresd u-boot-fslc v2017.11+git
imx7s-warp u-boot-fslc v2017.11+git
imx7ulpevk u-boot-fslc v2017.11+git
-ls1012afrdm u-boot-qoriq 2017.09+fslgit+fsl
-ls1012afrdm-32b u-boot-qoriq 2017.09+fslgit+fsl
-ls1012ardb u-boot-qoriq 2017.09+fslgit+fsl
-ls1012ardb-32b u-boot-qoriq 2017.09+fslgit+fsl
-ls1021atwr u-boot-qoriq 2017.09+fslgit+fsl
-ls1043ardb u-boot-qoriq 2017.09+fslgit+fsl
-ls1043ardb-32b u-boot-qoriq 2017.09+fslgit+fsl
-ls1046ardb u-boot-qoriq 2017.09+fslgit+fsl
-ls1046ardb-32b u-boot-qoriq 2017.09+fslgit+fsl
-ls1088ardb u-boot-qoriq 2017.09+fslgit+fsl
-ls2080ardb u-boot-qoriq 2017.09+fslgit+fsl
-ls2088ardb u-boot-qoriq 2017.09+fslgit+fsl
+ls1012afrdm u-boot-qoriq 2017.12+fslgit+fsl
+ls1012afrdm-32b u-boot-qoriq 2017.12+fslgit+fsl
+ls1012ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls1012ardb-32b u-boot-qoriq 2017.12+fslgit+fsl
+ls1021atwr u-boot-qoriq 2017.12+fslgit+fsl
+ls1043ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls1043ardb-32b u-boot-qoriq 2017.12+fslgit+fsl
+ls1046ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls1046ardb-32b u-boot-qoriq 2017.12+fslgit+fsl
+ls1088ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls2080ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls2088ardb u-boot-qoriq 2017.12+fslgit+fsl
+ls1043ardb-be u-boot-qoriq 2017.12+fslgit+fsl
+ls1046ardb-be u-boot-qoriq 2017.12+fslgit+fsl
+ls1088ardb-be u-boot-qoriq 2017.12+fslgit+fsl
+ls2088ardb-be u-boot-qoriq 2017.12+fslgit+fsl
+mpc8548cds u-boot-qoriq 2017.12+fslgit+fsl
+p1020rdb u-boot-qoriq 2017.12+fslgit+fsl
+p2020rdb u-boot-qoriq 2017.12+fslgit+fsl
+p2041rdb u-boot-qoriq 2017.12+fslgit+fsl
+p3041ds u-boot-qoriq 2017.12+fslgit+fsl
+p4080ds u-boot-qoriq 2017.12+fslgit+fsl
+p5040ds-64b u-boot-qoriq 2017.12+fslgit+fsl
+p5040ds u-boot-qoriq 2017.12+fslgit+fsl
+t1024rdb-64b u-boot-qoriq 2017.12+fslgit+fsl
+t1024rdb u-boot-qoriq 2017.12+fslgit+fsl
+t1042d4rdb-64b u-boot-qoriq 2017.12+fslgit+fsl
+t1042d4rdb u-boot-qoriq 2017.12+fslgit+fsl
+t2080rdb-64b u-boot-qoriq 2017.12+fslgit+fsl
+t2080rdb u-boot-qoriq 2017.12+fslgit+fsl
+t4240rdb-64b u-boot-qoriq 2017.12+fslgit+fsl
+t4240rdb u-boot-qoriq 2017.12+fslgit+fsl
m28evk u-boot-fslc v2017.11+git
m53evk u-boot-fslc v2017.11+git
nitrogen6sx u-boot-fslc v2017.11+git
diff --git a/release-notes/source/linux-default.inc b/release-notes/source/linux-default.inc
index 5f24d0c..cfb0aeb 100644
--- a/release-notes/source/linux-default.inc
+++ b/release-notes/source/linux-default.inc
@@ -44,18 +44,38 @@ imx7d-pico linux-fslc 4.14+git
imx7dsabresd linux-fslc-imx 4.1-2.0.x+git
imx7s-warp linux-warp7 4.1-4.1-1.0.x-imx-warp7
imx7ulpevk linux-imx 4.9.11-1.0.0
-ls1012afrdm linux-qoriq 4.9
-ls1012afrdm-32b linux-qoriq 4.9
-ls1012ardb linux-qoriq 4.9
-ls1012ardb-32b linux-qoriq 4.9
-ls1021atwr linux-qoriq 4.9
-ls1043ardb linux-qoriq 4.9
-ls1043ardb-32b linux-qoriq 4.9
-ls1046ardb linux-qoriq 4.9
-ls1046ardb-32b linux-qoriq 4.9
-ls1088ardb linux-qoriq 4.9
-ls2080ardb linux-qoriq 4.9
-ls2088ardb linux-qoriq 4.9
+ls1012afrdm linux-qoriq 4.14
+ls1012afrdm-32b linux-qoriq 4.14
+ls1012ardb linux-qoriq 4.14
+ls1012ardb-32b linux-qoriq 4.14
+ls1021atwr linux-qoriq 4.14
+ls1043ardb linux-qoriq 4.14
+ls1043ardb-32b linux-qoriq 4.14
+ls1046ardb linux-qoriq 4.14
+ls1046ardb-32b linux-qoriq 4.14
+ls1088ardb linux-qoriq 4.14
+ls2080ardb linux-qoriq 4.14
+ls2088ardb linux-qoriq 4.14
+ls1043ardb-be linux-qoriq 4.14
+ls1046ardb-be linux-qoriq 4.14
+ls1088ardb-be linux-qoriq 4.14
+ls2088ardb-be linux-qoriq 4.14
+mpc8548cds linux-qoriq 4.9
+p1020rdb linux-qoriq 4.9
+p2020rdb linux-qoriq 4.9
+p2041rdb linux-qoriq 4.9
+p3041ds linux-qoriq 4.9
+p4080ds linux-qoriq 4.9
+p5040ds-64b linux-qoriq 4.9
+p5040ds linux-qoriq 4.9
+t1024rdb-64b linux-qoriq 4.9
+t1024rdb linux-qoriq 4.9
+t1042d4rdb-64b linux-qoriq 4.9
+t1042d4rdb linux-qoriq 4.9
+t2080rdb-64b linux-qoriq 4.9
+t2080rdb linux-qoriq 4.9
+t4240rdb-64b linux-qoriq 4.9
+t4240rdb linux-qoriq 4.9
m28evk linux-fslc 4.14+git
m53evk linux-denx 3.9-master
nitrogen6sx linux-boundary 4.1.15-2.0.0-ga+yocto
diff --git a/release-notes/source/machine-list.inc b/release-notes/source/machine-list.inc
index 15782c7..cf1aeea 100644
--- a/release-notes/source/machine-list.inc
+++ b/release-notes/source/machine-list.inc
@@ -56,6 +56,26 @@ ls1046ardb-32b NXP LS1046ARDB LSCH
ls1088ardb NXP LS1088ARDB LSCH3 meta-freescale
ls2080ardb NXP LS2080ARDB board LSCH3 meta-freescale
ls2088ardb NXP LS2088ARDB LSCH3 meta-freescale
+ls1043ardb-be NXP LS1043ARDB big endian LSCH2 meta-freescale
+ls1046ardb-be NXP LS1046ARDB big endian LSCH2 meta-freescale
+ls1088ardb-be NXP LS1088ARDB big endian LSCH3 meta-freescale
+ls2088ardb-be NXP LS2088ARDB big endian LSCH3 meta-freescale
+mpc8548cds NXP MPC8548CDS mpc8548 meta-freescale
+p1020rdb NXP P1020RDB p1020 meta-freescale
+p2020rdb NXP P2020RDB p2020 meta-freescale
+p2041rdb NXP P2041RDB p2041 meta-freescale
+p3041ds NXP P3041DS p3041 meta-freescale
+p4080ds NXP P4080DS p4080 meta-freescale
+p5040ds-64b NXP P5040DS-64B p5040 meta-freescale
+p5040ds NXP P5040DS p5040 meta-freescale
+t1024rdb-64b NXP T1024RDB-64B t1024 meta-freescale
+t1024rdb NXP T1024RDB t1024 meta-freescale
+t1042d4rdb-64b NXP T1042D4RDB-64B t1042 meta-freescale
+t1042d4rdb NXP T1042D4RDB t1042 meta-freescale
+t2080rdb-64b NXP T2080RDB-64B t2080 meta-freescale
+t2080rdb NXP T2080RDB t2080 meta-freescale
+t4240rdb-64b NXP T4240RDB-64B t4240 meta-freescale
+t4240rdb NXP T4240RDB t4240 meta-freescale
m28evk DENX M28 SoM Evaluation Kit i.MX28 meta-freescale-3rdparty
m53evk DENX M53 SoM Evaluation Kit i.MX53 meta-freescale-3rdparty
nitrogen6sx Boundary Devices Nitrogen6SX i.MX6SX meta-freescale-3rdparty
diff --git a/release-notes/source/machines-with-maintainers.inc b/release-notes/source/machines-with-maintainers.inc
index 92b7c86..b4a89f3 100644
--- a/release-notes/source/machines-with-maintainers.inc
+++ b/release-notes/source/machines-with-maintainers.inc
@@ -39,15 +39,38 @@ imx7d-pico IMX7D-PICO
imx7dsabresd NXP i.MX7D SABRE Smart Device
imx7s-warp WaRP7
imx7ulpevk NXP i.MX7ULP Evaluation Kit
-ls1012afrdm-32b NXP LS1012AFRDM board
-ls1012ardb NXP LS1012ARDB board
-ls1021atwr NXP LS1021ATWR board
-ls1043ardb NXP LS1043ARDB board
+ls1012afrdm-32b NXP LS1012AFRDM-32B
+ls1012afrdm NXP LS1012AFRDM
+ls1012ardb NXP LS1012ARDB
+ls1012ardb-32b NXP LS1012ARDB-32B
+ls1021atwr NXP LS1021ATWR
+ls1043ardb NXP LS1043ARDB
ls1043ardb-32b NXP LS1043ARDB-32B
ls1046ardb NXP LS1046ARDB
+ls1046ardb-32b NXP LS1046ARDB-32B
ls1088ardb NXP LS1088ARDB
-ls2080ardb NXP LS2080ARDB board
+ls2080ardb NXP LS2080ARDB
ls2088ardb NXP LS2088ARDB
+ls1043ardb-be NXP LS1043ARDB big endian
+ls1046ardb-be NXP LS1046ARDB big endian
+ls1088ardb-be NXP LS1088ARDB big endian
+ls2088ardb-be NXP LS2088ARDB big endian
+mpc8548cds NXP MPC8548CDS
+p1020rdb NXP P1020RDB
+p2020rdb NXP P2020RDB
+p2041rdb NXP P2041RDB
+p3041ds NXP P3041DS
+p4080ds NXP P4080DS
+p5040ds-64b NXP P5040DS-64B
+p5040ds NXP P5040DS
+t1024rdb-64b NXP T1024RDB-64B
+t1024rdb NXP T1024RDB
+t1042d4rdb-64b NXP T1042D4RDB-64B
+t1042d4rdb NXP T1042D4RDB
+t2080rdb-64b NXP T2080RDB-64B
+t2080rdb NXP T2080RDB
+t4240rdb-64b NXP T4240RDB-64B
+t4240rdb NXP T4240RDB
nitrogen6sx Boundary Devices Nitrogen6SX
nitrogen6x Boundary Devices Nitrogen6X
nitrogen6x-lite Boundary Devices Nitrogen6X Lite
--
2.7.4


[PATCH 17/17] imx-test: Update to version 7.0

Otavio Salvador
 

From: Fabio Berton <fabio.berton@...>

- Remove .inc file to use only one .bb file
- Add alsa-lib to DEPENDS
- Add patch to use include path when compile sources from test directory
- Drop unused patch
- Update O.S. Systems Software Copyright

Signed-off-by: Fabio Berton <fabio.berton@...>
Signed-off-by: Otavio Salvador <otavio@...>
---

recipes-bsp/imx-test/imx-test.inc | 72 --------
...efiles-to-handle-library-dependencie.patch | 170 ------------------
...efile-Add-include-path-to-CC-command.patch | 27 +++
recipes-bsp/imx-test/imx-test_git.bb | 84 ++++++++-
4 files changed, 104 insertions(+), 249 deletions(-)
delete mode 100644 recipes-bsp/imx-test/imx-test.inc
delete mode 100644 recipes-bsp/imx-test/imx-test/0001-imx-test-Fix-Makefiles-to-handle-library-dependencie.patch
create mode 100644 recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch

diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
deleted file mode 100644
index 36068892..00000000
--- a/recipes-bsp/imx-test/imx-test.inc
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright (C) 2012-2016 O.S. Systems Software LTDA.
-# Copyright (C) 2015 Freescale Semiconductor
-# Copyright 2017 NXP
-
-SUMMARY = "Test programs for IMX BSP"
-DESCRIPTION = "Unit tests for the IMX BSP"
-SECTION = "base"
-
-DEPENDS_mx6q = "virtual/kernel imx-lib virtual/imxvpu"
-DEPENDS_mx6dl = "virtual/kernel imx-lib virtual/imxvpu"
-DEPENDS_mx6sl = "virtual/kernel imx-lib"
-DEPENDS_mx6sll = "virtual/kernel imx-lib"
-DEPENDS_mx6sx = "virtual/kernel imx-lib"
-DEPENDS_mx6ul = "virtual/kernel imx-lib"
-DEPENDS_mx7d = "virtual/kernel imx-lib"
-DEPENDS_mx7ulp = "virtual/kernel imx-lib"
-
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-
-PE = "1"
-
-inherit module-base
-
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-
-PLATFORM_mx6q = "IMX6Q"
-PLATFORM_mx6dl = "IMX6Q"
-PLATFORM_mx6sl = "IMX6SL"
-PLATFORM_mx6sll = "IMX6SL"
-PLATFORM_mx6sx = "IMX6SX"
-PLATFORM_mx6ul = "IMX6UL"
-PLATFORM_mx7d = "IMX7D"
-PLATFORM_mx7ulp = "IMX7D"
-
-PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
-PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
-
-do_compile() {
- CFLAGS="${TOOLCHAIN_OPTIONS}"
- oe_runmake V=1 VERBOSE='' \
- CROSS_COMPILE=${TARGET_PREFIX} \
- INC="-I${STAGING_INCDIR} \
- -I${S}/include \
- -I${STAGING_KERNEL_BUILDDIR}/include/uapi \
- -I${STAGING_KERNEL_BUILDDIR}/include \
- -I${STAGING_KERNEL_DIR}/include/uapi \
- -I${STAGING_KERNEL_DIR}/include \
- -I${STAGING_KERNEL_DIR}/arch/arm/include \
- -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
- -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include" \
- CC="${CC} -L${STAGING_LIBDIR} ${LDFLAGS}" \
- LINUXPATH=${STAGING_KERNEL_DIR} \
- KBUILD_OUTPUT=${STAGING_KERNEL_BUILDDIR} \
- PLATFORM=${PLATFORM}
-}
-
-do_install() {
- oe_runmake DESTDIR=${D}/unit_tests \
- PLATFORM=${PLATFORM} \
- install
-
- if [ -e ${WORKDIR}/clocks.sh ]; then
- install -m 755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
- fi
-}
-
-FILES_${PN} += "/unit_tests"
-RDEPENDS_${PN} = "bash"
-
-FILES_${PN}-dbg += "/unit_tests/.debug"
diff --git a/recipes-bsp/imx-test/imx-test/0001-imx-test-Fix-Makefiles-to-handle-library-dependencie.patch b/recipes-bsp/imx-test/imx-test/0001-imx-test-Fix-Makefiles-to-handle-library-dependencie.patch
deleted file mode 100644
index 417e29c3..00000000
--- a/recipes-bsp/imx-test/imx-test/0001-imx-test-Fix-Makefiles-to-handle-library-dependencie.patch
+++ /dev/null
@@ -1,170 +0,0 @@
-From 251612f51136568331d3cf3826bf08c3f70d7eee Mon Sep 17 00:00:00 2001
-From: Lauren Post <lauren.post@...>
-Date: Wed, 24 Aug 2016 14:54:33 -0500
-Subject: [PATCH] imx-test: Fix Makefiles to handle library dependencies
-
-Applications with library dependencies need different handling to pull in both
-CFLAGS and LDFLAGS. Without these changes the library dependencies are not
-linked in correctly causing build breaks.
-
-Signed-off-by: Lauren Post <lauren.post@...>
----
- test/mxc_cec_test/Makefile | 13 ++++++++++---
- test/mxc_i2c_slave_test/Makefile | 12 ++++++++++--
- test/mxc_mpeg4_enc_test/Makefile | 18 ++++++------------
- test/pxp_lib_test/Makefile | 16 ++++++++++------
- test/pxp_v4l2_test/Makefile | 19 ++++++++++++++++---
- 5 files changed, 52 insertions(+), 26 deletions(-)
-
-diff --git a/test/mxc_cec_test/Makefile b/test/mxc_cec_test/Makefile
-index 8327784..9d7ee9e 100755
---- a/test/mxc_cec_test/Makefile
-+++ b/test/mxc_cec_test/Makefile
-@@ -2,11 +2,18 @@
- # Makefile for MediaLB driver test app.
- #
- INC += -I$(LINUXPATH)/include
--CFLAGS += -lpthread -lcec -lrt
-
--OBJS = $(OBJDIR)/mxc_cec_test.out
-+TARGET = $(OBJDIR)/mxc_cec_test.out
-+OBJ = mxc_cec_test.o
-+
-+all : $(TARGET)
-+
-+LDFLAGS += -lpthread -lcec -lrt -lstdc++ -pthread
-+
-+$(TARGET):$(OBJ)
-+ $(CC) -o $(TARGET) $(OBJ) $(LDFLAGS) -Os
-+ $(STRIP) $(TARGET)
-
--all : $(OBJS)
-
- .PHONY: clean
- clean :
-diff --git a/test/mxc_i2c_slave_test/Makefile b/test/mxc_i2c_slave_test/Makefile
-index 07d0ff1..2b6b8ef 100644
---- a/test/mxc_i2c_slave_test/Makefile
-+++ b/test/mxc_i2c_slave_test/Makefile
-@@ -2,9 +2,17 @@
-
- CFLAGS += -lpthread
-
--OBJS = $(OBJDIR)/mxc_i2c_slave_test.out
-+TARGET = $(OBJDIR)/mxc_i2c_slave_test.out
-
--all : $(OBJS)
-+all : $(TARGET)
-+
-+LDFLAGS += -lpthread -lstdc++ -pthread
-+
-+OBJ = mxc_i2c_slave_test.o
-+
-+$(TARGET):$(OBJ)
-+ $(CC) -o $(TARGET) $(OBJ) $(LDFLAGS) -Os
-+ $(STRIP) $(TARGET)
-
- .PHONY: clean
- clean :
-diff --git a/test/mxc_mpeg4_enc_test/Makefile b/test/mxc_mpeg4_enc_test/Makefile
-index 842ab58..1de4115 100644
---- a/test/mxc_mpeg4_enc_test/Makefile
-+++ b/test/mxc_mpeg4_enc_test/Makefile
-@@ -6,27 +6,21 @@ CFLAGS += -I . -lpthread
-
- EXES = $(OBJDIR)/cam2mpeg4.out
- SCRIPTS = $(OBJDIR)/autorun-hantro.sh
--ifeq "$(PLATFORM)" "MXC30030EVB"
--LIBS = libmpeg4enc_cif.a
--TEMP_EXE = $(OBJDIR)/cam2mpeg4_cif.out
--OBJS = $(OBJDIR)/cam2mpeg4_cif.o
--else
- LIBS = libmpeg4enc_vga.a
--TEMP_EXE = $(OBJDIR)/cam2mpeg4_vga.out
--OBJS = $(OBJDIR)/cam2mpeg4_vga.o
--endif
-+OBJS = cam2mpeg4_vga.o
-
- all: $(EXES) $(SCRIPTS)
-
--$(EXES): $(TEMP_EXE)
-- @mv $< $@
-+LDFLAGS += -lpthread
-+
-+$(EXES): $(OBJS)
-+ $(CC) -o $(EXES) $(OBJS) libmpeg4enc_vga.a $(LDFLAGS) -Os
-+ $(STRIP) $(EXES)
-
- .PHONY: clean
- clean:
- rm -f $(EXES) $(OBJS) $(SCRIPTS)
-
--$(TEMP_EXE): $(LIBS)
--
- #
- # include the Rules
- #
-diff --git a/test/pxp_lib_test/Makefile b/test/pxp_lib_test/Makefile
-index 978bea5..c73e4c2 100644
---- a/test/pxp_lib_test/Makefile
-+++ b/test/pxp_lib_test/Makefile
-@@ -1,13 +1,16 @@
- SRCS = pxp_test.c utils.c
--CFLAGS += -lpxp -lpthread
-
--OBJS = $(OBJDIR)/pxp_test.out \
-- $(OBJDIR)/autorun-pxp.sh
--$(OBJS): $(SRCS)
-- mkdir -p $(OBJDIR)
-- $(VERBOSE) $(CC) -g $(INC) $(CFLAGS) $^ $(LIBS) -o $@
-+TARGET = $(OBJDIR)/pxp_test.out
-
--all: $(OBJS)
-+all: $(TARGET)
-+
-+OBJ = pxp_test.o utils.o
-+
-+LDFLAGS += -pthread -lpxp -lstdc++ -pthread
-+
-+$(OBJDIR)/pxp_test.out: $(OBJ)
-+ $(CC) -o $(OBJDIR)/pxp_test.out $(OBJ) $(LDFLAGS) -Os
-+ $(STRIP) $(OBJDIR)/pxp_test.out
-
- .PHONY: clean
- clean:
-diff --git a/test/pxp_v4l2_test/Makefile b/test/pxp_v4l2_test/Makefile
-index 8f72e63..da83f8a 100644
---- a/test/pxp_v4l2_test/Makefile
-+++ b/test/pxp_v4l2_test/Makefile
-@@ -1,12 +1,25 @@
- # Just use the pxp library to get contiguous physical memory for USERPTR testing
- # However, be aware that this is not the only way.
--CFLAGS += -lpthread -lpxp -DGET_CONTI_PHY_MEM_VIA_PXP_LIB
-+CFLAGS += -DGET_CONTI_PHY_MEM_VIA_PXP_LIB
-
--OBJS = $(OBJDIR)/pxp_v4l2_test.out \
-+TARGET = $(OBJDIR)/pxp_v4l2_test.out \
- $(OBJDIR)/pxp_v4l2_out_test.sh \
- $(OBJDIR)/mx6s_v4l2_capture.out
-
--all : $(OBJS)
-+all : $(TARGET)
-+
-+LDFLAGS += -lpthread -lpxp -lstdc++ -pthread
-+
-+$(OBJDIR)/pxp_v4l2_test.out : pxp_v4l2_test.o
-+ $(CC) -o $(OBJDIR)/pxp_v4l2_test.out pxp_v4l2_test.o $(LDFLAGS) -Os
-+ $(STRIP) $(OBJDIR)/pxp_v4l2_test.out
-+
-+$(OBJDIR)/mx6s_v4l2_capture.out : mx6s_v4l2_capture.o
-+ $(CC) -o $(OBJDIR)/mx6s_v4l2_capture.out mx6s_v4l2_capture.o $(LDFLAGS) -Os
-+ $(STRIP) $(OBJDIR)/mx6s_v4l2_capture.out
-+
-+$(OBJDIR)/pxp_v4l2_out_test.sh: pxp_v4l2_out_test.sh
-+ cp pxp_v4l2_out_test.sh $(OBJDIR)
-
- .PHONY: clean
- clean :
---
-1.9.1
-
diff --git a/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch b/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch
new file mode 100644
index 00000000..8387a17c
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test/0001-test-Makefile-Add-include-path-to-CC-command.patch
@@ -0,0 +1,27 @@
+From d289d905c64882c58e3b99f74f68e72f9100115e Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.berton@...>
+Date: Tue, 12 Jun 2018 14:58:40 -0300
+Subject: [PATCH] test/Makefile: Add include path to CC command
+Organization: O.S. Systems Software LTDA.
+
+Signed-off-by: Fabio Berton <fabio.berton@...>
+---
+ test/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/Makefile b/test/Makefile
+index f1cfa2a..4f14d2c 100644
+--- a/test/Makefile
++++ b/test/Makefile
+@@ -12,7 +12,7 @@ ALL_OBJS :=
+
+ %.o: %.c
+ @echo " CC $@"
+- $(Q)$(CC) -c $(CFLAGS) $< -o $@
++ $(Q)$(CC) -c $(CFLAGS) $(INC) $< -o $@
+
+
+ # This creates the build and copy rules for one executable. Because we
+--
+2.17.1
+
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb
index ddc87a97..94765df4 100644
--- a/recipes-bsp/imx-test/imx-test_git.bb
+++ b/recipes-bsp/imx-test/imx-test_git.bb
@@ -1,16 +1,86 @@
-# Copyright (C) 2013-2016 Freescale Semiconductor
+# Copyright (C) 2012-2018 O.S. Systems Software LTDA.
+# Copyright (C) 2015 Freescale Semiconductor
# Copyright 2017 NXP

-include imx-test.inc
+SUMMARY = "Test programs for IMX BSP"
+DESCRIPTION = "Unit tests for the IMX BSP"
+SECTION = "base"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

-PV = "6.0+${SRCPV}"
+DEPENDS_mx6q = "virtual/kernel imx-lib virtual/imxvpu"
+DEPENDS_mx6dl = "virtual/kernel imx-lib virtual/imxvpu"
+DEPENDS_mx6sl = "virtual/kernel imx-lib"
+DEPENDS_mx6sll = "virtual/kernel imx-lib"
+DEPENDS_mx6sx = "virtual/kernel imx-lib"
+DEPENDS_mx6ul = "virtual/kernel imx-lib"
+DEPENDS_mx7d = "virtual/kernel imx-lib"
+DEPENDS_mx7ulp = "virtual/kernel imx-lib"
+DEPENDS_append = " alsa-lib"

-PARALLEL_MAKE="-j 1"
+PE = "1"
+PV = "7.0+${SRCPV}"

-SRCBRANCH = "nxp/imx_4.9.11_1.0.0_ga"
-SRC_URI = "git://source.codeaurora.org/external/imx/imx-test.git;protocol=https;branch=${SRCBRANCH}"
-SRCREV = "fb250a795ce0d25c19610e9e19e1cd815fc64cb9"
+SRCBRANCH = "imx_4.9.88_2.0.0_ga"
+SRCREV = "1f7da41b3a8d5dff8329d7b01b10d4d71144b43e"
+SRC_URI = " \
+ git://source.codeaurora.org/external/imx/imx-test.git;protocol=https;branch=${SRCBRANCH} \
+ file://0001-test-Makefile-Add-include-path-to-CC-command.patch \
+"

S = "${WORKDIR}/git"

+
+inherit module-base
+
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+PLATFORM_mx6q = "IMX6Q"
+PLATFORM_mx6dl = "IMX6Q"
+PLATFORM_mx6sl = "IMX6SL"
+PLATFORM_mx6sll = "IMX6SL"
+PLATFORM_mx6sx = "IMX6SX"
+PLATFORM_mx6ul = "IMX6UL"
+PLATFORM_mx7d = "IMX7D"
+PLATFORM_mx7ulp = "IMX7D"
+
+PARALLEL_MAKE="-j 1"
+
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
+
+do_compile() {
+ CFLAGS="${TOOLCHAIN_OPTIONS}"
+ oe_runmake V=1 VERBOSE='' \
+ CROSS_COMPILE=${TARGET_PREFIX} \
+ INC="-I${STAGING_INCDIR} \
+ -I${S}/include \
+ -I${STAGING_KERNEL_BUILDDIR}/include/uapi \
+ -I${STAGING_KERNEL_BUILDDIR}/include \
+ -I${STAGING_KERNEL_DIR}/include/uapi \
+ -I${STAGING_KERNEL_DIR}/include \
+ -I${STAGING_KERNEL_DIR}/arch/arm/include \
+ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
+ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include" \
+ CC="${CC} -L${STAGING_LIBDIR} ${LDFLAGS}" \
+ LINUXPATH=${STAGING_KERNEL_DIR} \
+ KBUILD_OUTPUT=${STAGING_KERNEL_BUILDDIR} \
+ PLATFORM=${PLATFORM}
+}
+
+do_install() {
+ oe_runmake DESTDIR=${D}/unit_tests \
+ PLATFORM=${PLATFORM} \
+ install
+
+ if [ -e ${WORKDIR}/clocks.sh ]; then
+ install -m 755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
+ fi
+}
+
+FILES_${PN} += "/unit_tests"
+RDEPENDS_${PN} = "bash"
+
+FILES_${PN}-dbg += "/unit_tests/.debug"
COMPATIBLE_MACHINE = "(mx6|mx7)"
--
2.17.1

2221 - 2240 of 24894