Commit Graph

355 Commits

Author SHA1 Message Date
Tom Hochstein
d5af93ff86 layer.conf: Bump to kirkstone
It's not backward ABI compatible with honister due to variable renaming.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-02-22 13:50:47 -03:00
Tom Hochstein
6e61e90e45 fslc-base.inc: Allow override of BUILDHISTORY_COMMIT
The user cannot disable buildhistory from local.conf because it is set
in fslc-base.inc. Use a default setting instead.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-02-18 14:46:49 -03:00
Andrey Zhizhikin
3d8f489871 recipes-graphics: correct fetch links using github
This fixes warnings from Bitbake, which were introduced to adhere to
GitHub requirements [1].

Link: [1]: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2022-02-18 10:36:56 -03:00
Andrey Zhizhikin
c99cb8577e layer: set missing branch and protocol for recipes using git
Recent Bitbake update introduced following commits in attempt to adapt
to new requirement from GitHub [1]:
86a9c268 ("fetch2/git: Add a warning asking users to set a branch in git urls")
42526a40 ("fetch/git: Show warning for invalid github urls")

There is a warning issued for those recipes that either do not
explicitly provide branch parameter to the Bitbake fetcher, or still
using unauthenticated git:// protocol.

Adapt recipes across layer to accommodate for those new requirements.

Link: [1]: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-11-10 08:52:23 -03:00
Tom Hochstein
d2e27cc477 assimp: Replace failing patch
The patch to remove non-compliant source fails due to the existence of
binaries.

Drop the patch and instead remove the non-compliant source manually
from do_unpack.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-09-22 14:51:37 -03:00
Tom Hochstein
f00804ef8a assimp: Add recipe
The recipe assimp was dropped from OE-core due to license issues and the
lack of any dependency.

The recipe is needed by imx-gpu-sdk, so copy it locally, with an extra
patch to remove the license issues.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-09-14 17:28:09 -03:00
Tom Hochstein
240875a3e3 fslc-base.inc: Fix fslc overrides
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-09-13 20:33:09 -03:00
Tom Hochstein
ff0076e26d weston-init: Set XDG_RUNTIME_DIR manually
The variable is not set for ssh or console, causing app failures. It's
not clear if this is an error or by design, but setting it manually
does help and doesn't seem to hurt.

Set for fsl and fslc distros.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-09-13 20:33:09 -03:00
Tom Hochstein
cd926ddf8d fsl-base.inc: Set gstreamer preferred version to 1.18.0[.imx]
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-09-11 15:21:18 -03:00
Chris Dimich
819524f714 fsl-image-multimedia: conditionally add weston to IMAGE_FEATURES
If wayland is in DISTRO_FEATURES weston is installed in
CORE_IMAGE_EXTRA_INSTALL so include it in IMAGE_FEATURES as well.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2021-09-02 14:29:49 -03:00
Andrey Zhizhikin
3b5b14e5f9 conf: distro: use proper syntax to define init system
Since OE-Core commit 8d0b4704a5 ("defaultsetup.conf: enable select init
manager"), init manager setting is moved to a separate variable and
simplified.

Yocto documentation [1] suggests that the new syntax should be used to
define init manager in distro definitions.

Convert all syntax to use new init system selection.

Link: [1]: https://docs.yoctoproject.org/singleindex.html#init-system-selection
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-09-02 08:42:09 -03:00
Andrey Zhizhikin
16bde69490 Revert "packagegroup-fsl-tools-gpu: exclude broken imx-gpu-apitrace"
imx-gpu-apitrace package has additional patch and can be build with
glibc >= 2.34

This reverts commit 92c75c69e2.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-09-02 08:16:48 -03:00
Andrey Zhizhikin
92c75c69e2 packagegroup-fsl-tools-gpu: exclude broken imx-gpu-apitrace
imx-gpu-apitrace package build is broken since glibc 2.34+ since
upstream version used the glibc private API version and does not
have a solution yet, see [1].

Exclude the imx-gpu-apitrace package from package group until it is
updated to be compatible with newer glibc.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Link: [1]: https://github.com/apitrace/apitrace/issues/756
2021-08-18 08:42:30 -03:00
Tom Hochstein
5e24e69875 layer: Adjust more overrides
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-08-13 13:42:46 -03:00
Daiane Angolini
b0e1fcf2ab Convert to new override syntax
Result of script poky/scripts/contrib/convert-overrides.py

Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
2021-08-13 13:42:46 -03:00
Daiane Angolini
0420615ba7 layer.conf: Drop compatibility with older than hardknott releases
New override syntax requires it

Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
2021-08-13 13:42:46 -03:00
Vinicius Aquino
18b505eeb3 cicd: backport: Fix events allowing the workflow to run
Even when using pull_request_target, the merged is issued as
pull_request and this should be used to ensure we can run the workflow.

Signed-off-by: Vinicius Aquino <vinicius.aquino@ossystems.com.br>
2021-08-09 12:35:17 -03:00
Tom Hochstein
f940e3c1cf fsl-image-machine-test: Add firmwared
1. Firmware loading failure occurs for regulatory.db:

[    3.616070] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.624709] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[   64.473750] cfg80211: failed to load regulatory.db

