]> code.ossystems Code Review - meta-freescale.git/log
meta-freescale.git
4 years agofsl-eula-unpack: exclude FSL_EULA_FILE from sstate signature zeus
Samuli Piippo [Thu, 13 Aug 2020 12:45:42 +0000 (15:45 +0300)]
fsl-eula-unpack: exclude FSL_EULA_FILE from sstate signature

Use vardepsexclude for FSL_EULA_FILE variable to to make sstate cache
usable from different build directories.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
(cherry picked from commit 4689674e6c147f6891b541c273abf2889aa6f2da)

4 years agoRevert "weston-init: use g2d for i.MX8M Nano SoC"
Tom Hochstein [Thu, 23 Jul 2020 18:40:23 +0000 (13:40 -0500)]
Revert "weston-init: use g2d for i.MX8M Nano SoC"

8M Nano does not have 2D acceleration.

This reverts commit b3f51ab82838a67146d5b6fcf8f19d36c5efeb37.

(cherry picked from commit 6bc3d8825c20d21528e24a7237ff7392e01a81bd)

4 years agoqtbase: Define empty PACKAGECONFIG_VULKAN
Khem Raj [Fri, 5 Jun 2020 00:32:54 +0000 (17:32 -0700)]
qtbase: Define empty PACKAGECONFIG_VULKAN

In cases where non imxgpu and non-fsl SOCs are target do_configure results in

ERROR: qtbase-5.15.0+gitAUTOINC+f6fe4bbab7-r0 do_configure: QA Issue: qtbase: in
valid PACKAGECONFIG: ${@bb.utils.contains('DISTRO_FEATURES', [invalid-packagecon
fig]

Therefore having empty value helps in avoiding this case

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e1b169c907b2d6743f277f1212fcc6ecb2e068c3)

4 years agoqtbase: Drop upstreamed patch
Tom Hochstein [Wed, 27 May 2020 14:10:35 +0000 (09:10 -0500)]
qtbase: Drop upstreamed patch

Drop patch 0015-Add-eglfs-to-IMX-GPU.patch. It is upstream and
no longer necessary.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 22408f5766b64f9122b61a0aa15263a7e71763d1)

4 years agoqtbase: Add i.MX 8 configuration
Tom Hochstein [Tue, 26 May 2020 19:39:47 +0000 (14:39 -0500)]
qtbase: Add i.MX 8 configuration

- 8M Quad has 3D but no 2D, so fix the override for GPU patches
- Add gbm and kms for all i.MX 8 with GPU
- Add vulkan for all i.MX 8 with GPU except 8M Mini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit b37a332b130389d8f4429fbb9d87d26b65cfc386)

4 years agoweston: fix a patch fuzz issue
Ming Liu [Thu, 4 Jun 2020 09:47:45 +0000 (11:47 +0200)]
weston: fix a patch fuzz issue

Fix a following QA warning:
| WARNING: weston-5.0.0.imx-r0 do_patch: Fuzz detected:
|
| Applying patch 0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch
| patching file weston.ini.in
| Hunk #1 succeeded at 7 with fuzz 2 (offset 4 lines).
|
| The context lines in the patches can be updated with devtool:
|
|    devtool modify weston
|    devtool finish --force-patch-refresh weston <layer_path>
|
| Don't forget to review changes done by devtool!

Signed-off-by: Ming Liu <ming.liu@toradex.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>
(cherry picked from commit eaefe965615070e58438b868467f7a045289d8ec)

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>
5 years agoimx-base: non-overriding append for WKS_FILE_DEPENDS
Manuel Bessler [Tue, 14 Jan 2020 18:48:34 +0000 (13:48 -0500)]
imx-base: non-overriding append for WKS_FILE_DEPENDS

On mx8,
  `WKS_FILE_DEPENDS_mx8 += "imx-boot"`
overrides the content of `WKS_FILE_DEPENDS` instead
of appending, causing `do_image_wic` to complain about
missing dependencies for `wic-tools`.

(cherry picked from commit 7b49a35b976bc76ff9de66191ad09558639e000b)

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>
(cherry picked from commit 76467d61049bd89a25f5a26592bc6c8808e51ff9)

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>
(cherry picked from commit eea3e3bbe0870b46363884402c97b4f1b187a6f9)

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>
(cherry picked from commit f43fa899d28e1950543a05a2c903a530d7b006f2)

