]> code.ossystems Code Review - meta-freescale.git/log
meta-freescale.git
4 years agolinux-fslc-qoriq_5.4.bb: introduce rebased+fslc kernel
Jens Rehsack [Mon, 4 May 2020 14:19:43 +0000 (16:19 +0200)]
linux-fslc-qoriq_5.4.bb: introduce rebased+fslc kernel

Introduce recipe for a kernel based on stable/linux-5.4.y + NXP/QorIQ
patches + FSLC patches. The idea is to keep this kernel up-to-date
with stable/linux-5.4.y and upgrade with new LSDK-releases when they come
out.

A new stable kernel will receive a fresh rebased start.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agolinux-qoriq.inc: build kernel PV as linux-imx.inc
Jens Rehsack [Sun, 24 May 2020 10:58:13 +0000 (12:58 +0200)]
linux-qoriq.inc: build kernel PV as linux-imx.inc

For later common kernel *.inc files, adopt setting the PV to the correct
kernel version to satisfy the kernel version sanity check.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
4 years agols1043a/ls1046a: add back usdpaa dtb for dpdk
Ting Liu [Thu, 21 May 2020 10:10:27 +0000 (18:10 +0800)]
ls1043a/ls1046a: add back usdpaa dtb for dpdk

For the DPAA platforms, usdpaa dtb is actually used for DPDK.

DPDK specific Device Tree file is configured to provide userspace
applications with network interfaces.

Build it on NXP bsp only.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agols1028ardb: build dtb dedicated for dpdk
Ting Liu [Thu, 21 May 2020 08:40:29 +0000 (16:40 +0800)]
ls1028ardb: build dtb dedicated for dpdk

fsl-ls1028a-rdb-dpdk.dtb is dedicated for dpdk which needs disable
some interfaces. Build it on NXP bsp only.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux-imx-headers: fix imx headers missing in sdk
Andrey Zhizhikin [Fri, 22 May 2020 20:22:53 +0000 (20:22 +0000)]
linux-imx-headers: fix imx headers missing in sdk

i.MX-specific headers are missing in SDK once generated via image
do_populate_sdk task.

This was caused by dropped ALLOW_EMPTY package-controlling variable
which is required for this recipe in order to indicate that package can
have RDEPENDS.

Additional RDEPENDS are also required by packages using new mechanisms
to include linux-imx-headers, this allows headers to be propagated to
the SDK when dependent package is included.

Introduce ALLOW_EMPTY in recipe and RDEPENDS in use-imx-headers bbclass
to have imx headers to be populated in the SDK.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agols1046ardb: fix duplicate dtb issue
Ting Liu [Mon, 18 May 2020 10:34:45 +0000 (18:34 +0800)]
ls1046ardb: fix duplicate dtb issue

fsl-ls1046a-rdb-sdk.dtb is listed twice and one is supposed to be
fsl-ls1046a-qds-sdk.dtb. This is due to a typo in previous commit:

41c93da5a ls1043a/ls1046a: append non-upstream dtb on NXP bsp only

Fix it with fsl-ls1046a-qds-sdk.dtb.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agocst: Fix build with gcc10
Khem Raj [Sat, 16 May 2020 15:24:40 +0000 (08:24 -0700)]
cst: Fix build with gcc10

