summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-14distro: tdx-base.inc: drop preferring versionsMax Krummenacher
These versions were pinned when backporting a newer NXP BSP to dunfell. In master these versions were bumped in meta-freescale and the new versions are set to preferred there. The override here interferes and instead of the i.MX specific recipe the upstream recipe from OE-Core is built. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-02-06local.conf: sync with meta-poky sampleMax Krummenacher
This among other thing drops including image-prelink.bbclass which is now dropped in openembedded-core. All other changes only affect comments. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-01-06uprev-srcrev: fix uprev of tezi buildMax Krummenacher
Uprev all recipes used by the Toradex Easy Installer. Do this by refactoring the list of recipes in a bsp list used for all builds and add the additional ones for TEZI and Torizon. Related-to: AUT-932 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit e835edf3bc368fc6beb64acefa96a349ec6da281) Conflicts: scripts/uprev-srcrev Fix wrong new override syntax conversion
2021-11-15buildconf/local.conf: drop apalis-imx8x machine supportDenys Drozdov
apalis-imx8x is no longer supported Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com> (cherry picked from commit 3f6705ce88f7a8dd1f026334743d6b6bf8747965)
2021-10-18updatesrcrev.py: work around python crashMax Krummenacher
Since commit c9c9679 ("buildconf/local.conf: don't set any machine by default") calling scripts/uprev-srcrev creates a python crash unless one makes sure a MACHINE is set. Just reading PV from the datastore before continuing with doing the uprev fixes the issue. Fixes: | Traceback (most recent call last): | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/fetch2/__init__.py", line 1585, in latest_revision | return revs[key] | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/persist_data.py", line 50, in wrap_func | return f(self, *args, **kwargs) | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/persist_data.py", line 79, in wrap_func | return f(self, cursor, *args, **kwargs) | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/persist_data.py", line 167, in __getitem__ | raise KeyError(key) | KeyError: 'git:git.toradex.com.u-boot-toradex.gittoradex_2020.07' | | During handling of the above exception, another exception occurred: | | ... | | The above exception was the direct cause of the following exception: | | Traceback (most recent call last): | ... | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/fetch2/__init__.py", line 1587, in latest_revision | revs[key] = rev = self._latest_revision(ud, d, name) | File "/home/krm/bla/dunfell/layers/openembedded-core/bitbake/lib/bb/fetch2/git.py", line 689, in _latest_revision | sha1, ref = l.split() | bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception ValueError: not enough values to unpack (expected 2, got 0) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit b78d9de8e585f5071f62bab7362c8e69affe4102)
2021-10-11buildconf/local.conf: don't set any machine by defaultMax Krummenacher
Don't set a default machine so that a user has to explicitly choose what machine one builds for. Add a warning to not set MACHINE after the include ${MACHINE}.inc line. Related-to: ELB-4179 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit c9c96799dbb030262ac03f44067ee61ada93d93d)
2021-10-11local.conf: add verdin-imx8mp MACHINEMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 9f52ce166e8e3c10fa0935f55b3f403085f64fa2)
2021-10-11scripts: uprev-srcrev: add teziPhilippe Schenker
Relates-to: ELB-4127 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit e73336f9ff769414c5090640b6f33dc7b3169afb)
2021-10-11local.conf: add colibri-imx6ull-emmc MACHINEOleksii Bidnichenko
Related-to: ELB-4065 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com> (cherry picked from commit e1ede4ecd59e23f29f19dc9729f0a3b89f1f69af)
2021-10-03distro: tdx-base.inc: follow version changeMax Krummenacher
NXP's gstreamer fork is updated to 1.18.0.imx. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-09-09buildconf/local.conf: set DISTRO as a default valueTomas Novotny
The usage of the default value operator makes it easier to overwrite the DISTRO variable in other configuration files (e.g., for continuous integration). Signed-off-by: Tomas Novotny <tomas@novotny.cz>
2021-09-06distro: tdx-base.inc: prefer gstreamer with a weak assignmentMax Krummenacher
Currently the preferred version for the gstreamer components is assigned with '='. Relax that to '?=' to allow for a easier override in other configuration files. Proposed-by: Carlos Rafael Giani <crg7475@mailbox.org> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-08-16buildconf/local.conf: increase local.conf version identifierMax Krummenacher
With the override syntax change oe bumped the needed version. See commit 5452f1ba33 ("local.conf.sample: Bump version so users update their config") Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-08-14layer: convert to new override syntaxMax Krummenacher
This is the result of automated script (0.9.3) conversion: ../openembedded-core/scripts/contrib/convert-overrides.py . +# meta-toradex-distro +vars = vars + ["preempt-rt","tdx","upstream"] +# meta-toradex-* machines +vars = vars + ["apalis-","colibri-","verdin-","tegra124"] +# meta-freescale +vars = vars + ["imx","mx6","mx7","mx8","use-mainline-bsp","use-nxp-bsp"] converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-06-05layer.conf: add honister to compat layerMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-06-04uprev-srcrev: update after rename of u-boot-toradex-tk1Marcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 390fb8af9c4b2b13b891df6907b96ee53d201e5f)
2021-05-24local.conf: stop including image-mklibs.bbclassMax Krummenacher
Openembedded core no longer provides the class. Remove it. See commit 908df863b4 ("mklibs: remove recipes and class") Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-05-24local.conf: add toradex-sanity to INHERITMing Liu
To involve in basic sanity check for Toradex builds. Related-to: ELB-3944 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit a12eef0d00f2dce08e65ac3b70075a21abc5c5dc)
2021-05-24uprev-srcrev: return status of subprocess callssamuel.bissig
So far exceptions have been catched in the python script and have not been reported back to caller. The status code of the script was always 0. This makes it impossible to the build scripts to react on failed runs of uprev-srcrev tool. In case a recipe can not be found, patching further recipes gets skipped and a status code not equal to 0 is returned. Signed-off-by: samuel.bissig <samuel.bissig@toradex.com> (cherry picked from commit a5fcc0566de94d92f78ab156f641ac5dc58855fc)
2021-05-24uprev-srcrev: print recipe name together with new git hashMax Krummenacher
On the build server the three output lines produced by a single recipe are not together which makes it hard to check which recipe got updated to which source revision. Print the recipe file name together with the git hash makes it all clear. Changes | [krm@linuxdev2 build]$ ../layers/meta-toradex-distro/scripts/uprev-srcrev | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/backports/backports_5.4.bb | NOTE: Starting bitbake server... | INFO: Update SRCREV to 4cb81c29dde242744eccf9f37f2014ea3b37ade2. | | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_5.4.bb | NOTE: Starting bitbake server... | INFO: Update SRCREV_machine to db57a7415fa94e0d5a7f23908be15d5d6e72a891. | ... to | [krm@linuxdev2 build]$ ../layers/meta-toradex-distro/scripts/uprev-srcrev | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/backports/backports_5.4.bb | NOTE: Starting bitbake server... | INFO: backports_5.4.bb: Update SRCREV to 4cb81c29dde242744eccf9f37f2014ea3b37ade2. | | INFO: Processing recipe ../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-mainline_5.4.bb | NOTE: Starting bitbake server... | INFO: linux-toradex-mainline_5.4.bb: Update SRCREV_machine to db57a7415fa94e0d5a7f23908be15d5d6e72a891. | ... Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 213eb8b0826eb8f33c3a87518762dca480c85354)
2021-05-24uprev-srcrev: uprev to imx-sc-firmware-toradex_1.7.0Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 632db61f177acf18df79d40fefdf1c662c6233a8)
2021-03-25Add the empty stub to pass CI/CD checking.Oleksandr Suvorov
2021-03-23buildconf:local.conf: support fitimageMing Liu
It's by default disabled, the end users could choose to enable them by uncommenting two lines. Related-to: TOR-1700 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit ff7025a26e13326eb12444fb853de655629378e0)
2021-03-23tdx-base.inc: remove version-going-backwards from ERROR_QAMing Liu
Some Toradex recipes like linux-toradex, u-boot-toradex, device-tree-overlays are appending SCM hashes to PV, version numbers going backwards are not a problem as we don't provide binary feeds. This avoids some annoying errors as follows: | QA Issue: Package version went backwards which would break package feeds Related-to: ELB-3583 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 3c1f97ef5bbea7f6afaaea5b58ce1b8baa4ce82f)
2021-03-23layer.conf: add hardknott, drop dunfell in compat layerMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-22distro: tdx-base.inc: preferred_versions: follow gstreamer changesMax Krummenacher
meta-freescale added the revision part of the gstreamer imx forks to the version, i.e. 1.16.imx -> 1.16.2.imx. Rework the preferred versions. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-22distro: tdx-base.inc: preferred_versions: follow updatesMax Krummenacher
NXP release imx_5.4.70_2.3.0. Related-to: ELB-3327 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 2561e4a6cc6d5a8f6badb32ed3ead6eb4b536519)
2021-01-28wip: uprev-srcrev: uprev to linux-toradex_4.4-2.3.xDenys Drozdov
Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
2020-12-08uprev-srcrev: uprev different lists depending on the projectMax Krummenacher
Use two lists of recipes which should be upreved, one for tdxref and one for Torizon builds. Currently Torizon has additionally the linux kmeta repo but lacks the Apalis TK1 U-Boot. Relates-to: AUT-507 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-12-08uprev-srcrev: change fetch policy to fetch from remote repoMax Krummenacher
Force BB_SRCREV_POLICY to 'clear'. Thus the fetcher queries the remote git repo for the latest HEAD and does not rely on the copy in the local download directory. With this, we can change CI to run uprev-srcrev before building the images if we want to build latest HEAD of our components rather than using AUTOREV through use-head-next. This prevents that a push to the repos during a build might cause build errors. Related-to: AUT-528 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-12-08tdx distros: add x11 to image filename and descriptionsMax Krummenacher
So far the graphical backend (X11 / Wayland) did not show in the created image names or the Toradex Easy Installer meta data at all. As we now build by default only Wayland, leave those alone. If one builds for X11 then add this to the file name and the descriptive meta data. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-10-31tdx-base.inc: drop ptest from DISTRO_FEATURESMing Liu
We dont really need 'ptest' and that would invovle in a lot of recipes to be built which could be very time consuming. Related-to: ELB-3195 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 27000bd0282b681ab083430b5e49d81e42ce1f71)
2020-10-17conf: Make layer compatible only with dunfell and gatesgarthMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-09-16local.conf: use xwayland as the default in the sample local.confMax Krummenacher
Related-to: ELB-2303 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 1e0d10b2851ac455618ab7e4c7db86c9ad1227a0)
2020-09-16uprev-srcrev: add imx-sc-firmware supportStefan Agner
Add imx-sc-firmware to the list of recipes to update src rev. This recipe is now a regular recipe (not a bbappend) and hence can be used uprev'ed using recipetool. Related-to: AUT-355 Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit e3c9f089b2dd3b807d97dec80fa15a5d13f86cea)
2020-09-16uprev-srcrev: add Toradex specific script to uprev all recipesStefan Agner
Create a Toradex specific script which loops through all recipes using AUTOREV and updates them to the current git hash. Related-to: AUT-355 Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 35fd1b9ead35b45a590b0a478f9ca11512d05921)
2020-09-16recipetool: add updatesrcrev sub-commandStefan Agner
Use the recipetool plugin mechanism to add a updatesrcrev command. This allows to update the SRCREV variable to point to the current git hash the references git branch is pointing to. A OpenEmbedded build environment needs to be initialized. Then use the following command to update SRCREV of a particular recipe: recipetool updatesrcrev <path-to-recipe> Related-to: AUT-354 Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit f80b1846113635ec84177f0020efab02f6679d1a)
2020-08-24tdx-base: drop unstable elements from sdk versionMax Krummenacher
SDK_VERSION is used as a path element for the nativesdk packages. Thus, if variables are used to form it which are excluded to force a rebuild, when using sstate or previous build artefacts paths stay not the same resulting in various build failures. So drop all elements which are marked with "vardepsexclude". E.e.: Dependencies not found in compile/configure as the search paths don't match. Build output not found: | rm: cannot remove '.../image/opt/tdx-xwayland/5.0.0-devel-20200821220610+build.0/sysroots/x86_64-tdxsdk-linux/usr/lib/aarch64-tdx-linux/gcc/aarch64-tdx-linux/9.3.0/install-tools': No such file or directory Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-17tdx-xwayland-upstream-rt: correct basenameMax Krummenacher
'upstream' has already been appended in tdx-xwayland-upstream.conf. Don't add a second one. I.e. don't create an image file name like this: Apalis-iMX6_Reference-Minimal-Image-upstream-rt-upstream-Tezi_5.0.0-devel-20200817071112+build.0 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-14tdx-base: pin versions for nxp bsp 5.4.24_2.1.0Max Krummenacher
Related-to: ELB-2758 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-08-05tdx-base: set PREFERRED_PROVIDER_u-boot-fw-utils to libubootenvMing Liu
Related-to: ELB-2552 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-07-31buildconf: export: change targets to new image namesPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-23bblayers.conf: add meta-qt5 layerPhilippe Schenker
Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-06-18tdx-base: pin versions for nxp bsp 4.14.98_2.3.0Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18distros: define imx default bspMax Krummenacher
meta-freescale handles use-mainline-bsp in the common imx-base.inc file. Follow that change. While at it, simplify the upstream-rt distros by including the corresponding upstream distro. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-18local.conf: correct confusing commentMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 276c966a04bbe4d19866becb3b8fc147d1079049)
2020-06-18tdx-base: use separate variable for version componentsStefan Agner
Use separate variables for version components. This is useful to form the new OSTree branch names which use the major version only. Related-to: TOR-1107 Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 3f69c5d786d0677ff1f1d959e5e8e482a4e4148b)
2020-06-18tdx-base: define PREFERRED_PROVIDER_virtual/dtbIgor Opaniuk
Define PREFERRED_PROVIDER_virtual/dtb to device-tree-overlays. Signed-off-by: Ming Liu <ming.liu@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> (cherry picked from commit c4b1a3d10e0245ff7ac9e4c11ad135f8488f8409)
2020-06-01apalis-tk1-mainline: drop machineMax Krummenacher
The downstream kernel gets to old to be used with the new zeus userspace components. Reuse the apalis-tk1 machine name to build a mainline kernel and drop the apalis-tk1-mainline machine. Related-to: ELB-2733 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 7f8cd66bb84f32c3b7dd4eea95ba9482786770c0)
2020-06-01buildconf: export: Add use-head-next also on repo 2.5Philippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit adb62ac9dfeed9827e0a706a5c2c2a64ebb95b06)