Commit Graph

394 Commits

Author SHA1 Message Date
Vishwanath Martur
f7be03965e Add LICENSE file
Related to #104

Add a LICENSE file listing all licenses used by recipes in the meta-freescale-distro layer.

* Create a new `LICENSE` file in the root directory.
* List all the licenses used by the recipes in this layer, including MIT, LGPL-2.0-only, LGPL-2.1-only, BSD-3-Clause, and GPL-3.0-only.
* Include the license names and the corresponding recipes that use them.
2024-11-05 07:59:30 -03:00
Max Krummenacher
76ad02474f layer.conf: Update to walnascar (5.2) layer/release series
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-10-28 08:48:19 -03:00
Max Krummenacher
7845bc7739 layer.conf: Update to styhead
Drop all older release names as there have been potentially incompatible
changes, e.g. the S must not point to WORKDIR.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-09-09 08:18:08 -03:00
Max Krummenacher
1975e2069e half: Fix S = WORKDIR reference
Setting `S = ${WORKDIR}` is no longer allowed. Use the the default
setting of S and move the sources accordingly.
Compare wit OE-core commit 32cba1cc91 ("insane: Error for S == WORKDIR")

Fixes:
ERROR: <xyz>.bb: Using S = ${WORKDIR} is no longer supported

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-05-28 07:26:31 -03:00
Max Krummenacher
c62dda1f0d fsl-rc-local: Fix S = WORKDIR reference
Setting `S = ${WORKDIR}` is no longer allowed. Use the the default
setting of S and move the sources accordingly.
Compare wit OE-core commit 32cba1cc91 ("insane: Error for S == WORKDIR")

Fixes:
ERROR: <xyz>.bb: Using S = ${WORKDIR} is no longer supported

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-05-28 07:26:31 -03:00
Luan Rafael Carneiro
df24feb3e3 include/fslc-base: Update distro version to 5.0
Signed-off-by: Luan Rafael Carneiro <luan.rafael@ossystems.com.br>
2024-05-06 14:14:31 -03:00
Tom Hochstein
158cc55b6e gstreamer: Upgrade 1.22.00.imx -> 1.22.5.imx
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-04-25 08:38:24 -03:00
Max Krummenacher
3691cb207b layer.conf: Update for the scarthgap release series
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2024-03-17 15:09:44 -03:00
Tom Hochstein
abb76fd62c packagegroup-fsl-tools-testapps: Drop fsl-rc-local if no sysvinit
fsl-rc-local is for sysvinit, so include it only when sysvinit is in
DISTRO_FEATURES.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-03-07 16:40:16 -03:00
Mingli Yu
b1dd4d5480 openssh: Remove the bbappend
The bbappend is added to disable rng-tools originally as [1], but the
rng-tools has been already removed in oe-core as [2]. So no need to
keep this bbappend which used to disable rng-tools. And the means used
to disable rng-tools [1] also make the sshd service not work after the
logic [3] introduced.

So remove the useless bbappend.

[1] 131b33554d
[2] https://git.openembedded.org/openembedded-core/commit/?id=868dfb46d96a27ec9041cb902fb769330277257d
[3] https://git.openembedded.org/openembedded-core/commit/?id=bc830ad3c6a11af1a350dca7f33f0682aeee0d21

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
2024-01-18 10:45:47 -03:00
Tom Hochstein
4f1f101eba layers: Add nanbield to LAYERSERIES_COMPAT
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-11-09 17:21:55 -03:00
Max Krummenacher
7956a0ab40 recipes: Update github.com urls to use https
Github has announced there will be no more git:// fetching from their servers:
https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-09-11 08:36:29 -03:00
Tom Hochstein
061397a2c6 gstreamer: Upgrade 1.20.3.imx -> 1.22.0.imx
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-09-06 16:19:17 -03:00
Tom Hochstein
10c7e8fedf weston-init: Drop profile script now handled by OE-Core
The profile script setting WAYLAND_DISPLAY is now handled in OE-Core
and can be dropped.

1600f38d72

Note that our profile script was in fact correct only for the systemd
case, since it's only there that Yocto sets the Wayland socket to the
non-default value `/run/wayland-0`.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-09-06 16:18:54 -03:00
Meng Li
ba24fa45ad meta-freescale-distro: add necessary dependent layers for meta-freescale-distro
When parsing yocto project with command "bitbake -p", there is below
error reported:
layers/meta-freescale-distro/conf/distro/include/fslc-base.inc:1:
Could not include required file conf/distro/poky.conf
Because the necessary dependent layers of meta-freescale-distro
are not downloaded when setting up project, add them to avoid building
issue.