2. Firmware loading failure occurs for imx-sdma if set to builtin:

[   64.474069] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[   64.496589] imx-sdma 20ec000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx6q.bin</div>
[  125.913831] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware

Add firmwared to the image to provide firmware loading for the
firmware fallback mechanism.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-07-20 13:29:26 -03:00
Tom Hochstein
0edf697d0b fsl-base.inc: Set linux-imx-mfgtool as preferred provider
Prevent multiple providers:

```
ERROR: Multiple .bb files are due to be built which each provide linux-mfgtool:
  /opt/work/upstream/sources/meta-freescale/recipes-kernel/linux/linux-imx-mfgtool_5.10.bb
  /opt/work/upstream/sources/meta-freescale/recipes-kernel/linux/linux-fslc-lts-mfgtool_5.10.bb
```

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-07-09 15:23:47 -03:00
Vinicius Aquino
1a4aba98d8 cicd: Add backport workflow
This allow for easier backport of PRs to existing releases.

Signed-off-by: Vinicius Aquino <vinicius.aquino@ossystems.com.br>
2021-07-07 09:28:08 -03:00
Andrey Zhizhikin
a5ab98ee29 fsl-image-multimedia: remove clutter-1.0-examples
OE-Core upstream commit 8431708201 ("Remove Clutter and Cogl") has
dropped the support for clutter package and removed recipe from the base
layer.

Drop inclusion of clutter-1.0-examples from the image as the recipe
providing it is not available any longer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-06-05 14:31:37 -03:00
Andrey Zhizhikin
d3c1cc7dd2 packagegroup-fsl-tools-testapps: remove clutter-1.0-examples
OE-Core upstream commit 8431708201 ("Remove Clutter and Cogl") has
dropped the support for clutter package and removed recipe from the base
layer.

Drop inclusion of clutter-1.0-examples from the package group as the
recipe providing it is not available any longer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-06-05 14:31:37 -03:00
Andrey Zhizhikin
d94fbaad1e imx-gpu-sdk: upgrade to 5.7.1
Upgrade GPU SDK to latest release 5.7.1 from upstream.

----
Release 5.7.1
- Compatible with GCC11
- Fixed G2D dependency issue.
- Fixed android compilation issues.
- Added some notes to help people that hit a "access denied" error when trying to run the visual studio cmake project.
- Updated to OpenCV 4.5.2
----

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-05-06 17:41:15 -03:00
Andrey Zhizhikin
122bec148c imx-gpu-sdk: upgrade to 5.7.0
Upgrade GPU SDK to latest release 5.7.0 from upstream.

----
Release 5.7.0

* Python 3.6 or better is now required
* Updated all setup guides.
* Windows and Ubuntu now uses cmake find_package to locate the system OpenCL implementation.
  This removes the the dependency on the deprecated AMD App SDK.
* Samples:
  * New Vulkan sample: Vulkan.GenerateMipMaps
  * New Vulkan sample: Vulkan.ShaderClock sample (VK_KHR_shader_clock)
  * Vulkan samples updated to utilize the new mipmap generation code.