5 years agoRevert "optee-[client,test]: upgrade to 4.19.35_1.1.0"
Peter Griffin [Thu, 23 Apr 2020 23:10:41 +0000 (00:10 +0100)]
Revert "optee-[client,test]: upgrade to 4.19.35_1.1.0"

This reverts commit 5fdac18a1f4daed214e07af014d068b7b6196f5c.
op-tee os and optee-client were reverted already. This fixes
a build failure with optee-test as one of the patches doesn't
apply to 4.19 branch.

5 years agoRevert "mx8qm: Use cortexa72-cortexa53 tune by default"
Tom Hochstein [Fri, 17 Apr 2020 13:10:04 +0000 (08:10 -0500)]
Revert "mx8qm: Use cortexa72-cortexa53 tune by default"

Support for cortexa72-cortexa53 tuning is not available on zeus.

This reverts commit 9d6833f8a2e743c9907e20c8e0a0d46be9f65fd3.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agofsl-eula-unpack.bbclass: add latest license md5sum
Max Krummenacher [Thu, 16 Apr 2020 12:37:16 +0000 (14:37 +0200)]
fsl-eula-unpack.bbclass: add latest license md5sum

The 4.14.98-2.3.0 BSP targeting latest SoC silicon revisions uses an even
newer license text 'LA_OPT_NXP_Software_License v10 December 2019'.
And the upcomming 5.4.3-2.0.0 BSP uses yet another one:
'LA_OPT_NXP_Software_License v11 February 2020'.

Add their md5sums additionally.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 629639a28c27c9a57ffd6cd1c90f5742aa3f996f)

5 years agomx8qxp: Use cortexa35-crypto tuning for i.MX 8 QXP default
Tom Hochstein [Wed, 15 Apr 2020 22:17:08 +0000 (17:17 -0500)]
mx8qxp: Use cortexa35-crypto tuning for i.MX 8 QXP default

The i.MX 8QXP has Cortex-A35 cores plus Crypto
extensions, so enable them by default.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit f02d6921bacee8396579330999d57f2381e89402)

5 years agomx8qm: Use cortexa72-cortexa53 tune by default
Joshua Watt [Thu, 27 Feb 2020 19:51:12 +0000 (13:51 -0600)]
mx8qm: Use cortexa72-cortexa53 tune by default

Use the cortexa72-cortexa53-crypto tune for IMX.8 QuadMax devices
instead of the more generic aarch64. Update the QuadMax MEK machine to
require the file that provides this tune.

Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
(cherry picked from commit 54115b38b777f09d60847f7ba0ac7796230b3d89)

5 years agoimx8mq: Add tuning for cortexa53+crypto+crc
Tom Hochstein [Tue, 14 Apr 2020 15:46:23 +0000 (10:46 -0500)]
imx8mq: Add tuning for cortexa53+crypto+crc

Like other i.MX 8M SOCs, the 8M Quad has Cortex-A53 cores
and supports ARM Crypto extensions. Enable them by default.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 5e62f2fb476405e77388da0f2963163173e0c090)

5 years agoimx-sc-firmware: Fix the license as Proprietary
Tom Hochstein [Fri, 10 Apr 2020 21:56:11 +0000 (16:56 -0500)]
imx-sc-firmware: Fix the license as Proprietary

The package license was set incorrectly as MIT. The license is
Proprietary.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agofsl-eula-unpack.bbclass: Enhance EULA model
Tom Hochstein [Wed, 18 Mar 2020 20:01:07 +0000 (15:01 -0500)]
fsl-eula-unpack.bbclass: Enhance EULA model

Each new version of the EULA is meant to be a click
through that includes any existing packages with an
older EULA. The latest EULA is also copied in the
layer.

Capture this model in the class by listing the
known EULAs and checking that any package
has a known EULA. The new model also allows
extensibility, so new EULAs can be introduced
separately.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit a9015f8b1116f253af58b185a89440486ceee131)

5 years agofsl-eula-unpack.bbclass: Verify LICENSE contains Proprietary
Tom Hochstein [Tue, 3 Mar 2020 20:30:45 +0000 (14:30 -0600)]
fsl-eula-unpack.bbclass: Verify LICENSE contains Proprietary

All EULA packages are proprietary, so verify that the recipe LICENSE
contains Proprietary before fetching the package.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit b8b557ff8b667f74064f8badd490b6ece4945ff9)