Signed-off-by: Meng Li <Meng.Li@windriver.com>
2023-09-05 08:45:28 -03:00
Vincent Davis Jr
b09c18a3f6 vulkan-validationlayers: remove recipe
Recipe was moved into meta-freescale and renamed.
Patch is presumed to be no longer required so
remove as well.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
2023-06-13 14:15:38 -03:00
Tom Hochstein
54cb972242 imx-gpu-sdk: Upgrade 6.1.0 -> 6.1.1
Release 6.1.1
- GCC13 support.
- Small wayland bug fix.
- Vulkan.NativeWindowTest update.
- New 'feature' to make it easier to filter apps during testing.
- Scr version updated.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-06-07 20:39:46 -03:00
Meng Li
4050f49500 packagegroup-fsl-gstreamer1.0: use corrtect plugin name
According to the oe-core commit fb2d28e0315e("gstreamer1.0:
update 1.20.5 -> 1.22.0"), videoconvert/videoscale plugins were
merged into one. So, remove the obsolete plugin name and use
the corrtect one.

Signed-off-by: Meng Li <Meng.Li@windriver.com>
2023-06-07 08:48:26 -03:00
Chris Dimich
b39735f04f imx-gpu-sdk: Upgrade to 6.1.0
Also add required recipes for new dependencies.

As per NXP langdale-6.1.1-1.0.0 release.

Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com>
2023-06-02 18:40:08 -03:00
Tom Hochstein
48d772f5f3 fsl-base.inc: Use i.MX components for 9 family
Use linux-imx and imx-gst1.0-plugin for 9 family parts.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-05-16 18:33:40 -03:00
Tom Hochstein
b6ee1702a7 fsl-base.inc: Fix gstreamer preferred version
Upgrade gstreamer1.0 recipes 1.20.0.imx -> 1.20.3.imx.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-05-16 18:33:40 -03:00
Max Krummenacher
a4efa17a9f layer.conf: Update LAYERSERIES_COMPAT for mickledore
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-01-04 08:40:03 -03:00
Tom Hochstein
1069c2f210 glslang: Drop local recipe
The local recipe is no longer needed since glslang is now provided in
OE-Core. Note that the recipe in OE-Core is already being chosen over
this one.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-11-15 15:37:46 -03:00
Max Krummenacher
5dcd30467f fslc-base: fix setting of used instruction set
Since openembedded-core commit c88304a78e ("arch-armv7a.inc: default to
Thumb2 instruction set for armv7a and above") a build of an armv7a
based machine defaults to the Thumb2 instruction set. So repeating this
default setting in the distro is not needed and can be completely
removed.

The way Thumb2 is set in the distro is wrong in the first place and
would need fixing anyway.
By setting `ARM_INSTRUCTION_SET:override ??= "..."` this will take
precedence over any assignment to ARM_INSTRUCTION_SET without a
override. So any recipe which wants to force the 'ARM' instruction set
will end up being compiled with Thumb2.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-10-27 08:38:20 -03:00
Tom Hochstein
06752ec1d7 imx-gpu-sdk: Upgrade 5.7.1 -> 6.0.2
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-10-18 15:16:51 -03:00
Tom Hochstein
2153fbd749 imx-gpu-sdk: Don't use BB_NUMBER_THREADS in do_compile
Problem reported by Rasmus Villemoes <rasmus.villemoes@prevas.dk>:

```
The imx-gpu-sdk recipe in the meta-imx layer references
${BB_NUMBER_THREADS} in its do_compile function. Changing
BB_NUMBER_THREADS between bitbake invocations leads to the well-known

  When reparsing ...meta-imx/meta-sdk/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_5.8.0.bb:do_compile, the basehash value changed from 69be88cf220840ff2203e11cfe65681880b0bf9b88db67d50c1ba772b883bd18 to 5e6d5029fac8d7856ada4c2eca359568298f82cdb64567d7dd4deda503d9f83a. The metadata is not deterministic and this needs to be fixed.

This happens because BB_NUMBER_THREADS is in BB_HASHCONFIG_IGNORE_VARS,
so changing it does not cause the recipe to be reparsed, but it is not
included in BB_HASHEXCLUDE_COMMON and thus BB_BASEHASH_IGNORE_VARS.
```

Fix as suggested by Richard Purdie <richard.purdie@linuxfoundation.org>:

```
Technically imx-gpu-sdk is incorrect. BB_NUMBER_THREADS is the number of tasks
bitbake should run. PARALLEL_MAKE is what is used for parallelism in do_compile.

I appreciate that has -j in but you can use: ${@oe.utils.parallel_make(d)} to
obtain the value that recipe needs.
```

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-10-18 15:16:51 -03:00
Ming Liu
23b411cf79 distro:fslc-base.inc: drop bluez5 from DISTRO_FEATURES
Since commit dcf889e93401f7c4de0055d53271eacc3882eccc in OE:
[
    meta: Remove remnants of bluez4 support

    bluez4 was removed from meta-oe 2 years ago.

    Simplfy the setup of the two level bluetooth and bluez4/bluez5
    distro features by removing the bluez4/bluez5 distro features.

    This also removes the no longer required bluetooth class.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
]

bluez5 is no longer a distro feature, and there is no reference to it
neither in Freescale/OE meta layers, let's drop it.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2022-10-05 08:19:55 -03:00
Otavio Salvador
27db351d18 layers: Add langdale to LAYERSERIES_COMPAT
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-10-01 08:32:46 -03:00
Tom Hochstein
f0bcaff5e1 fsl-base.inc: Upgrade gstreamer1.0 1.18.5.imx -> 1.20.0.imx
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-09-08 12:58:39 -03:00
Tom Hochstein
131b33554d openssh: Disable rng-tools
All i.MX beginning with 6 have hardware support for entropy, so there
is no need for rng-tools. Removing it helps startup performance.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-09-08 12:58:39 -03:00
Luan Rafael Carneiro
eb5cb63aba distro/include/fslc-base: Change distro version 3.4 to 4.1
Signed-off-by: Luan Rafael Carneiro <luan.rafael@ossystems.com.br>
2022-04-30 12:02:22 -03:00
Tom Hochstein
074e06ecd7 fsl-base.inc: Downgrade ffmpeg 5.0.0 -> 4.4.1
The i.MX 1.18.5 version of gstreamer1.0-libav is not compatible with
upstream ffmpeg 5.5.0 and results in the follow build errors:

```
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: ext/libav/libgstlibav.so.p/gstavaudenc.c.o: in function `gst_ffmpegaudenc_set_format':
/usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavaudenc.c:246: undefined reference to `avcodec_get_context_defaults3'
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: /usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavaudenc.c:292: undefined reference to `avcodec_get_context_defaults3'
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: /usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavaudenc.c:336: undefined reference to `avcodec_get_context_defaults3'
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: /usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavaudenc.c:317: undefined reference to `avcodec_get_context_defaults3'
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: ext/libav/libgstlibav.so.p/gstavaudenc.c.o: in function `gst_ffmpegaudenc_start':
/usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavaudenc.c:197: undefined reference to `avcodec_get_context_defaults3'
/opt/work/upstream/fsl-xwayland/tmp/work/cortexa35-mx8-fsl-linux/gstreamer1.0-libav/1.18.5-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/../../libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/11.2.0/ld: ext/libav/libgstlibav.so.p/gstavvidenc.c.o:/usr/src/debug/gstreamer1.0-libav/1.18.5-r0/build/../gst-libav-1.18.5/ext/libav/gstavvidenc.c:252: more undefined references to `avcodec_get_context_defaults3' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-04-04 20:24:20 -03:00
Tom Hochstein
3aec89457c fsl-base.inc: Upgrade gstreamer 1.18.0.imx -> 1.18.5.imx
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-04-04 20:24:20 -03:00
Ming Liu
3f590faa10 weston-init:profile: change to set WAYLAND_DISPLAY
Setting XDG_RUNTIME_DIR variable in profile env would not help for
log-in users except weston.

There is now a global /run/wayland-0 socket that gets created for
wayland clients to access, let's use that instead.

Reference commit in OE:
[
commit dd83fb40f76749c6689807afabc63b9d5c2a4065
Author: Joshua Watt <JPEWhacker@gmail.com>
Date:   Thu Nov 19 16:58:53 2020 -0600

    weston-init: Stop running weston as root

    Running the weston compositor as the root user is an insecure default
    behavior for OE-core. We can do much better, at least when using
    systemd. Change the recipe to create a dedicated "weston" user and start
    weston as this user. The systemd service and socket units are no longer
    template units, as there were several inconsistencies in the templates.
    Instead, there is now a global /run/wayland-0 socket that gets created,
    and systemd will start weston on demand when a client connects to that
    socket or when attempting to reach graphical.target, whichever comes
    first. This also allows downstream users to easily change the behavior
    so that weston *only* starts on demand by adding a drop file. Access to
    the global socket is controlled by a "wayland" group; any user that is a
    member of the group can use the socket to talk to the compositor. This
    also satisfies another use case where another systemd service might
    start a graphical application that needs to display with weston (e.g. a
    single function device in kiosk mode). Finally, the udev rules for
    starting weston with the existance of a DRM device have been removed.
    Being WantedBy= a graphical target should eliminate the need for this
    behavior, and having it present makes it difficult for downstream users
    to start weston on demand (having to override the udev rules).

    Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
]

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2022-03-17 12:13:06 -03:00
Ming Liu
2dc6a7901f weston-init: change to weston user
Now weston is being started as weston user, adapt to that.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2022-03-15 10:32:15 -03:00
Max Krummenacher
f9cfe52b28 packagegroup-fsl-gstreamer: follow oe-core's variable name changes
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-03-06 13:12:45 -03:00
Andrey Zhizhikin
e05b101133 layer: Update LICENSE variable to use SPDX license identifiers
Since OE-Core commit 9379f80f48 ("license/insane: Show warning for
obsolete license usage"), LICENSE field not containing SPDX identifiers
are treated with WARNING.

An automated conversion using scripts/contrib/convert-spdx-licenses.py to
convert to use the standard SPDX license identifiers has been done on
the entire layer.

Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2022-03-03 13:10:37 -03:00
Otavio Salvador
951cd13b0e distro/fsl-base: Use new generic overrides to reduce code
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-02-23 15:00:31 -03:00
Tom Hochstein
42ce52389d Generalize overrides subsystem for NXP and Mainline support
See corresponding commit in meta-freescale.

Fixes: #791.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-02-23 10:16:53 -03:00
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