Fixes
create_hdr_common.c:42: multiple definition of `file_field'; parse_utils.o:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/cst-native/git-r0/git/common/parse_utils.c:29: first defined here
| collect2: error: ld returned 1 exit status
| make: *** [Makefile:131: create_hdr_isbc] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
4 years agofix: handle if KERNEL_DEVICETREE isn't defined
Christopher Boyd [Mon, 18 May 2020 13:24:49 +0000 (09:24 -0400)]
fix: handle if KERNEL_DEVICETREE isn't defined

4 years agolinux-fslc-imx: upgrade kernel to v5.4.41
Andrey Zhizhikin [Wed, 13 May 2020 22:06:19 +0000 (22:06 +0000)]
linux-fslc-imx: upgrade kernel to v5.4.41

Kernel repository has been upgraded to the v5.4.41 tag from korg

Tracking information is updated with the new stable tag.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: upgrade kernel to v5.4.41 from korg
Andrey Zhizhikin [Wed, 13 May 2020 22:02:53 +0000 (22:02 +0000)]
linux-fslc: upgrade kernel to v5.4.41 from korg

Tag v5.4.41 has been merged into the linux-fslc tree, update recipe to
pull new kernel version

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux[-fslc]-imx: update defconfig to use imx_v8_defconfig
Andrey Zhizhikin [Wed, 13 May 2020 21:52:19 +0000 (21:52 +0000)]
linux[-fslc]-imx: update defconfig to use imx_v8_defconfig

Initial defconfig file submitted as a part of upgrade is not used by NXP
to configure the kernel for i.MX family, and rather imx_v8_defconfig
should be used as defconfig file instead. This has been indicated by NXP
as their kernel unification strategy to provide one kernel for i.MX and
QorIQ family.

Update the previously committed defconfig file to the content of
imx_v8_defconfig.

Patches applied before [d12d36d3] and [6ef0f40c] are noted in this
update.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agols1043a/ls1046a: append non-upstream dtb on NXP bsp only
Ting Liu [Fri, 24 Apr 2020 07:48:09 +0000 (15:48 +0800)]
ls1043a/ls1046a: append non-upstream dtb on NXP bsp only

dtb with -sdk suffix only exist in kernel from NXP bsp. Append them
in machine configuration file only when using NXP bsp. Also, add the
dtb which already exist in pure mainline kernel.

This avoids failure when building pure mainline kernel.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqoriq-base.inc: Add support to easily choose which BSP to use
Ting Liu [Thu, 14 May 2020 15:07:40 +0000 (23:07 +0800)]
qoriq-base.inc: Add support to easily choose which BSP to use

Machines or distros can define which BSP it should use by default. We
are intending to default for NXP BSP by default and specific
machines or DISTROs might change it if need.

Two values are considered valid: mainline, nxp

For example:

QORIQ_DEFAULT_BSP = "nxp"

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqoriq: remove usdpaa dtb from KERNEL_DEVICETREE
Ting Liu [Thu, 14 May 2020 10:29:26 +0000 (18:29 +0800)]
qoriq: remove usdpaa dtb from KERNEL_DEVICETREE

usdpaa is unsupported feature now, and usdpaa dts does not exist
in pure mainline kernel. It only exist in kernel from NXP bsp.
Remove them to avoid failure when building pure mainline kernel.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoatf: fix build failure due to optee binary not exist
Ting Liu [Fri, 15 May 2020 04:56:41 +0000 (12:56 +0800)]
atf: fix build failure due to optee binary not exist

When optee enabled in DISTRO_FEATURES, optee-os-qoriq is added as
DEPENDS, and atf tries to find optee binary under ${DEPLOY_DIR_IMAGE}.
This has issue when do_deploy task of optee-os-qoriq does not run
before atf's do_compile.

Switch to find optee binary under ${RECIPE_SYSROOT} instead of
${DEPLOY_DIR_IMAGE}.

Steps to reproduce the issue:
$ echo 'DISTRO_FEATURES_append = " optee"' >>conf/local.conf
$ bitbake -c cleansstate atf optee-os-qoriq
$ bitbake -c install optee-os-qoriq
$ bitbake -c compile atf
| Building lx2160ardb
| Makefile:633: *** 'BL32=.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| was specified, but '.../tmp/deploy/images/lx2160ardb/optee/tee_lx2160ardb.bin'
| does not exist.  Stop.
| make: *** Waiting for unfinished jobs....

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolx2160ardb: not use specific rcw for SD boot
Ting Liu [Thu, 14 May 2020 09:43:22 +0000 (17:43 +0800)]
lx2160ardb: not use specific rcw for SD boot

PBI command for Boot source is added by TF-A during its compilation,
no need to use spevific RCW for SD boot. Use the generic one.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoqemu-qoriq: enable aio/libusb PACKAGECONFIG
Ting Liu [Thu, 14 May 2020 10:15:37 +0000 (18:15 +0800)]
qemu-qoriq: enable aio/libusb PACKAGECONFIG

aio is required for virtio-blk-dataplane and libusb for passthrough
of usb devices.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoimx-uuc: Allow usage with use-mainline-bsp
Simone Agresta [Wed, 13 May 2020 14:59:33 +0000 (16:59 +0200)]
imx-uuc: Allow usage with use-mainline-bsp

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
4 years agopackagegroup-fsl-mfgtool: Allow usage with use-mainline-bsp
Simone Agresta [Wed, 13 May 2020 14:58:24 +0000 (16:58 +0200)]
packagegroup-fsl-mfgtool: Allow usage with use-mainline-bsp

Signed-off-by: Simone Agresta <simone.agresta@bticino.it>
4 years agoimx-kobs: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:51 +0000 (14:41 -0300)]
imx-kobs: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agolibdrm-armada: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:41 +0000 (14:41 -0300)]
libdrm-armada: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agoxf86-video-armada: Allow usage with use-mainline-bsp
Fabio Berton [Mon, 11 May 2020 17:41:04 +0000 (14:41 -0300)]
xf86-video-armada: Allow usage with use-mainline-bsp

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
4 years agogstreamer1.0-plugins-bad: update opencv patch to 4.3.0
Andrey Zhizhikin [Sat, 9 May 2020 20:48:52 +0000 (20:48 +0000)]
gstreamer1.0-plugins-bad: update opencv patch to 4.3.0

OpenCV has been upgraded upstream to 4.3.0 and current build of
gstreamer1.0-plugins-bad is broken as the previous patch required
version to be < 4.2.0

Backport the patch from upsteam to allow compilation with OpenCV 4.3.0
and replace the patch in the layer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
4 years agofirmware-imx: Add 'use-mainline-bsp' as a valid override
Otavio Salvador [Sat, 9 May 2020 01:08:43 +0000 (22:08 -0300)]
firmware-imx: Add 'use-mainline-bsp' as a valid override

As 'imx' override is now filtered out, we need to whitelist the
'use-mainline-bsp' as a valid one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I393a43720bc8896d1aadaf1fed059e3102489f25

4 years agoqoriq-ppc: add fsl/ prefix in KERNEL_DEVICETREE
Ting Liu [Thu, 7 May 2020 11:47:29 +0000 (19:47 +0800)]
qoriq-ppc: add fsl/ prefix in KERNEL_DEVICETREE

Fix below issue when compiling linux-qoriq:
make[2]: *** No rule to make target 'arch/powerpc/boot/dts/p4080ds.dtb'.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agou-boot-qoriq: fix pylibfdt build with Python3
Ting Liu [Thu, 7 May 2020 11:50:51 +0000 (19:50 +0800)]
u-boot-qoriq: fix pylibfdt build with Python3

Backport patches to fix build failure on powerpc machines:
| /bin/sh: 1: python2: not found
| make[4]: *** [scripts/dtc/pylibfdt/_libfdt.so] Error 127
| make[3]: *** [scripts/dtc/pylibfdt] Error 2

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux[-fslc]-imx: add missing config parameter
Andrey Zhizhikin [Thu, 7 May 2020 17:48:06 +0000 (17:48 +0000)]
linux[-fslc]-imx: add missing config parameter

CONFIG_SND_SOC_SOF_IMX8 requires CONFIG_SND_SOC_SOF_IMX8_SUPPORT to be
enabled, which is currently missing in the defconfig for both linux-imx
and linux-fslc-imx kernel recipes.

Add missing dependent variable to enable CONFIG_SND_SOC_SOF_IMX8.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx: Remove duplicate CRYPTO_SHA512 from defconfig
Kevin Lannen [Thu, 7 May 2020 14:22:02 +0000 (08:22 -0600)]
linux-imx: Remove duplicate CRYPTO_SHA512 from defconfig

The mx8 defconfig already contains CRYPTO_SHA512 as a module which is what is
honored so this removes the extra line that also sets CRYPTO_SHA512 to be built in

Signed-off-by: Kevin Lannen <kevin@patroness.com>
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc-imx: upgrade kernel to v5.4.39 and latest NXP patches
Andrey Zhizhikin [Thu, 7 May 2020 17:31:47 +0000 (17:31 +0000)]
linux-fslc-imx: upgrade kernel to v5.4.39 and latest NXP patches

- Kernel repository has been upgraded to the v5.4.39 tag from korg
- 8 additional patches from NXP kernel tree merged

Update recipe to new kernel revision and fill in tracking information,
including new tag from korg and all patches applied from NXP.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: upgrade kernel to v5.4.39 from korg
Andrey Zhizhikin [Thu, 7 May 2020 17:29:44 +0000 (17:29 +0000)]
linux-fslc: upgrade kernel to v5.4.39 from korg

Tag v5.4.39 has been merged into the linux-fslc tree, update recipe to
pull new kernel version.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agokernel-module-qoriq-gpu: rm as it is not needed now
Ting Liu [Thu, 23 Apr 2020 07:18:13 +0000 (15:18 +0800)]
kernel-module-qoriq-gpu: rm as it is not needed now

Now qoriq and imx use unified kernel source, kernel-module-imx-gpu-viv
can be used for qoriq too. remove kernel-module-qoriq-gpu.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agogpulib: rm as it is not needed now
Ting Liu [Thu, 23 Apr 2020 07:17:09 +0000 (15:17 +0800)]
gpulib: rm as it is not needed now

Now qoriq uses imx-gpu-viv, gpulib is not needed. remove it.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolx2160ardb: define RCWEMMC
Ting Liu [Thu, 23 Apr 2020 07:08:14 +0000 (15:08 +0800)]
lx2160ardb: define RCWEMMC

EMMC boot on LX2160A RDB is supported now. Define RCWEMMC for atf
build.

Documents:
What's New in LSDK 20.04:
https://docs.nxp.com/bundle/GUID-51EEFEDB-ABD5-40C0-BEBD-6527B3494D57/page/GUID-01DD18F7-27DC-4A0F-B79B-FBB5CBA5F4C0.html

LX2160A Reference Design Board:
https://www.nxp.com/design/qoriq-developer-resources/layerscape-lx2160a-reference-design-board:LX2160A-RDB

LX2160A Multicore Communications Processor:
https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-communication-process/layerscape-lx2160a-multicore-communications-processor:LX2160A

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agoatf: easy define additional build target
Ting Liu [Tue, 21 Apr 2020 09:43:08 +0000 (11:43 +0200)]
atf: easy define additional build target

Use variable PLATFORM_ADDITIONAL_TARGET to allow define machine
dependent atf targets. This avoids checking ${MACHINE} in shell
script, and allows define additional build target using overrides.
For exmaple:
PLATFORM_ADDITIONAL_TARGET ??= ""
PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb"
PLATFORM_ADDITIONAL_TARGET_xxx = "yyy" # for other board

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agovpp-core/dpdkvpp: rm as it is not supported now
Ting Liu [Tue, 21 Apr 2020 05:51:55 +0000 (07:51 +0200)]
vpp-core/dpdkvpp: rm as it is not supported now

vpp-core fails to build now, no plan to fix it. And no test is done
on it with kernel 5.4. Remove it to avoid confusion.

dpdkvpp is required for vpp-core compilation. Comparing to dpdk, it
changes the thread local storage (TLS) models via -ftls-model option.
Remove it along with vpp-core.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agotsntool: update to ca2d8fb
Ting Liu [Tue, 21 Apr 2020 05:13:45 +0000 (07:13 +0200)]
tsntool: update to ca2d8fb

New commits:
ca2d8fb tsntool: fix baset
ime get seconds.decimalseconds value
10a0aee tools: make alone
6ff6bfa tools:timestamping: add support TXTIME for procision frame transmit
18407a4 tsntool: add tag v0.4
9b6e536 demo:cnc: limit Qci config index with DEC values
65d86c7 demos:cnc: change operation mode from replace to merge
ae71fc0 demos:cnc: correct some prefixes
3c9419c demos:cnc: add madatory node in configuration
ee10f2d sample: add pktgen scripts for test
f86c64f Merge branch 'bitbucket-master'
7b89c9e Merge pull request #2 from hthiery/master
4253910 genl_tsn.h: use the defination of bool in stdbool.h
8036f38 Makefile add libtsn.pc.in file and add install
ddc2f1a Merge pull request #1 from mwalle/master
dcbd9a0 Makefile: use PKG_CONFIG
9c50461 fix parallel build
465e7c4 libtsn: correct the return value
9f3e586 tsntool: optimize the condition of the error output

tools/event and tools/timestamping are not be built, rm from do_install.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agocst: update to 9aafbdf
Ting Liu [Tue, 21 Apr 2020 05:03:42 +0000 (07:03 +0200)]
cst: update to 9aafbdf

New commits:
9aafbdf scripts: LS1012ARDB: Correct path for pfe image
ac52cd3 scripts/platform:LS1028A: Changes firmware header offsets
21a5439 scripts/platform:LX104xA, LS1012A: Changes firmware header offsets
fbe5c2e scripts/platform:LX2160A: Changes firmware header offsets
51a32cb scripts/platform:LS1088A, LS2088A: Changes firmware header offsets

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agouefi: update to e95ed52
Ting Liu [Tue, 21 Apr 2020 04:57:21 +0000 (06:57 +0200)]
uefi: update to e95ed52

Main updates:
Common binary support for LX2-Rev1 and LX2-Rev2
LX2160A: PCIe ECAM Support
Inphi: skip error return if all PLLs are not locked

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agorcw: install rev2 binaries for lx2160ardb
Ting Liu [Sat, 18 Apr 2020 09:59:12 +0000 (17:59 +0800)]
rcw: install rev2 binaries for lx2160ardb

Now LX2160A rev2 is supported. Install rcw for both rev1 and rev2.

LX2160A rev2 processor fixes some PCIe/qDMA/SATA/USB/FlexCAN issues. A new
Reference Design Board (https://www.nxp.com/part/LX2160A-RDB-B) ships it.

RCW binaries in folder lx2160ardb_rev2 is for the Reference Design Board
with Rev 2 processor. Old boards uses rcw binariess in folder lx2160ardb.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agodp-firmware-cadence: upgrade to LSDK-20.04
Ting Liu [Mon, 20 Apr 2020 02:57:19 +0000 (04:57 +0200)]
dp-firmware-cadence: upgrade to LSDK-20.04

Improved handling responses on AUX channel to fix failure on some
Dell monitors.

License-Update:
use 'LA_OPT_NXP_Software_License v11 February 2020'

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agopktgen-dpdk: upgrade to 19.12.0
Ting Liu [Mon, 20 Apr 2020 02:32:41 +0000 (04:32 +0200)]
pktgen-dpdk: upgrade to 19.12.0

Modifications:
 - 19.12.0 - Add per queue stats when the hardware does not support it. Use
             the 'page stats' command to see data and use 'port X' to switch
     ports.
 - 19.10.0 - Fix up the save/load commands to get correct as in GRE key
             command
     Fix up the problem with pcap files not getting sent if the
     number of packets was small
     fix up a crash if the scrn pointer was invalid on startup
     fixed the log output in startup
     Fixed the save/load scripts to use the correct commands.
     Fix the IPv4/6 checksum calculations
 - 19.08.0 - Fix linking of Lua library when no pkg-config file is found and
           linking liblua.a
   Fixed and issue with packet rate not being changed when the packet
   size is changed
   Change version numering to year.month.patch format
   Change lua pktgen.set_mac() to have three args set_mac(<portlist>,
   'src|dst', mac_addr) instead of two args
   add support for setting via lua src and dst mac addresses
   fix up the RSS port configuration options
           updated code to adjust the packet tx interval based on command
   changes on the packet size and other areas.
 - 3.7.1 - Add TTL support to single and range modes. Better docs for dump packets
         - Pktgen 3.7.1 will build with DPDK 18.02 to 19.08-rc2, but 18.08 has
   a problem with vhost.h VRING_EVENT_F_AVAIL not defined and appears
   the Ubuntu 19.04 version I am running does not define it correctly.
         - fixed the RX side using TX count for rx_burst command.
 - General cleanup
 - 3.7.0 - Fixed build issues with DPDK 19.08 as DPDK renamed a lot of defines
           Fixed up the meson files to build pktgen with meson and ninja
           Minor cleanup

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agosecure-obj: update to fb179a8
Ting Liu [Mon, 20 Apr 2020 01:52:47 +0000 (03:52 +0200)]
secure-obj: update to fb179a8

Upgrade secure-obj to fb179a8 containing just:
fb179a8 Bug: Fix for PLATSEC-969
since update for LSDK-19.09

Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Jens Rehsack <sno@netbsd.org>
(cherry picked from commit 41a8c80efe5c197a21433aa48d9038898c636054)

4 years agooptee-test-qoriq: add patch to use python3
Ting Liu [Sat, 18 Apr 2020 14:55:34 +0000 (22:55 +0800)]
optee-test-qoriq: add patch to use python3

python2 is EOL January 2020. This fixes build failure due to python2.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
4 years agolinux-fslc-imx: introduce 5.4.y kernel with NXP patches
Andrey Zhizhikin [Mon, 4 May 2020 21:55:53 +0000 (21:55 +0000)]
linux-fslc-imx: introduce 5.4.y kernel with NXP patches

Introduce new kernel recipe, which incorporates all patches from
original NXP release 5.4.3-1.0.0 and latest patch level from stable
5.4.y kernel tree from korg.

This kernel recipe is a consolidation of modifications from upstream and
NXP and is meant to be supported by Community with further stable
patchlevel updates, individual patches which pending in upstream to be
included in the stable, and also to receive updates from NXP internal source
tree from the [lf-5.4.y] branch, which corresponds to release 5.4.3-1.0.0.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx-[mfgtool]-5.4.3: update recipes to align with kernel-yocto
Andrey Zhizhikin [Tue, 5 May 2020 17:13:55 +0000 (17:13 +0000)]
linux-imx-[mfgtool]-5.4.3: update recipes to align with kernel-yocto

When kernel-yocto class is inherited by kernel recipes, the way how PV
is constructed changes to reflect GIT kernel tags and meta information.

This causes the fetcher search to fail, since paths used to locate files
are compiled from PV.

Replace version-specific paths in recipes to use PN instead, which is
registered in the fetcher as a valid search location.

Linux kernel recipe should have LINUX_VERSION also defined, since it is
used by kernel-yocto class to derive PV. This version is set to the real
kernel version provided by NXP in their source tree.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-fslc: update PV definition to align with kernel-yocto
Andrey Zhizhikin [Mon, 4 May 2020 22:02:12 +0000 (22:02 +0000)]
linux-fslc: update PV definition to align with kernel-yocto

PV is defined in the base in linux-imx.inc file and uses the definition
LINUX_VERSION required by kernel-yocto.bbclass.

Instead of defining the PV in the target recipe, define LINUX_VERSION
which is effectively expanded in PV and used by the kernel-yocto class.

This define should match to the kernel version referenced by SRC_URI and
should be updated once patchlevel is merged.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
4 years agolinux-imx.inc: inherit kernel-yocto class
Andrey Zhizhikin [Sun, 3 May 2020 21:11:36 +0000 (21:11 +0000)]
linux-imx.inc: inherit kernel-yocto class

Since commit [de2ef0120432cba343452151e86cbc3c99876524] in oe-core, it
is possible to use kernel-yocto class without including linux-yocto.inc
into the recipe.

Inherit the class in order to take advantage of providing mechanisms to
use kernel config fragments, patches and verification features
implemented upstream.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agoweston: Restore partial clients for i.MX 6 and 7
Tom Hochstein [Tue, 5 May 2020 17:16:01 +0000 (12:16 -0500)]
weston: Restore partial clients for i.MX 6 and 7

The clients configuration for fbdev was recently removed from
meta-freescale [1] because of the following error:

```
| Run-time dependency gbm found: NO (tried pkgconfig and cmake)
|
| clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option.
```

[1] eda44e49618610c13ebe4c026cd4981b404a1543

It was also removed for non-Wayland from OE-core [2] because of the
following error in the same client dmabuf-egl:

```
clients/meson.build:141:4: ERROR: Problem encountered: weston-simple-dmabuf-egl
requires option renderer-gl which is not enabled. If you rather not build this,
drop "dmabuf-egl" from simple-clients option.
```

[2] 9b1d30810eeecb46b977c8eed68be69aef891312

Restore the working subset of clients.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agolinux-qoriq: add perf patch to resolve linux-qoriq build
Andrey Zhizhikin [Tue, 5 May 2020 13:31:54 +0000 (13:31 +0000)]
linux-qoriq: add perf patch to resolve linux-qoriq build

Kernel 5.4.y for QorIQ platform requires the patch in order to compile
perf component successfully.

Patch has a proper Upstream-Status and points to commit SHA in upstream
kernel tree. It is identical to the one present in the linux-imx recipe,
since kernle tree for i.MX platform also requires it.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agolinux-imx-5.4.3: update perf patch with upstream status
Andrey Zhizhikin [Tue, 5 May 2020 13:29:47 +0000 (13:29 +0000)]
linux-imx-5.4.3: update perf patch with upstream status

Upstream-Status tag was missing in the original patch and is updated to
the Submitted status with reporting commit SHA in upstream.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agoqtbase: Fix patch fuzz for mkspecs/linux-oe-g++/qmake.conf
antznin [Tue, 5 May 2020 13:28:15 +0000 (15:28 +0200)]
qtbase: Fix patch fuzz for mkspecs/linux-oe-g++/qmake.conf

The current version of the patch causes a fuzz because of context
change.

Signed-off-by: antznin <agodard@witekio.com>
5 years agooptee-os: Replace /lib by ${nonarch_base_libdir} in do_install
antznin [Wed, 29 Apr 2020 12:37:38 +0000 (14:37 +0200)]
optee-os: Replace /lib by ${nonarch_base_libdir} in do_install

This fixes a do_package error when using `usrmerge` in
`DISTRO_FEATURES`. In that case the bin files should have been installed
in /usr/lib. Using ${nonarch_base_libdir} makes the location specific to
distro settings.

Signed-off-by: antznin <agodard@witekio.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I9d6c015975b093f74f29927a7e8bdfd87fd3dc09

5 years agoqtbase: Allow easy override of the mainline BSP GL backend
Otavio Salvador [Sat, 2 May 2020 00:33:39 +0000 (21:33 -0300)]
qtbase: Allow easy override of the mainline BSP GL backend

Using a weak setting, allow distributions to override it and make
customizations if need (use gl, for example).

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: Id1ee47764148e07feba86e16cd7d282a37dcf9e9

5 years agoRevert "qtbase: Do not pin gles2 when using open source graphic stack"
Otavio Salvador [Fri, 1 May 2020 06:24:38 +0000 (03:24 -0300)]
Revert "qtbase: Do not pin gles2 when using open source graphic stack"

This reverts commit 1cf9efd20fd94afdd2f7484b0570c570a21b8b65.

The qtbase configure fail to find any suitable GL library, so it fails
with:

,----
| WARNING: No QPA platform plugin enabled! This will produce a Qt that
| cannot run GUI applications.  See "Platform backends" in the output of
| --help.
|
| ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition
| '(config.win32 && !config.winrt && !features.opengles2
|     && (config.msvc || libs.opengl))
|  || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)' failed.
|
| ERROR: Feature 'eglfs' was enabled, but the pre-condition
|   '!config.android && !config.darwin && !config.win32 && !config.wasm
|   && features.egl' failed.
`----