* Build tools:
  * FslBuildCheck.py clang tidy now defaults to use cmake for dependencies. Legacy mode can still be used by adding ```--legacy```.
  * FslBuild on windows now defaults to the cmake visual studio generator.
  * FslBuild now support package flavors.
  * **Breaking change** FslBuild removed support for dynamic variants.
  * **Breaking change** FslBuild custom Visual Studio project generator no longer use dynamic variants for the OpenGL ES and OpenVG emulation.
    This means we no longer generate a the ```.StartProject.bat``` file. The user is now responsible calling ```ConfigureOpenGLESEmu.bat```
    to configure the OpenGL ES emulator before launching the project.. Its recommended to call this right after the prepare.bat file.
* Dependencies:
  * Upgraded FMT to 7.1.
  * Upgraded GLM to 0.9.9
  * Upgraded GLI to master branch snapshot (0c171ee87fcfe35a7e0e0445adef06f92e0b6a91)
  * Upgraded RapidVulkan to 1.2.162
----

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-05-06 17:41:15 -03:00
Andrey Zhizhikin
8fc4355dce gli: upgrade to 0.8.4.0
This version is required by the GPU SDK 5.7.0 and higher, see [1].

Switch branch to master, sync up to commit 0c171ee8 ("Clean up") and
drop patches already applied upstream.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Link: [1] https://github.com/NXPmicro/gtec-demo-framework/releases/tag/5.7.0
2021-05-06 17:41:15 -03:00
Andrey Zhizhikin
2f3fa61232 rapidvulkan: upgrade to 1.2.162.0
This version is required by GPU SDK 5.7.0

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-05-06 17:41:15 -03:00
Andrey Zhizhikin
36264e4abf gli: backport upstream patches to resolve gcc11 build
According to the GCC11 Porting Guide [1], error is issued on ordered
pointer comparison with integer which causes the following build
failure:

| test/core/core_convert.cpp:35:85: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
|    35 |         if(std::strstr(FilenameDst, ".dds") > 0 || std::strstr(FilenameDst, ".ktx") > 0)
|       |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~

Backport upstream patch to correct the ordered comparison.

Link: [1] https://gcc.gnu.org/gcc-11/porting_to.html
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-05-05 08:12:06 -03:00
Otavio Salvador
b0ab9f02cf distro: fslc-base: set version for development
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2021-04-30 09:05:29 -03:00
Otavio Salvador
916df6d24c distro: fslc-base: set version to 3.3
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2021-04-30 09:05:29 -03:00
Nate Drude
567e92a9ad packagegroup-fsl-tools-testapps: Update SOC_TOOLS_TEST
Install imx-test on all i.MX SoCs
Install imx-gpu-viv-demos on all SoCs with GPU
(previously they were missing on SOCs without 2D GPU like the imx8mq)

Signed-off-by: Nate Drude <nate.d@variscite.com>
2021-04-27 17:36:01 -03:00
Nate Drude
789e6a2a58 packagegroup-fsl-tools-gpu: Install imx-gpu-sdk and imx-gpu-viv-tools for all SOCs with GPU
As a result these packages will be installed on all i.MX8 SOCs.
Previously they were missing on SOCs without 2D GPU (e.g. imx8mq).

