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
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.
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`.
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.
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.
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.
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'.
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.
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.
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.
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.
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.
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
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.
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>
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
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.
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.
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.