Fixed: #378

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoimx-boot: fix mkimage_uboot linking issue
Ming Liu [Sat, 2 May 2020 11:09:17 +0000 (13:09 +0200)]
imx-boot: fix mkimage_uboot linking issue

In imx-boot's Makefile, it downloads a native tool mkimage_uboot and
executes it, but this native tool requires libssl.so.1.1, which is in
${STAGING_LIBDIR_NATIVE}, we need set LD_LIBRARY_PATH to include it, or
it might run into following errors:
| ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb
| ./mkimage_uboot: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Signed-off-by: Ming Liu <ming.liu@toradex.com>
5 years agokernel-module-qca6174_3.0: avoid kernel module build errors
Peter Griffin [Fri, 1 May 2020 12:10:16 +0000 (14:10 +0200)]
kernel-module-qca6174_3.0: avoid kernel module build errors

Currently the kernel module fails to build with following
undefined symbols due to missing Kconfig option.

| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15910:13: error: 'qca_wlan_vendor_ocb_set_config_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_setband_policy'?
| 15910 |   .policy = qca_wlan_vendor_ocb_set_config_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_setband_policy
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15919:13: error: 'qca_wlan_vendor_ocb_set_utc_time_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_ll_set_policy'?
| 15919 |   .policy = qca_wlan_vendor_ocb_set_utc_time_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_ll_set_policy
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15929:13: error: 'qca_wlan_vendor_ocb_start_timing_advert_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_ocb_start_timing_advert'?
| 15929 |   .policy = qca_wlan_vendor_ocb_start_timing_advert_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_ocb_start_timing_advert
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15938:13: error: 'qca_wlan_vendor_ocb_stop_timing_advert_policy' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_ocb_stop_timing_advert'?
| 15938 |   .policy = qca_wlan_vendor_ocb_stop_timing_advert_policy,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_ocb_stop_timing_advert
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15956:13: error: 'qca_wlan_vendor_dcc_get_stats' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_get_stats'?
| 15956 |   .policy = qca_wlan_vendor_dcc_get_stats,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_get_stats
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15965:13: error: 'qca_wlan_vendor_dcc_clear_stats' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_clear_stats'?
| 15965 |   .policy = qca_wlan_vendor_dcc_clear_stats,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_clear_stats
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:15974:13: error: 'qca_wlan_vendor_dcc_update_ndl' undeclared here (not in a function); did you mean 'qca_wlan_vendor_attr_dcc_update_ndl'?
| 15974 |   .policy = qca_wlan_vendor_dcc_update_ndl,
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             qca_wlan_vendor_attr_dcc_update_ndl
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c: In function '__wlan_hdd_cfg80211_scan':
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:22920:8: warning: ISO C90 forbids variable length array 'chList' [-Wvla]
| 22920 |        char chList [(request->n_channels*5)+1];
|       |        ^~~~
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c: In function '__wlan_hdd_cfg80211_sched_scan_start':
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:28751:9: warning: ISO C90 forbids variable length array 'chList' [-Wvla]
| 28751 |         char chList [(request->n_channels*5)+1];
|       |         ^~~~
| At top level:
| rpb-dunfell/build-rpb-wayland/tmp-rpb_wayland-glibc/work/imx8mqevk-linaro-linux/kernel-module-qca6174/3.0-r0/git/CORE/HDD/src/wlan_hdd_cfg80211.c:25078:20: warning: 'hdd_ieee80211_reason_code_to_str' defined but not used [-Wunused-function]
| 25078 | static const char *hdd_ieee80211_reason_code_to_str(uint16_t reason)
|       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agoimx-base.inc: Add imx override to filter_out list of mainline BSP
Otavio Salvador [Fri, 1 May 2020 05:23:14 +0000 (02:23 -0300)]
imx-base.inc: Add imx override to filter_out list of mainline BSP