5 years agoRevert "optee-[client,test]: upgrade to 4.19.35_1.1.0"
Chris Dimich [Mon, 13 Apr 2020 18:19:43 +0000 (11:19 -0700)]
Revert "optee-[client,test]: upgrade to 4.19.35_1.1.0"

This reverts commit 5fdac18a1f4daed214e07af014d068b7b6196f5c.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
5 years agoRevert "optee-os: update to 4.19.35_1.1.0 and introduce imx8mn config"
Chris Dimich [Mon, 13 Apr 2020 18:18:02 +0000 (11:18 -0700)]
Revert "optee-os: update to 4.19.35_1.1.0 and introduce imx8mn config"

This reverts commit 375e31d47372a51adf1f228547bf7829ba1ca60a.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
5 years agoRevert "imx-atf: add platform definition for i.MX8M Nano"
Chris Dimich [Mon, 13 Apr 2020 18:16:08 +0000 (11:16 -0700)]
Revert "imx-atf: add platform definition for i.MX8M Nano"

This reverts commit 70150376c8ab00b8b77de576e5a3e2894256e843.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
5 years agoRevert "imx-atf_2.0.bb: Update branch and revision for 4.19.35_1.1.0"
Chris Dimich [Mon, 13 Apr 2020 18:10:26 +0000 (11:10 -0700)]
Revert "imx-atf_2.0.bb: Update branch and revision for 4.19.35_1.1.0"

This reverts commit 54d14f17ebd961dc7cb9ef89b76613218fb7562d.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
5 years agooptee-[client,test]: upgrade to 4.19.35_1.1.0
Andrey Zhizhikin [Mon, 6 Jan 2020 16:58:20 +0000 (16:58 +0000)]
optee-[client,test]: upgrade to 4.19.35_1.1.0

This upgrade is required to support new i.MX8M Nano SoC and is also
aligned with all optee-imx components.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit 020d81896bba5f6cb1dae0f352854ce4d57374e8)

5 years agooptee-os: update to 4.19.35_1.1.0 and introduce imx8mn config
Andrey Zhizhikin [Mon, 6 Jan 2020 16:54:36 +0000 (16:54 +0000)]
optee-os: update to 4.19.35_1.1.0 and introduce imx8mn config

In order to support new i.MX8M Nano SoC, optee-os should be upgraded to
use the imx_4.19.35_1.1.0 branch, which contains the support for new
machine.

In addition, introduce additional PLATFORM_FLAVOR for new imx8mnevk
machine.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit 866e460572ee6fb0398036fb8c1b33966669e086)

5 years agoimx-atf: add platform definition for i.MX8M Nano
Andrey Zhizhikin [Mon, 6 Jan 2020 16:49:58 +0000 (16:49 +0000)]
imx-atf: add platform definition for i.MX8M Nano

Add platform definition parameter for i.MX8M Nano SoC, support for it is
already integrated in component source code.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit dab2045044e6aea158596aa298206e7b36b70552)

5 years agoimx-atf_2.0.bb: Update branch and revision for 4.19.35_1.1.0
Cristinel Panfir [Fri, 13 Dec 2019 14:02:36 +0000 (16:02 +0200)]
imx-atf_2.0.bb: Update branch and revision for 4.19.35_1.1.0

Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
(cherry picked from commit 615174d8bf1c937f22a45e940fda50ef7548f491)

5 years agoweston-init: use g2d for i.MX8M Nano SoC
Andrey Zhizhikin [Mon, 6 Jan 2020 16:51:57 +0000 (16:51 +0000)]
weston-init: use g2d for i.MX8M Nano SoC

Use 2D acceleration for i.MX8M Nano SoC.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit b3f51ab82838a67146d5b6fcf8f19d36c5efeb37)

5 years agoimx-boot: add support for i.MX8M Nano EVK
Andrey Zhizhikin [Mon, 6 Jan 2020 17:01:08 +0000 (17:01 +0000)]
imx-boot: add support for i.MX8M Nano EVK

Add ATF and platform machine definitions for i.MX8M Nano SoC in order to
generate boot images. This mainly follows the setup done for i.MX8M Mini.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit 9babcb15e4cbe204dfa7421d35945e1aa1f08a03)

