summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-11-29testimage: test wget/curlross/httpstestRoss Burton
2021-11-29add curl to full-cmdlineRoss Burton
2021-11-29WIP add test suite for wget/curlRoss Burton
2021-11-26bitbake: test/fetch: Add striplevel unpack parameter testStefan Herbrechtsmeier
(Bitbake rev: 7e1ca7ab50e3c6b642c3c11504c7c8f52cfa4528) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26bitbake: bitbake-user-manual: Add striplevel unpack parameterStefan Herbrechtsmeier
(Bitbake rev: f0442a30d3a8459195dbf51a778ffb6150688a0a) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26bitbake: fetch2: Add striplevel support to unpackStefan Herbrechtsmeier
Add a parameter `striplevel` to the SRC_URI to strip NUMBER leading components (levels) from file names on extraction. For example, if the archive `archive.tar.gz` contains `some/file`, the SRC_URI `https://.../archive.tar.gz;subdir=other;striplevel=1` will extract `some/file` to `other/file`. This is useful to extract archives to a specified directory instead of the original root component of the archive. The feature is required for the npm support. The npm package contents should reside in a subfolder inside a npm archive (usually it is called package/). npm strips one directory layer when installing the package. (Bitbake rev: aa4926e5d9c92f33b4434e2da709ff0bf3049f5b) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26bitbake: fetch2: Unify tar command in unpackStefan Herbrechtsmeier
The tar command and its arguments are repeated for many archive types in the unpack function. Unify the common parts in a variable to prepare further extension. (Bitbake rev: a08e57c9eaec1d9740a96149bf4843e576da4e5c) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26bitbake: data_smart.py: Skip old override syntax checking for anonymous ↵Robert Yang
functions Fixed when oe-core's path contians append/prepend/remove, e.g.: /path/to/append_test/oe-core/ Initial a build in any build dirs: $ bitbake -p ERROR: Variable __anon_32__buildarea2_xhou_builds_append_test_layers_oe_core_meta_classes_patch_bbclass contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake. The anonymous fuctions has no names, so skip checking for it to fix the issue. (Bitbake rev: ebd00330c41c75797529ff38d6a0955b93f05d1b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26oeqa/utils/dump: Fix typoRichard Purdie
(From OE-Core rev: 3770d539d83b589b3f8bde21fcf896bb046611d4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26gcc: Drop further unneeded precompiled header patchRichard Purdie
According to comments on the bug report from gcc developers, we no longer need to do this post gcc 10. Lets therefore drop the patch. (From OE-Core rev: 8ddc6f46d40cdcc462de23d1b1218f2ed9fd3d07) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26base.bbclass: Add sysroot deps for repo fetcherJasper Orschulko
Add repo-native as prerequisite for the repo fetcher. (From OE-Core rev: 16b8939bf0450837d3bc9e44cd24d2f38e0cee58) Signed-off-by: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26repo: Add recipe for 2.17.3Jasper Orschulko
Add a recipe for repo 2.17.3, prerequisite for the repo fetcher. (From OE-Core rev: db9d86bdf2878ebee9c2080038714fcc98142100) Signed-off-by: Jasper Orschulko <Jasper.Orschulko@iris-sensing.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26native/cross: Add ar wrapper for determinismJacob Kroon
Add a wrapper around ar calls for native/cross recipes. This wrapper adds the -D option so that deterministic archives are built for native/cross output. This improves the changes of hash equivalence matches and hence build artefact reuse. We don't need this in the target case since we compile binutils-cross with an option making this the default. We need a wrapper since we need to remove the "u" option and replace it with "D" but also allow things like "--version" to continue to work too. (From OE-Core rev: 59922c95fcb20c66634c5677012d490be2246b0b) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26gcc: Drop mips default ABI patchRichard Purdie
gcc-configure-common.inc already sets --with-abi=64 for our mips64 targets so this patch is no longer needed. [YOCTO #14639] (From OE-Core rev: e0010af733825ed1050fd3342cf3ef1c478df1a0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26nativesdk: Handle chown/chgrp calls in nativesdk do_install tasksRichard Purdie
We disable the useradd code for nativesdk targets since we don't support postinstalls or multiple users in those cases. This means any usage of chown/chgrp inside do_install tasks won't work and would have to be conditional. Rather than require all recipes to do that, add intercepts of the calls and map those to root/root user/groups. We can't just ignore them as some calls are used to remove host contamination from the host user ID so they need to be made, just as root. (From OE-Core rev: e1f40670c438e33cae87678425de72ca03566888) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26perf: sort-pmuevents: allow for additional type qualifiers and storage classMax Krummenacher
With kernel 5.16 some structs in pmu-events do get a const qualifier, some a static const storage class and qualifier. The current sort-pmuevents cannot cope with that and drops all struct arrays with such additional elements. This then leads to compiler errors. Allow '^struct', '^const struct', '^static struct', '^static const struct'. (From OE-Core rev: 8406e83ade1c34d8a7d8063f2e7445aafa471721) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26perf: sort-pmuevents: don't drop elementsMax Krummenacher
If a struct element neither has an element cpuid or name it gets silenty dropped. Kernel 5.15 for some ARCHs have at least one array of structs matching this. e.g. for arm pmu-events.c: |#include "pmu-events/pmu-events.h" struct pmu_events_map pmu_events_map[] = { { .cpuid = 0, .version = 0, .type = 0, .table = 0, }, }; struct pmu_sys_events pmu_sys_event_tables[] = { { .table = 0 }, }; Before this patch the second struct is translated to an empty array:: struct pmu_sys_events pmu_sys_event_tables[] = { }; (From OE-Core rev: e1382583cd5060be301afaa9998ccf250cc8bca3) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26linux-yocto-dev: introduce dt-validation PACKAGECONFIGBruce Ashfield
Add a PACKAGECONFIG to control which type of dt-validation is installed (full, or wrapped). This is currently in linux-yocto-dev, as 5.16 introduces the functionality of required dt schema validation. Other v5.16 providing recipes can use the base functionality as they desire (with or without PACKAGECONFIG). Over time, we can migrate the support the the core kernel classes .. in particular when more providers are at v5.16+ (From OE-Core rev: c12a91827e88230b4ec702a88534d4c51c1aabe3) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26kernel: introduce python3-dtschema-wrapperBruce Ashfield
The 5.16 kernel introduced mandatory schema checking on any dtb file built through the kernel. That funcionality is provided via python3-dt-schema. The dependencies to enable that functionality is not small, and may not always be desired (in particular on architectures that do not support dtbs, or in development cycles). It may also be useful for allowing a non-conformant dts to be compiled. This commit introduces a set of wrapper scripts that when added as a depenency to the kernel, can pass both the validation testing and validation steps of a dts. We use the wrapper by default, while more dts file are brought up to spec and the dt-validation matures upstream. To enable valiation, simply add 'dt-valiation' to the PACKAGECONFIG variable and the full dt-schema package will be selected and validation will occur. (From OE-Core rev: a8525391f8a519426c92f0e28895f426bfcb3f84) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26linux-yocto: export pkgconfig variables to devshellBruce Ashfield
Not all of the kernel host/build Makefiles allow pkg-config to be overriden to pkg-config-native. Exporting these variables allow us to debug host tool issues with the kernel build. (From OE-Core rev: ea71e50be2de5b7fc81f466ea5cd48c2f1e0ef6b) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python3: Add missing HOMEPAGE entriesRichard Purdie
Add missing HOMEPAGE entries to new python recipes from meta-python. (From OE-Core rev: 333af4b995f62406898e7efcebd5e846cdc449f6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26maintainers: update for kernel dtschema checking dependenciesBruce Ashfield
These packages are required for dtschema checking in the kernel build. Adding myself as the maintainer. (From OE-Core rev: dff7ce9b72d54a0af0916424738ca0295eebc6c0) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import vcversioner from meta-pythonBruce Ashfield
vcversioner is a dependency of jsonschema, which is being imported to support kernel device tree validation. (From OE-Core rev: 51265151041cf71f3bc799fc60662df6f2cfd7ae) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import strict-rfc3339 from meta-pythonBruce Ashfield
strict-rfc3339 is a dependency of jsonschema, which is being imported to support kernel device tree valiation. (From OE-Core rev: 1f00aad201b207e991d7679fbf45e7a308f48dd0) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import rfc3987 from meta-pytonBruce Ashfield
rfc3987 is a depenency of jsonschema and dtschema, which are being added to support kernel device tree validation. (From OE-Core rev: 9a3cb1a02a4c630e98137edcc8e33bd00343a957) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import pyrsistent from meta-pythonBruce Ashfield
pyrsistent is a dependency of python3-jsonschema, which is being imported to support kernel device tree validation. (From OE-Core rev: e25d4417bc4ca01474c74dc5bd38594bcfbe6639) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import ruamel-yaml from meta-pythonBruce Ashfield
Importing ruamel-yaml from meta-python. This package is a dependency of python3-dtschema, which is required to validate kernel devicetrees. (From OE-Core rev: 748f7d377b62a0cd6bae558791a4d84b8110ea1a) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import webcolors from meta-pythonBruce Ashfield
Importing webcolors, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. (From OE-Core rev: cbba71e821815f97bb1dcadadc067d28b9d1e5ab) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import rfc3986-validator from meta-pythonBruce Ashfield
Importing rfc3986-validator, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. (From OE-Core rev: ffe53365633833e5134744730b00c74cbb462752) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import rfc3339-validator from meta-pythonBruce Ashfield
Importing rfc3339-validator from meta-python, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. (From OE-Core rev: 8f9ade9448c1c87004d81bec049136a745dfb0b1) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import idna from meta-pythonBruce Ashfield
Importing idna from meta-python, which is a dependency of python3-jsonschema. These packges are required to support the validation of kernel device trees. (From OE-Core rev: 14fdb80c3c32e728f32d798134acaef6250c001a) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import jsonschema from meta-pythonBruce Ashfield
Importing this package as a dependency to python3-dt-schema, which is required for kernel device tree validation. (From OE-Core rev: c28fd66c673a852d287220ec0c9fe882464a0161) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26ptest-packagelists: Add missing python3-jsonpointer entryRichard Purdie
Resolves: WARNING: python3-jsonpointer-2.2-r0 do_package_qa: QA Issue: supports ptests but is not included in oe-core's ptest-packagelists.inc [missing-ptest] (From OE-Core rev: 7e561760278c980715fa966448f1f978b3767b8a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python3-jsonpointer: Update 2.1 to 2.2Bruce Ashfield
The import from meta-python was slightly out of date, and the 2.1 version was grabbed. We bump the oe-core version to 2.2 to match the latest meta-oe version. (From OE-Core rev: 687823be0ec6ee93614e386af72c3d315d0258ef) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: import jsonpointer from meta-pythonBruce Ashfield
required to support python3-json, which is required for python3-dtschema and device tree checking by the kernel. (From OE-Core rev: 5e057c058da55385d8566532bd713bcd7b4c9ebc) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26python: introduce python3-dtschemaBruce Ashfield
kernel commit 53182e81f47d [kbuild: Enable DT schema checks for %.dtb targets], which is part of v5.16+, makes the checking of dtb schemas manditory. To support the checking, we introduce this new recipe dtschema. Dependencies will be imported in subsequent commits, so we can track the dependency need on a per-import basis. (From OE-Core rev: d56fcb5806784359a9e81ea5ac4816caaeee7750) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26kernel: export native PKGCONFIG variablesBruce Ashfield
In a similar manner to cml1.bbclass, we export the pkg-config variables to allow a direct call to pkg-config access to the native sysroot versus the target sysroot. The kernel doesn't use pkg-config for target configuration, and has many explicit calls to pkg-config, without the possibility of easy override to pkg-config-native. The calls to pkg-config could be made cross friendly via replacement with make variables, but until that effort is undertaken upstream, we need a bridge approach. In particular, this is required for dtschema validation, which is a requirement in kernel 5.16+ (From OE-Core rev: 9172d61c57e23682c3d2c25701cbd53c84d01a27) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-26linux-yocto-dev: bump to v5.16+Bruce Ashfield
Bumping the version of -dev ot 5.16. We also pickup two new dependencies to support kernel dtschema validation. This requirement was introduced by kernel commit: commit 53182e81f47d4ea0c727c49ad23cb782173ab849 Author: Rob Herring <robh@kernel.org> Date: Mon Sep 13 09:51:46 2021 -0500 kbuild: Enable DT schema checks for %.dtb targets It is possible to build a single dtb, but not with DT schema validation enabled. Enable the schema validation to run for %.dtb and %.dtbo targets. Anyone building a dtb for a specific platform *should* pay attention to schema warnings. This could be supported with a separate %.dt.yaml target instead. However, the .dt.yaml format is considered an intermediate format and could possibly go away at some point if schema checking is integrated into dtc. Also, the plan is to enable the schema checks by default once platforms are free of warnings, and this is a move in that direction. Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Cc: Tom Rini <trini@konsulko.com> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Masahiro Yamada <masahiroy@kernel.org> Link: https://lore.kernel.org/r/20210913145146.766080-1-robh@kernel.org (From OE-Core rev: 37fb1592eb8bcc4a8bbfc3f4b1dc6373733827f0) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25bitbake: bitbake-user-manual: SRC_URI: mention gitsm fetcherMichael Opdenacker
(Bitbake rev: 0d0e552d87c52c1f90b601698c3d54eec427ee21) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25gcc: Drop no longer needed patchRichard Purdie
This patch was mentioned upstream a long time ago: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256 Changes from gcc 10 onward mean it is no longer needed as mentioned in the above bug report. Drop the patch. (From OE-Core rev: 6fca075a8d87d033359f81d476c8506df66ad53d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25meta-skeleton: fix warnings for append operators combined with +=Yi Zhao
(From OE-Core rev: 619273ecb6c17efd0b4d01f17688f1b211991ca2) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25oe/utils: by default cap cpu_count() to 64 coresRoss Burton
Larger systems may have large numbers of cores, but beyond a certain point they can't all be used for compiling: whilst purely compute-intensive jobs can be parallelised to hundreds of cores, operations such as compressing (needs lots of RAM) or compiling (lots of I/O) don't scale linearly. For example, the Marvel ThunderX2 has 32 cores, each capable of executing four threads, and can be configured with two sockets, making 256 CPUs according to Linux. Zstd using 256 threads has been seen to fail to allocate memory during even small recipes such as iso-codes. Add a default cap of 64 CPUs to the cpu_count() method so that extreme parallisation is limited. 64 is high enough that meaningful gains beyond it are unlikely, but high enough that most systems won't be effected. (From OE-Core rev: 765d0f25ce48636b1838a5968e2dc15de2127428) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25sstate: explicitly name the checkhashes thread poolRoss Burton
Give this thread pool a name for clarity. (From OE-Core rev: 57ea50fcfe81f47b93b9302d1aab2e81dcdd3105) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25oe/utils: allow naming threads in ThreadedPoolRoss Burton
When looking at logs involving thread pools it is useful if the threads can be named. (From OE-Core rev: 18342945b021608794d83ecf567afd43f4379b24) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25python3-setuptools: update 58.5.3 -> 59.2.0Alexander Kanavin
(From OE-Core rev: 717e538e70f78d79ba7cec2797024af0dc91aeb0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25python3-packaging: update 21.2 -> 21.3Alexander Kanavin
(From OE-Core rev: f1b1eaf63cd0a762f149d2fed9cbef98eb7f4977) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25bind: update 9.16.22 -> 9.16.23Alexander Kanavin
(From OE-Core rev: cf024ecc5d19876ef6bd9a93606fae64426a0e4c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25vulkan: update 1.2.191.0 -> 1.2.198.0Alexander Kanavin
(From OE-Core rev: 5eb61a191acfb2a7d5fdcde2657b59d0e5a81997) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25systemd: update 249.6 -> 249.7Alexander Kanavin
(From OE-Core rev: 5671ef44cf85df00406b391f7786ffaefd05a701) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-25cmake: update 3.21.4 -> 3.22.0Alexander Kanavin
(From OE-Core rev: 3f83264a4d84669e62e801ce1bb5e04904aec73d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>