We should avoid leaking NXP settings when using mainline BSP so we need
to filter it out.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoimx-base.inc: Reduce override of libdrm for mx6, mx7 and mx8
Otavio Salvador [Fri, 1 May 2020 05:20:43 +0000 (02:20 -0300)]
imx-base.inc: Reduce override of libdrm for mx6, mx7 and mx8

The library should not be overrided for SoCs without official BSP
releases from NXP as it is untested.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agomesa: Remove 'vc4' from PACKAGECONFIG for mainline BSP
Otavio Salvador [Fri, 1 May 2020 23:10:58 +0000 (20:10 -0300)]
mesa: Remove 'vc4' from PACKAGECONFIG for mainline BSP

The SoCs supported by meta-freescale does not use vc4 and then we can
drop it from the features.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I2b8e04c54644315401315c442a5e2cec8624c3f3

5 years agomesa: Simplify PACKAGECONFIG for mainline BSP
Otavio Salvador [Fri, 1 May 2020 05:19:15 +0000 (02:19 -0300)]
mesa: Simplify PACKAGECONFIG for mainline BSP

The mainline BSP can use same settings for all SoCs reducing the
complexity.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5 years agoxserver-xf86-config: Fix xorg.conf for 6ULL
Tom Hochstein [Fri, 24 Apr 2020 22:22:11 +0000 (17:22 -0500)]
xserver-xf86-config: Fix xorg.conf for 6ULL