5 years agoimx-base: add common defines for imx8m nano soc
Andrey Zhizhikin [Mon, 6 Jan 2020 17:03:44 +0000 (17:03 +0000)]
imx-base: add common defines for imx8m nano soc

Add necessary machine defines and overrides required to support i.MX8M
Nano SoC and is similar to i.MX8M Mini SoC.

New SoC lacks VPU support, therefore it is excluded from
MACHINEOVERRIDES_EXTENDER, leaving only GPU-related features.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit 525821a6299a5c4b502558c87ac876fb13de8a24)

5 years agoimx-base.inc: add uboot entrypoint for mx8mm
Ricardo Salveti [Mon, 16 Dec 2019 14:37:29 +0000 (11:37 -0300)]
imx-base.inc: add uboot entrypoint for mx8mm

Default u-boot load address is set to 0x40480000 but fitImage
support requires the UBOOT_ENTRYPOINT to be defined as well, so
just extend imx-base.inc to also include a default uboot entrypoint
for mx8mm.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
(cherry picked from commit 62178407d2612f2cb51430d149563d9266a262aa)

5 years agooptee-imx: add (backported) patches for GCC 9 & musl
André Draszik [Tue, 24 Dec 2019 08:23:32 +0000 (08:23 +0000)]
optee-imx: add (backported) patches for GCC 9 & musl

See the individual patches - all patches are simply
backports from optee upstream releases.

Signed-off-by: André Draszik <andre.draszik@jci.com>
(cherry picked from commit 8b51ea3dafe9c5ac667a918911fb8f1050fc8897)

5 years agolinux-fslc-lts-4.19: upgrade to 4.19.107
Andrey Zhizhikin [Thu, 5 Mar 2020 09:49:49 +0000 (09:49 +0000)]
linux-fslc-lts-4.19: upgrade to 4.19.107

This upgrade includes the merge of v4.19.107 tag and backport of
upstream patch [0ada120c883d4f1f6aafd01cf0fbb10d8bbba015], which
addresses the perf build issue when latest binutils are used.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
(cherry picked from commit 61aeaa3da4251f62d4414217abb2126734c7066b)

5 years agoRevert "fsl-eula-unpack.bbclass: Enhance EULA model"
Otavio Salvador [Fri, 27 Mar 2020 23:23:10 +0000 (20:23 -0300)]
Revert "fsl-eula-unpack.bbclass: Enhance EULA model"

This reverts commit 49291d13e6c0a555e10fcfb12f550fbf6eba3e19.

5 years agofsl-eula-unpack.bbclass: Enhance EULA model
Tom Hochstein [Wed, 18 Mar 2020 20:01:07 +0000 (15:01 -0500)]
fsl-eula-unpack.bbclass: Enhance EULA model

Each new version of the EULA is meant to be a click
through that includes any existing packages with an
older EULA. The latest EULA is also copied in the
layer.

Capture this model in the class by listing the
known EULAs and checking that any package
has a known EULA. The new model also allows
extensibility, so new EULAs can be introduced
separately.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit d24d046766e8b6ebcde17c9243f8527125f1115d)

5 years agofsl-eula-unpack.bbclass: Cleanup
Tom Hochstein [Wed, 18 Mar 2020 14:55:57 +0000 (09:55 -0500)]
fsl-eula-unpack.bbclass: Cleanup

- Remove current working directory handling and use
  the equivalent runfetchcmd workdir parameter
- Simplify the SRC_URI for loop

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit fee27818df40719c62bddde717737fb30cef3013)

5 years agoglmark2: don't build drm flavours for machines not supporting it
Max Krummenacher [Mon, 16 Mar 2020 09:55:08 +0000 (10:55 +0100)]
glmark2: don't build drm flavours for machines not supporting it

imx-gpu-viv_6.4.0.p1.0-aarch32 does not provide virtual/libgbm and thus
a build with drm* in PACKAGECONFIG does fail.
Thus remove drm* from PACKAGECONFIG for those machines.

| ERROR: Nothing PROVIDES 'virtual/libgbm' (but .../glmark2_git.bb DEPENDS on or otherwise requires it)
| gpulib PROVIDES virtual/libgbm but was skipped: incompatible with machine

fixes: 7801868f glmark2: Remove bbappend

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 340f3f2bcc7bcf7f5f3abad9973ac745571fd571)