Signed-off-by: Nate Drude <nate.d@variscite.com>
2021-04-27 17:36:01 -03:00
Vinicius Aquino
9fec9e6a83 distro/fsl-x11: Remove fsl-x11 distro
x11 is not supported by NXP/Freescale anymore.
(Mentioned on Pull Request #702 at meta-freescale)

Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
2021-04-20 17:16:08 -03:00
Tom Hochstein
e676667720 fsl-base.inc: Simplify default selection of u-boot-imx
Use the new variable IMX_DEFAULT_BOOTLOADER to select u-boot-imx as
the default for the distro.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-03-13 13:19:15 -03:00
Tom Hochstein
0dded24a2c fsl-base.inc: Remove u-boot-imx overrides
The u-boot settings in imx6qdlsabresd, imx6qdlsabreauto, and imx6ulevk are
set to values that are correct for u-boot-fslc. Attempts to override these
settings to fix u-boot-imx builds have broken u-boot-fslc builds, and
vice versa. The u-boot-imx build is currently broken:

```
| install: cannot stat '/opt/work/upstream/fsl-xwayland/tmp/work/imx6qdlsabresd-fsl-linux-gnueabi/u-boot-imx/2020.04-r0/build/u-boot.img': No such file or directory
```

The overall design is reworked, and the overrides here are simply dropped.

Fixes: 880dbf2 ("fsl-base.inc: use conditional assignment for base variables")
Fixes: e83f54d ("machines: imx-base.inc: fix failing u-boot builds")
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-03-13 13:19:15 -03:00
Andrey Zhizhikin
1deb1a9032 devil: correct license file to match upstream
Upstream commit 2456f523cf ("licenses: Update license file to match
current SPDX names") deprecated the usage of LGPL-2.1 SPDX identifier,
removed LGPL-2.1 license file and replaced it with LGPL-2.1-only SPDX
identifier and text file.

Adjust recipe to use new SDPX identifier and text file.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-03-04 17:23:07 -03:00
Tom Hochstein
a6208d216e fsl-base.inc: Set -imx providers for all i.MX 8 SoCs
Builds of 8DXL using fsl- distros are incorrectly using -fslc providers instead of -imx
providers. Fix this now and for all future i.MX 8 parts by using the common i.MX 8
override _mx8 instead of trying to maintain a list of all SoC-specific overrides.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-02-08 09:41:43 -03:00
Andrey Zhizhikin
880dbf2951 fsl-base.inc: use conditional assignment for base variables
Base machine-specific variables are now moved to distro, and are
hard-assigned to certain values. This effectively overrides definitions
of same variables in machines, making mx8m machines fail to build with
NXP BSP, as imx-boot package requires SPL to be deployed for it.

Make those assignments as conditional ones, leaving the possibility for
certain machines to re-define them for their own purpose.

Fixes: e83f54d ("machines: imx-base.inc: fix failing u-boot builds")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2021-01-31 18:05:50 -03:00
Max Krummenacher
e83f54d0b7 machines: imx-base.inc: fix failing u-boot builds
If using a fsl-xxx distro the prefered provider of U-Boot is
u-boot-imx. That U-Boot didn't make the switch to a unified dl/q/qp
binary and does not use an spl. For the imx6ulevk it does not use an
spl.

The below commits try to address that, however the change is not
limited to
- the fsl distro but rather uses use-nxp-bsp which can be used with any distro
- some machines which do not use u-boot-imx, e.g. colibri-imx6 now fail.

Fix this by moving the configuration into the affected distro in
meta-freescale-distro and the machines.

This commit and one in meta-freescale Fixes in meta-freescale:
c9757ea3 ("imx-base.inc: Fix use-nxp-bsp after rework")
77e56f30 ("imx-base.inc: Limit use-fsl-bsp u-boot overrides to i.MX 6 and 7")
e5cd33c9 ("u-boot.imx: Add u-boot configuration for fsl")

Build tested with fsl-xwayland & use-nxp-bsp for imx6qdlsabreauto,
imx6qdlsabresd, and imx6ulevk.
Build tested with the fslc-xwayland & use-nxp-bsp for imx6qdlsabreauto,
imx6qdlsabresd, imx6ulevk, and colibri-imx6.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-26 08:24:49 -03:00
Tom Hochstein
9eff18e2e7 imx-gpu-sdk: Remove incorrect 8M Mini runtime dependencies
The 8M Mini configuration does not include rapidopencl or rapidopenvx,
so remove the incorrect runtime dependencies.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-24 21:27:29 -03:00
Pierluigi Passaro
5d9a9cca20 wayland distros: remove sysvinit from DISTRO_FEATURES
All of the wayland based distros add systemd to DISTRO_FEATURES.
However, sysvinit is also added as part of DISTRO_FEATURES_BACKFILL,
set in poky/meta/conf/bitbake.conf.
Remove sysvinit from DISTRO_FEATURES_BACKFILL by adding it to
DISTRO_FEATURES_BACKFILL_CONSIDERED as suggested in
poky/meta/conf/distro/include/init-manager-systemd.inc.

Signed-off-by: Pierluigi Passaro <pierluigi.p@variscite.com>
2020-11-13 19:06:02 -03:00
Tom Hochstein
216e202505 stb: Fix packaging for empty main package
Set ALLOW_EMPTY_${PN} since the main package is empty.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Tom Hochstein
2a54e8cafd glm: Fix packaging for empty main package
Set ALLOW_EMPTY_${PN} since the main package is empty.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Tom Hochstein
cdb48a434a gli: Fix packaging
- Use default packaging since there's no need to override
- Set ALLOW_EMPTY_${PN} since the main package is empty

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Tom Hochstein
cdf2af2ba3 imx-gpu-sdk: Add missing headers to image SDK
OE-core does not add -dev packages to the SDK for recipes
with an empty main package. Work around this issue by adding
a runtime dependency on any such recipes.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Tom Hochstein
876fbd0c2b imx-gpu-sdk: Enable Google test
Build GoogleUnitTest by default.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Tom Hochstein
b61b5b68e3 imx-gpu-sdk: Upgrade to 5.6.1
5.5.3 to 5.6.0:
- This release contains breaking changes.
- Recommendations and examples for designing custom UI systems.
  - FslSimpleUI system now follows these best recommendations and comes with a default theme.
  - This includes DPI aware rendering.
- New samples
  - GLES3.RenderToTexture
  - GLES2, GLES3, Vulkan, SdfFonts
  - GLES2, GLES3, Vulkan, UI.DevNativeTexture2D
  - GLES2, GLES3, Vulkan, UI.DpiScale
  - GLES2, GLES3, Vulkan, UI.PixelPerfect
  - GLES2, GLES3, Vulkan, UI.SmoothScroll
  - GLES2, GLES3, Vulkan, UI.ThemeBasicUI
- Better CMake integration.
  - Release and debug builds now use separate output dirs by default.
  - Better support for CMake generators.
  - CMake + ninja is now the default backend for Ubuntu and Yocto for improved build speed.
  - Ubuntu builds now utilize CMake's find_package support to locate third party dependencies.
- Code modernization with PathView, StringViewLite, NumericCast and Spans.
- Clang tidy + format now requires clang 10.
- Downgraded ninja build system requirement to 1.8.2 from 1.9 for better ubuntu 18.04 compatibility.
- Better display metrics available to all samples.
- Misc: New binary texture atlas format, new bitmap font format with simple kerning.
- NativeBatch upgrades
  - SDF rendering.
  - Pixel perfect bitmap font rendering.
  - New rendering primitives.
- Now require a compiler with proper C++14 constexpr support.
  - This means GCC 5.x and below is not supported.

5.6.0 to 5.6.1:
- Fixed a issue in the basic UI theme for 80dpi.
- Updated Doc/FslSimpleUI.md
- Updated KnownIssues.md
- Upgraded the fmt library to 7.x to improve compile time and reduce exe size.
- Latest build tools

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13 19:05:18 -03:00
Fabio Berton
ff4c662ada distro/fslc-base: Change DISTRO_VERSION to use next Yocto release
Use the Yocto Project Hardknott release version.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-11-12 17:10:15 -03:00
Fabio Berton
135b19d503 conf/layer.conf: Add hardknott to LAYERSERIES_COMPAT
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-11-12 17:10:05 -03:00
Fabio Berton
5b00ef21d2 conf/layer.conf: Support only gatesgarth release
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-11-12 17:06:14 -03:00
Andrey Zhizhikin
11be3f0196 fsl-base.inc: add gstreamer plugin provider for mx8m[m,n,p]
GStreamer plugin provider is not defined for NXP distro and was relying
on the values set in meta-freescale layer.

Define those providers here to point to those provided by NXP, since
this distro include file defines the NXP BSP usage.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-11-04 09:40:32 -03:00