The 6ULL does not have a hardware-accelerated framebuffer
device, so switch to the kernel framebuffer device.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Cleanup FILES for no longer used folder
Tom Hochstein [Tue, 28 Apr 2020 19:46:10 +0000 (14:46 -0500)]
weston: Cleanup FILES for no longer used folder

${sysconfdir}/xdg/weston was used to install weston.ini,
but that functionality has moved to weston-init.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Fix build error for opengl typo
Tom Hochstein [Tue, 28 Apr 2020 19:23:12 +0000 (14:23 -0500)]
weston: Fix build error for opengl typo

There was an extra hyphen on the command line:

meson: error: unrecognized arguments: --Dopengl=false

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Fix non-GBM build error for i.MX 6 & 7
Tom Hochstein [Tue, 28 Apr 2020 19:21:02 +0000 (14:21 -0500)]
weston: Fix non-GBM build error for i.MX 6 & 7

i.MX 6 and 7 doesn't support GBM, required by weston-simple-dmabuf-egl:

| Run-time dependency gbm found: NO (tried pkgconfig and cmake)
|
| clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option.

Remove the clients for i.MX 6 and 7.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Restructure recipe for ease of maintanance
Tom Hochstein [Tue, 28 Apr 2020 14:49:32 +0000 (09:49 -0500)]
weston: Restructure recipe for ease of maintanance