5 years agoglmark2: Remove bbappend
Joshua Watt [Tue, 10 Mar 2020 19:51:56 +0000 (14:51 -0500)]
glmark2: Remove bbappend

The default PACKAGECONFIG for glmark2 builds just fine on imxgpu3d and
imxgpu2d platforms, and doing so enables support for the drm based
tests.

Tested on imx8mq and imx8qm

Backport to zeus

Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
(cherry picked from commit 7801868f4969bc3f93f9d419e7852206e45fad53)

5 years agoRevert "fsl-eula-unpack.bbclass: Facilitate downstream EULA update"
Otavio Salvador [Wed, 4 Mar 2020 00:15:59 +0000 (21:15 -0300)]
Revert "fsl-eula-unpack.bbclass: Facilitate downstream EULA update"

This reverts commit 07ea4fbb111ea57eb77c80e294d3462ce263d57d.

5 years agofsl-eula-unpack.bbclass: Facilitate downstream EULA update
Tom Hochstein [Tue, 3 Mar 2020 21:48:16 +0000 (15:48 -0600)]
fsl-eula-unpack.bbclass: Facilitate downstream EULA update

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agolinux-fslc: Update to use 5.4.x version
Fabio Berton [Wed, 19 Feb 2020 18:19:23 +0000 (15:19 -0300)]
linux-fslc: Update to use 5.4.x version

Update to tag v5.4.20 and sync defconfig files.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
(cherry picked from commit 66a2169bd2e449856e1eb6891d8383a60365936d)

5 years agomesa: Allow to use Etnaviv with i.MX8
Frieder Schrempf [Thu, 13 Feb 2020 11:37:46 +0000 (12:37 +0100)]
mesa: Allow to use Etnaviv with i.MX8

Currently the settings for i.MX8 are fixed to only allow to use
OSMesa for offscreen rendering. Actually etnaviv is usable on
i.MX8MM an it should therefore be possible to let Gallium be
enabled instead of unconditionally disabling it.

Therefore we introduce the USE_OSMESA_ONLY variable, that can be
set to "no" for i.MX8 if etnaviv should be used just like for i.MX6.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
(cherry picked from commit deb2f61f227dcb31ed41629c98e5e5e1edf3afec)

5 years agomesa: Use PACKAGECONFIG to enable Gallium drivers
Frieder Schrempf [Thu, 13 Feb 2020 11:29:29 +0000 (12:29 +0100)]
mesa: Use PACKAGECONFIG to enable Gallium drivers

We don't need to manipulate the GALLIUMDRIVERS variable. Setting the
correct PACKAGECONFIG options is enough as the main recipe handles
the rest.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
(cherry picked from commit 494ed8c9b7b211397ce621a36345539a23433ecc)

5 years agoimx-imx-boot-bootpart.wks.in: Fix overlap of imx-boot and boot partitions
Tom Hochstein [Wed, 12 Feb 2020 01:03:18 +0000 (19:03 -0600)]
imx-imx-boot-bootpart.wks.in: Fix overlap of imx-boot and boot partitions

The u-boot env offset in the imx-boot partition is 4MiB,
so set the boot partition alignment to 8MiB to fix the overlap.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-imx-boot-bootpart.wks.in: Fix the layout comment
Tom Hochstein [Tue, 11 Feb 2020 22:42:34 +0000 (16:42 -0600)]
imx-imx-boot-bootpart.wks.in: Fix the layout comment

The layout comment was incorrect. It was missing the start of the
rootfs and what was there wasn't updated when the boot partition
was increased to 64MiB.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agofsl-vivante-kernel-driver-handler: Fix kernel name in variable assignment
Tom Hochstein [Thu, 16 Jan 2020 16:44:21 +0000 (10:44 -0600)]
fsl-vivante-kernel-driver-handler: Fix kernel name in variable assignment

If the graphics driver is built into the kernel, a warning is generated
for each i.MX kernel recipe, like this:

WARNING: /home/r60874/zeus/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx_5.4.bb: Variable key RPROVIDES_${KERNEL_PACKAGE_NAME}-base ( ${KERNEL_PACKAGE_NAME}-${KERNEL_VERSION}) replaces original key RPROVIDES_kernel-base ( kernel-module-imx-gpu-viv).

The problem is that the kernel name used in variables is no longer a
constant 'kernel', but is now parameterized:

https://github.com/openembedded/openembedded-core/commit/6c8c899849d101fd1b86aad0b8eed05c7c785924

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agolinux-fslc(-lts): add CONFIG_NET_SCH_FQ_CODE=y and necessary depends
Andreas Müller [Wed, 5 Feb 2020 17:02:44 +0000 (18:02 +0100)]
linux-fslc(-lts): add CONFIG_NET_SCH_FQ_CODE=y and necessary depends

Otherwise modern systemd complains:

| Feb 05 13:22:36 some-host systemd-sysctl[186]: Couldn't write 'fq_codel' to 'net/core/default_qdisc', ignoring: No such file or directory
| Feb 05 13:22:36 some-host systemd-sysctl[186]: Couldn't write '1' to 'net/ipv4/tcp_syncookies', ignoring: No such file or directory

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 33410da17f40dd949d29d1daa20c2c89b6741ce5)

5 years agofirmware-imx: remove sdma-imx6q.bin and sdma-imx7d.bin
Joris Offouga [Wed, 22 Jan 2020 11:39:42 +0000 (12:39 +0100)]
firmware-imx: remove sdma-imx6q.bin and sdma-imx7d.bin

This files is already provide by linux-firmware

Signed-off-by: Joris Offouga <offougajoris@gmail.com>
5 years agopktgen-dpdk: Remove redundant EXTRA_CFLAGS settings
Chunrong Guo [Fri, 27 Dec 2019 01:49:30 +0000 (09:49 +0800)]
pktgen-dpdk: Remove redundant EXTRA_CFLAGS settings

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoudev-rules-qoriq: add 73-fsl-enetc-networking.rules to qoriq-arm64
Chunrong Guo [Fri, 27 Dec 2019 01:47:44 +0000 (09:47 +0800)]
udev-rules-qoriq: add 73-fsl-enetc-networking.rules to qoriq-arm64

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agolibpkcs11: install all app
Chunrong Guo [Tue, 24 Dec 2019 01:50:13 +0000 (09:50 +0800)]
libpkcs11: install all app

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agols1021atwr: update UBOOT_CONFIG
Chunrong Guo [Tue, 24 Dec 2019 01:48:19 +0000 (09:48 +0800)]
ls1021atwr: update UBOOT_CONFIG

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agotsntool: do configure task depends on do_shared_workdir task
Chunrong Guo [Tue, 24 Dec 2019 01:45:45 +0000 (09:45 +0800)]
tsntool: do configure task depends on do_shared_workdir task

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agols1028ardb: update machine config *set default rcw to rcw_1500_gpu600
Chunrong Guo [Tue, 24 Dec 2019 01:44:05 +0000 (09:44 +0800)]
ls1028ardb: update machine config *set default rcw to rcw_1500_gpu600

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoddr-phy: remove fsl-eula-unpack class
Chunrong Guo [Mon, 23 Dec 2019 01:48:50 +0000 (09:48 +0800)]
ddr-phy: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agomc: remove fsl-eula-unpack class
Chunrong Guo [Mon, 23 Dec 2019 01:47:14 +0000 (09:47 +0800)]
mc: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agouefi: remove fsl-eula-unpack class
Chunrong Guo [Mon, 23 Dec 2019 01:45:46 +0000 (09:45 +0800)]
uefi: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoppfe-firmware: remove fsl-eula-unpack class
Chunrong Guo [Mon, 23 Dec 2019 01:44:37 +0000 (09:44 +0800)]
ppfe-firmware: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agofm-ucode: remove fsl-eula-unpack class
Chunrong Guo [Fri, 20 Dec 2019 07:09:16 +0000 (15:09 +0800)]
fm-ucode: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoqe-ucode: remove fsl-eula-unpack class
Chunrong Guo [Fri, 20 Dec 2019 07:04:55 +0000 (15:04 +0800)]
qe-ucode: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agols2-phy: remove fsl-eula-unpack class
Chunrong Guo [Fri, 20 Dec 2019 07:01:45 +0000 (15:01 +0800)]
ls2-phy: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoinphi: remove fsl-eula-unpack class
Chunrong Guo [Fri, 20 Dec 2019 06:59:11 +0000 (14:59 +0800)]
inphi: remove fsl-eula-unpack class