Structure the recipe into two sections, the top as a verbatim
copy of the upstream recipe that is the basis, and the bottom
for the i.MX customization.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Align 8.0.0.imx recipe with 8.0.0
Tom Hochstein [Mon, 27 Apr 2020 19:04:16 +0000 (14:04 -0500)]
weston: Align 8.0.0.imx recipe with 8.0.0

Update license file data and move i.MX customizations to
unique lines for simpler diff.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agowaffle: Fix x11 build without GBM support
Tom Hochstein [Thu, 23 Apr 2020 13:44:03 +0000 (08:44 -0500)]
waffle: Fix x11 build without GBM support

For i.MX 6 and 7, building x11_egl failed with the following:

```
In file included from ../waffle-1.6.0/src/waffle/surfaceless_egl/sl_window.c:35:
../waffle-1.6.0/src/waffle/surfaceless_egl/sl_platform.h:30:10: fatal error: gbm.h: No such file or directory
   30 | #include <gbm.h>
      |          ^~~~~~~
```

The failure is not surprising since i.MX 6 and 7 don't
support GBM. What is surprising is surfaceless_egl is
built even if it is disabled. The meson dependency
for surfaceless_egl was incorrectly tied to x11_egl,
so fix that, plus add a dependency on GBM.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agowaffle: Add missing dependency on EGL
Tom Hochstein [Thu, 23 Apr 2020 13:38:34 +0000 (08:38 -0500)]
waffle: Add missing dependency on EGL

For Wayland builds without XWayland support, the following
build break was happening:

In file included from /home/bamboo/build/5.4-zeus-full/fsl-imx-internal-wayland/temp_build_dir/build_fsl-imx-internal-wayland/tmp/work/aarch64-mx8-poky-linux/waffle/1.6.0-r0/recipe-sysroot/usr/include/EGL/egl.h:39,
                 from ../waffle-1.6.0/src/waffle/egl/wegl_context.h:31,
                 from ../waffle-1.6.0/src/waffle/egl/wegl_util.c:28:
/home/bamboo/build/5.4-zeus-full/fsl-imx-internal-wayland/temp_build_dir/build_fsl-imx-internal-wayland/tmp/work/aarch64-mx8-poky-linux/waffle/1.6.0-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:144:10: fatal error: X11/Xlib.h: No such file or directory
  144 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.

This happens because the egl.pc configuration is missing.

Fix the mising dependency.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agowaffle: Disable GBM support for i.MX 6 and 7 GPU
Tom Hochstein [Tue, 21 Apr 2020 19:06:05 +0000 (14:06 -0500)]
waffle: Disable GBM support for i.MX 6 and 7 GPU

GBM is not available on i.MX 6 and 7 GPU, so disable support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-gpu-apitrace: Enable egl and waffle
Tom Hochstein [Fri, 17 Apr 2020 00:09:45 +0000 (19:09 -0500)]
imx-gpu-apitrace: Enable egl and waffle

Add egl and waffle as common configuration. The unique configuration
for 8M and 8M Nano is no longer required.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-gpu-apitrace: Add config options for EGL and GUI
Tom Hochstein [Fri, 17 Apr 2020 00:04:27 +0000 (19:04 -0500)]
imx-gpu-apitrace: Add config options for EGL and GUI

Also, remove x11-egl option since it is a derivative of egl, x11, and
waffle, and is no longer needed.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-gpu-apitrace: Don't package binaries separately
Tom Hochstein [Thu, 16 Apr 2020 23:57:42 +0000 (18:57 -0500)]
imx-gpu-apitrace: Don't package binaries separately

The libraries are not useful without the binaries, so putting them
in separate packages is wrong.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-gpu-apitrace: Rebase fork on 9.0.0
Tom Hochstein [Thu, 16 Apr 2020 23:52:11 +0000 (18:52 -0500)]
imx-gpu-apitrace: Rebase fork on 9.0.0

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agolibimxdmabuffer: Fix ptest
Carlos Rafael Giani [Fri, 24 Apr 2020 07:06:03 +0000 (09:06 +0200)]
libimxdmabuffer: Fix ptest

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
5 years agogstreamer1.0-plugins-imx: Update to version 0.13.1
Carlos Rafael Giani [Fri, 24 Apr 2020 07:05:45 +0000 (09:05 +0200)]
gstreamer1.0-plugins-imx: Update to version 0.13.1

* Last planned release in the 0.x series. Development now focuses on 2.x.
  The 2.x series will support i.MX6, i.MX7, and i.MX8.

* OE recipe fix to use the correct G2D dependency (imxg2d, not imx-gpu-viv)

* waf: Update to version 2.0.12 and switch to Python 3

* misc:
  * gst_buffer_pool_config_set_allocator() and get_allocator() are
    transfer-none. Changes to the code address that, fixing various refcount
    related problems.
  * Update GstPhysMemoryAllocator support for GStreamer 1.14+

* v4l2video:
  * v4l2src: Set interlace flags in GstBuffer
  * v4l2sink: Define V4L2_COLORSPACE_DEFAULT if it doesn't exist
  * v4l2: Add phys mem meta only if the driver/card is known to support this
    This makes USB video cameras work with imxv4l2videosrc, because they do
    not provide any physical address.
  * v4l2_buffer_pool: First reset the buffer storage in the pool, then queue
    the buffer. Otherwise it might happen that we dequeue the same buffer in
    a different thread already *before* we have it reset in the buffer storage,
    and then run into an assertion because it contains NULL.

* vpu:
  * decoder: Fix for an endless loop at gst_imx_vpu_decoder_finish() when in
    no_wait mode
  * decoder: Clear the GST_VIDEO_BUFFER_FLAG_TFF flag in case of
    IMX_VPU_INTERLACING_MODE_BOTTOM_FIELD_FIRST
  * decoder: Honour num-additional-framebuffers setting
  * decoder: Fix leak when input video formats change due to a missing
    gst_imx_vpu_decoder_close() call

* ipu: Reintroduce interlace methods

* audio:
  * Save pointer to codec_data GstBuffer to fix memory leak
  * Only allocate reordered_channel_positions if needed. If we don't need to
    reorder the audio channels, we the unnecessary allocation otherwise.

* g2dpango:
  * Add missing header and cleanup a few warnings
  * Unref video_frame memory after phys_memory check

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
5 years agooptee-test_3.2.0.imx: fix TA_DEV_KIT_DIR is not correctly defined error
Peter Griffin [Wed, 22 Apr 2020 22:52:14 +0000 (23:52 +0100)]
optee-test_3.2.0.imx: fix TA_DEV_KIT_DIR is not correctly defined error

DEFAULTTUNE is no longer aarch64 which means optee-test
build fails. Update to use the same mechanism as optee-os
recipe for setting arch.

Build now passes on imx8mq-evk and optee xtest suite
passes

+-----------------------------------------------------
16078 subtests of which 3 failed
74 test cases of which 3 failed
0 test case was skipped
TEE test application done!

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agoimx-kobs: Update SRCREV to cee66d
Alexandru Palalau [Wed, 22 Apr 2020 13:13:16 +0000 (16:13 +0300)]
imx-kobs: Update SRCREV to cee66d

Signed-off-by: Alexandru Palalau <ioan-alexandru.palalau@nxp.com>
5 years agodp-firmware-cadence: fix LICENSE
Matthias Schiffer [Wed, 22 Apr 2020 12:50:18 +0000 (14:50 +0200)]
dp-firmware-cadence: fix LICENSE

LICENSE should be "Proprieraty", not "NXP-Binary-EULA", otherwise fetch
with fsl-eula-unpack will fail.

Fixes #360

Signed-off-by: Matthias Schiffer <matthias.schiffer@tq-group.com>
5 years agoimx-vpuwrap: Upgrade to v4.5.3
Yuqing Zhu [Fri, 17 Apr 2020 07:57:04 +0000 (15:57 +0800)]
imx-vpuwrap: Upgrade to v4.5.3

-Update EULA to v10
-Add vpu wrapper unit test for i.MX8
 Enable 8mm/8mq to support H264/HEVC byte-stream format decoding
 Enable 8mm to support H264 encoding

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
5 years agoimx-parser: Upgrade to v4.5.3
Yuqing Zhu [Fri, 17 Apr 2020 07:44:55 +0000 (15:44 +0800)]
imx-parser: Upgrade to v4.5.3

-Update EULA to v10
-Fix unexpected EOS reported by Aiurdemux while playing fragmented mp4 video
-Add Mpeg2ResetOuputBuffer when track is disabled
-Upgrade mp 3parser's getNextSamle, don't read 16KB
 because this mode can't calculate right timestamp