Binary EULA, but the "inherit fsl-eula-unpack"
forces the user to accept a much more elaborate license

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agolinux-fslc-lts-4.19: Add CONFIG_USER_NS
Andreas Müller [Wed, 27 Nov 2019 12:36:55 +0000 (13:36 +0100)]
linux-fslc-lts-4.19: Add CONFIG_USER_NS

upower >= 0.99.11 does not start and complains:

| systemd[950]: upower.service: Failed to set up user namespacing: Invalid argument

Inspired by [1]

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939510

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 1657dede51929c342f9998be7d3b34f7f27daf1f)

5 years agooptee-os_3.2.0: change PLATFORM_FLAVOR for imx6ulz14x14evk
Clement Faure [Tue, 26 Nov 2019 14:02:04 +0000 (15:02 +0100)]
optee-os_3.2.0: change PLATFORM_FLAVOR for imx6ulz14x14evk

The platform flavor 'mx6ulzevk' has been added to Optee-OS.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
(cherry picked from commit 0812b771626eda0ac8854b0d2bfe7e92045ffe39)

5 years agolinux-fslc-imx_4.9: resolve version for cve scans
Andrey Zhizhikin [Tue, 19 Nov 2019 22:07:53 +0000 (22:07 +0000)]
linux-fslc-imx_4.9: resolve version for cve scans

CVE scanner is unable to parse the version of linux kernel recipe, which
caused warnings to be produced during the scan task since kernel version
was not properly identified.

This was caused by the fact that CVE_VERSION is set per default to PV,
and PV of this receipe does nto resolve in a proper (and actual) kernel
version provided.

By setting CVE_VERSION to explicitly point to KERNEL_VERSION, this recipe
effectively provides a proper kernel version to CVE scanner.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agolinux-fslc-imx_4.9-1.0.x: replace patchset to the one from stable
Andrey Zhizhikin [Tue, 19 Nov 2019 20:02:51 +0000 (20:02 +0000)]
linux-fslc-imx_4.9-1.0.x: replace patchset to the one from stable

Replace the patchset, which resolves kernel compilation issues when gcc9
is used. Original patchset introduced here was the initial commit that
solved the issue, while this patchset is cherry-picked from stable tree
branch linux-4.9.y and included included in v4.9.188 upwards.

Once linux-fslc-imx would get updated past v4.9.188 - this patchset
should be removed from the layer.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
5 years agoaiopsl: fix missing path
Chunrong Guo [Wed, 13 Nov 2019 06:00:48 +0000 (14:00 +0800)]
aiopsl: fix missing path

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot4240rdb-64b: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 05:54:31 +0000 (13:54 +0800)]
t4240rdb-64b: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot4240rdb : update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:44:36 +0000 (12:44 +0800)]
t4240rdb : update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot2080rdb-64b : update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:43:08 +0000 (12:43 +0800)]
t2080rdb-64b : update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot2080rdb : update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:41:52 +0000 (12:41 +0800)]
t2080rdb : update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot1042d4rdb: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:40:16 +0000 (12:40 +0800)]
t1042d4rdb: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot1042d4rdb-64b: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:33:28 +0000 (12:33 +0800)]
t1042d4rdb-64b: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot1024rdb: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:11:31 +0000 (12:11 +0800)]
t1024rdb: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agot1024rdb-64b: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:08:41 +0000 (12:08 +0800)]
t1024rdb-64b: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop5040ds-64b: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:05:49 +0000 (12:05 +0800)]
p5040ds-64b: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop5040ds: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:04:04 +0000 (12:04 +0800)]
p5040ds: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop4080ds: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:01:34 +0000 (12:01 +0800)]
p4080ds: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop3041ds: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 04:00:13 +0000 (12:00 +0800)]
p3041ds: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop2041rdb: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 03:58:26 +0000 (11:58 +0800)]
p2041rdb: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop2020rdb: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 03:56:52 +0000 (11:56 +0800)]
p2020rdb: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agop1020rdb: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 03:53:34 +0000 (11:53 +0800)]
p1020rdb: update UBOOT_CONFIG

*update uboot image name for boot config

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agompc8548cds: update UBOOT_CONFIG
Chunrong Guo [Wed, 13 Nov 2019 03:47:52 +0000 (11:47 +0800)]
mpc8548cds: update UBOOT_CONFIG

*change uboot image name to u-boot-with-dtb.bin for NOR boot defconfig,

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agoweston-init: Keep the logic to edit weston.ini to meta-freescale
Khem Raj [Mon, 18 Nov 2019 20:49:55 +0000 (12:49 -0800)]
weston-init: Keep the logic to edit weston.ini to meta-freescale

This logic does not work across multiple layers even OE-Core machines
dont build with it. For now its best to keep this confined to
meta-freescale machines

Idea is good but it needs to align with OE-core's methods where
currently in OE-Core we expect machines to override weston.ini
completely per machine, this logic sort of goes against it. However it
has some goodness to it, eg. adding options based on DISTRO_FEATURES
which OE-Core could have too but maybe implemented differently.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agolinux-fslc-imx_4.9-1.0.x: Backport patches to fix building with gcc 9
Tom Hochstein [Fri, 15 Nov 2019 00:09:36 +0000 (18:09 -0600)]
linux-fslc-imx_4.9-1.0.x: Backport patches to fix building with gcc 9

Closes #192.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Move xwayland config to weston.ini
Tom Hochstein [Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)]
weston: Move xwayland config to weston.ini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Replace copies of weston.ini with logic
Tom Hochstein [Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)]
weston: Replace copies of weston.ini with logic

Install a common base weston.ini and then customize
it in the recipe by specifying custom options.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Use G2D as default renderer for 7ULP
Tom Hochstein [Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)]
weston: Use G2D as default renderer for 7ULP

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston: Move use-g2d option for 8M Mini to weston.ini
Tom Hochstein [Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)]
weston: Move use-g2d option for 8M Mini to weston.ini

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoweston-init: Move weston.ini install to weston-init
Tom Hochstein [Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)]
weston-init: Move weston.ini install to weston-init

OE-core now installs weston.ini from weston-init, so align our
recipe to do the same.

The IVI dynamic layer now has a copy of the weston.ini file
that is normally produced by the weston build.

The AGL dynamic layer now uninstalls the weston.ini installed
upstream.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agoimx-base.inc: Remove unused variable SDCARD_ROOTFS
Tom Hochstein [Mon, 11 Nov 2019 18:53:57 +0000 (12:53 -0600)]
imx-base.inc: Remove unused variable SDCARD_ROOTFS

Looks like the variable was accidentally re-introduced.

https://github.com/Freescale/meta-freescale/commit/2cbca9a255674649730b3f440a6142cf16030267

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
5 years agooptee-imx: Make it imx specific
Khem Raj [Sat, 9 Nov 2019 23:26:53 +0000 (15:26 -0800)]
optee-imx: Make it imx specific

Fails to build on qemu
| core/arch/arm/plat-imx/conf.mk:112: *** Unsupported PLATFORM_FLAVOR "emuarm".  Stop.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 years agooptee: Add support for optee imx fork to imx8mqevk
Peter Griffin [Fri, 25 Oct 2019 09:04:01 +0000 (11:04 +0200)]
optee: Add support for optee imx fork to imx8mqevk

optee imx fork like most other imx forked components is
more fully featured for imx devices and supports things
like CAAM accleration.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agooptee-client: Add support for optee-client imx fork
Peter Griffin [Fri, 25 Oct 2019 09:34:53 +0000 (11:34 +0200)]
optee-client: Add support for optee-client imx fork

This also includes some backported gcc 8 fixes from upstream.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agooptee-test: add optee-test imx fork
Peter Griffin [Fri, 25 Oct 2019 09:30:40 +0000 (11:30 +0200)]
optee-test: add optee-test imx fork

This also includes some backported gcc 8 fixes from
upstream.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agooptee-os: add optee-os imx fork
Peter Griffin [Fri, 25 Oct 2019 09:37:08 +0000 (11:37 +0200)]
optee-os: add optee-os imx fork

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
5 years agovpp-core: install startup.conf
Chunrong Guo [Thu, 7 Nov 2019 07:31:55 +0000 (15:31 +0800)]
vpp-core: install startup.conf

* fix missing startup.conf

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
5 years agomachine: Remove unused variables BOOT_SPACE and SDCARD_ROOTFS
Tom Hochstein [Wed, 6 Nov 2019 20:21:08 +0000 (14:21 -0600)]
machine: Remove unused variables BOOT_SPACE and SDCARD_ROOTFS

BOOT_SPACE and SDCARD_ROOTFS are no longer used with the move to wic.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>