-Add Parser API to get ac4 presentation info
-Fix ID3 parser return wrong artwork size

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
5 years agoimx-codec: Upgrade to v4.5.3
Yuqing Zhu [Tue, 14 Apr 2020 06:54:10 +0000 (14:54 +0800)]
imx-codec: Upgrade to v4.5.3

-Update EULA to v10
-Update version to align with other Multimedia components

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
5 years agoimx-vpu-hantro: Upgrade to 1.16.0
Yuqing Zhu [Mon, 20 Apr 2020 06:00:27 +0000 (14:00 +0800)]
imx-vpu-hantro: Upgrade to 1.16.0

[G1/G2]: Fix H264 conformance test failure caused by changes in latest release
[G1]: Fix memory leak, inlcudes: h264/mpeg2/mpeg4/vc1/rv/avs
[Mpeg4]: Fix DivX3 can't be decoded caused by wrong sscanf string

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
5 years agoimx-vpu: Upgrade to 5.4.39.2
Yuqing Zhu [Mon, 20 Apr 2020 05:52:39 +0000 (13:52 +0800)]
imx-vpu: Upgrade to 5.4.39.2

Use different name for dpu, pxp, opencl and viv g2d lib

Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
5 years agocryptodev: upgrade to 1.10
Ting Liu [Sun, 19 Apr 2020 14:50:40 +0000 (16:50 +0200)]
cryptodev: upgrade to 1.10

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agoqemu-qoriq: upgrade to 4.1
Ting Liu [Sat, 18 Apr 2020 15:54:13 +0000 (23:54 +0800)]
qemu-qoriq: upgrade to 4.1

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agoconf/layer.conf: remove QORIQ_MIRROR setting
Ting Liu [Sat, 11 Apr 2020 14:46:59 +0000 (22:46 +0800)]
conf/layer.conf: remove QORIQ_MIRROR setting

git.freescale.com is down and will not be available.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agokernel-module-ipc: switch to source.codeaurora.org
Ting Liu [Sat, 11 Apr 2020 15:37:10 +0000 (23:37 +0800)]
kernel-module-ipc: switch to source.codeaurora.org

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agoskmm-ep: switch to source.codeaurora.org
Ting Liu [Thu, 5 Mar 2020 13:02:47 +0000 (14:02 +0100)]
skmm-ep: switch to source.codeaurora.org

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agoskmm-host: switch to source.codeaurora.org
Ting Liu [Thu, 5 Mar 2020 13:02:47 +0000 (14:02 +0100)]
skmm-host: switch to source.codeaurora.org

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agofsl-tlu: switch to source.codeaurora.org
Ting Liu [Thu, 5 Mar 2020 13:02:46 +0000 (14:02 +0100)]
fsl-tlu: switch to source.codeaurora.org

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agohyperrelay: rm as it is not maintained now
Ting Liu [Sat, 11 Apr 2020 14:41:55 +0000 (22:41 +0800)]
hyperrelay: rm as it is not maintained now

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agooptee-os-qoriq: add patch to use python3
Ting Liu [Sat, 18 Apr 2020 14:55:34 +0000 (22:55 +0800)]
optee-os-qoriq: add patch to use python3

python2 is EOL January 2020. This fixes build failure due to python2.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agochange-file-endianess: rm as no pkg need it now
Ting Liu [Sat, 11 Apr 2020 14:34:04 +0000 (22:34 +0800)]
change-file-endianess: rm as no pkg need it now

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agorcw: not DEPENDS change-file-endianess
Ting Liu [Sat, 11 Apr 2020 14:35:11 +0000 (22:35 +0800)]
rcw: not DEPENDS change-file-endianess

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agou-boot-qoriq: update to 3cd9bc3
Ting Liu [Sat, 11 Apr 2020 16:01:36 +0000 (00:01 +0800)]
u-boot-qoriq: update to 3cd9bc3

New changes:
3cd9bc3993 net/dsa: Remove (c) in copyright line
c8c2bb1533 i2c: mxc: fix copyright
024518ee2e configs: ls1021a: Append CMA configuration to bootargs

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agou-boot-qoriq: not DEPENDS tcl/change-file-endianess
Ting Liu [Sat, 11 Apr 2020 14:28:10 +0000 (22:28 +0800)]
u-boot-qoriq: not DEPENDS tcl/change-file-endianess

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agou-boot-qoriq: rename to match version 2019.10
Ting Liu [Sat, 11 Apr 2020 14:09:00 +0000 (22:09 +0800)]
u-boot-qoriq: rename to match version 2019.10

The right u-boot version is 2019.10. LSDK-20.04 is an unified tag for all
qoriq components.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
5 years agolibimxvpuapi2: Update to version 2.0.1
Carlos Rafael Giani [Sat, 18 Apr 2020 20:17:48 +0000 (22:17 +0200)]
libimxvpuapi2: Update to version 2.0.1

* imx6: replace mxcfb.h check with i.MX6 specific imx header check
  the mcxfb.h check only makes sense with i.MX6 devices, so requiring
  those for others like i.MX8 led to build errors
* update waf to 2.0.12 and switch wscript to use Python 3
* imx6: fix encoder pointer usage in vpu_EncGiveCommand() call

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
5 years agolibimxdmabuffer: Upgrade to version 1.0.1
Carlos Rafael Giani [Sat, 18 Apr 2020 18:00:39 +0000 (20:00 +0200)]
libimxdmabuffer: Upgrade to version 1.0.1

* Changes to migrate build system to Python 3:
  * waf: update to 2.0.12
  * waf: use python3

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
5 years agoimx-base.inc: Allow for setting different IMX_DEFAULT_BSP values
Carlos Rafael Giani [Sat, 18 Apr 2020 18:03:32 +0000 (20:03 +0200)]
imx-base.inc: Allow for setting different IMX_DEFAULT_BSP values

Current assignment of the IMX_DEFAULT_BSP variables is too strong. For
example, any IMX_DEFAULT_BSP value set in local.conf currently gets
overridden by the assingment in imx-base.inc. Soften the assignment
to allow for alternative values for these variables.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>