summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-04-27bitbake: prserv: Drop unused dump_db methodPaul Barker
(Bitbake rev: ecb7bf34eac02ff58dbc27b3768ceaf4adb1c9cd) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27bitbake: prserv: Drop obsolete python version checkPaul Barker
Bitbake no longer supports Python 2 so this version check is obsolete. (Bitbake rev: 45eb6c6e124e507012df9c288f1fbde0e7899e5d) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27bitbake: hashserv: Refactor to use asyncrpcPaul Barker
The asyncrpc module can now be used to provide the json & asyncio based RPC system used by hashserv. (Bitbake rev: 5afb9586b0a4a23a05efb0e8ff4a97262631ae4a) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27bitbake: asyncrpc: Common implementation of RPC using json & asyncioPaul Barker
The hashserv module implements a flexible RPC mechanism based on sending json formatted messages over unix or tcp sockets and uses Python's asyncio features to build an efficient message loop on both the client and server side. Much of this implementation is not specific to the hash equivalency service and can be extracted into a new module for easy re-use elsewhere in bitbake. (Bitbake rev: 4105ffd967fa86154ad67366aaf0f898abf78d14) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27bitbake: hashserv: Use generic ConnectionErrorPaul Barker
The Python built-in ConnectionError type can be used instead of a custom HashConnectionError type. This will make code refactoring simpler. (Bitbake rev: 8a796c3d6d99cfa8ef7aff0ae55bb0f23bbbeae1) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27core-image-multilib-example: base on weston, and not satoAlexander Kanavin
(From OE-Core rev: 56cd96651c6304712fd544fbc9b69c986d2b2efe) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27oeqa/selftest: transition to weston imagesAlexander Kanavin
For readonly rootfs tests core-image-weston is appended; everywhere else it replaces core-image-sato. (From OE-Core rev: 75e042db853b9bf9a70ff8a5abe6d45ebb0b77a9) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27oeqa/core/tests/test_data.py: use weston image instead of satoAlexander Kanavin
(From OE-Core rev: c2ccd8c8144cdda52b858589f7d5d3a15ab28b90) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27core-image-weston: add sdk/ptest imagesAlexander Kanavin
This is the first step towards rebasing the AB matrix from sato to weston; the eventual goal is to keep sato only in core-image-sato image. The broader rationale is that X11 is effectively deprecated technology at this point with only minimal maintenance; standalone X server will not be developed any further, and all attention currently is towards making it work well under Wayland. I believe YP should be defaulting to Wayland and not X11. (From OE-Core rev: 3a6996f87a9e32f2e6e668dce98f77d0b40fceb8) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27license_image.bbclass: Fix symlink to generic license filesReto Schneider
Link to the canonical filename of a license as only this one exists. Fixes commit 670fe71dd18ea675f35581db4a61fda137f8bf00 [license_image.bbclass: use canonical name for license files]. (From OE-Core rev: 64b1ba978e079c345e1f7fbd1bf44052fc3dd857) Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27license_image.bbclass: Detect broken symlinksReto Schneider
Find and report symlinks which point to a non-existing file. (From OE-Core rev: 81809a1ffe67aade1b2ed66fe95044ffbf7d3df8) Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27oe-time-dd-test.sh: collect cooker log when timeout is exceededSakib Sajal
Collect the last 30 lines from the cooker.log whenever the timeout is exceeded. (From OE-Core rev: 58f7cd4d6186525f08f3027975530d647cbfa26b) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27gnutls: Point to staging area for finding seccomp libs and includesKhem Raj
This ensures that if libseccomp is installed on build host then it does not resort to use it. Fixes checking for libseccomp... (cached) yes checking how to link with libseccomp... /usr/lib/libseccomp.so (From OE-Core rev: 3751ac58720a500e3b749b2296922d7c82db49a1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27qemurunner: Add support for qmp commandsSaul Wold
This adds support for the Qemu Machine Protocol [0] extending the current dump process for Host and Target. The commands are added in the testimage.bbclass. Currently, we setup qemu to stall until qmp gets connected and sends the initialization and continue commands, this works correctly. If the UNIX Socket does not exist, we wait an timeout to ensure to socket file is created. With this version, the monitor_dumper is created in OEQemuTarget but then set in OESSHTarget as that's where we get the SSH failure happens. Python's @property is used to create a setter/getter type of setup in OESSHTarget to get overridden by OEQemuTarget. By default the data is currently dumped to files for each command in TMPDIR/log/runtime-hostdump/<date>_qmp/unknown_<seq>_qemu_monitor as this is the naming convenstion in the dump.py code. We use the qmp.py from qemu, which needs to get installed in the recipe-sysroot-native of the target image. [0] https://github.com/qemu/qemu/blob/master/docs/interop/qmp-spec.txt (From OE-Core rev: 42af4cd2df72fc8ed9deb3fde4312909842fcf91) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27qemu-system-native: install qmp python moduleSaul Wold
The qmp python module supports the Qemu Machine Protocol [0]. This module needs to be installed in a known location so the qemurunner python script can find the qmp module. This change causes it to be installed in the recipe-sysroot-native of the target image and that directory can be added to the python sys.path that needs to use the qmp.py module. [0] https://github.com/qemu/qemu/blob/master/docs/interop/qmp-spec.txt (From OE-Core rev: 46a60f67562a6ae227e018228212fc797d1f2795) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27gcc-cross-canadian: Install LTO linker plugin to BFD searchable locationKhem Raj
This helps binutils provided tools ar/ranlib/nm to find the LTO linker plugin automatically as well which makes it equivalent to gcc-ar/gcc-nm/gcc-ranlib (From OE-Core rev: 7d8d0b90bea7ea01e1e9ab0ff98f22431f68a506) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27gcc-cross: Install linker LTO plugin for binutils toolsKhem Raj
This will ensure that ar/ranlib/nm can load the lto linker plugin like gcc-ar, gcc-nm, gcc-ranlib does, this will let the behaviour match between gcc wrappers for these tools, this should help LTO builds for packages (From OE-Core rev: d6658505089234476c1b35fc08fef1eb4f121e85) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27bitbake.conf: Use gcc-nm as default NMKhem Raj
This ensures linker LTO plugin is loaded correctly (From OE-Core rev: d6ffd683bf635548e0bfb3fd6458ed03e26ec2bf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-27gcc-target: Create a LTO plugin symlink in bfd-plugins directoryKhem Raj
This directory is scanned by binutils provided ar,ranlib,nm for plugins that it can load automatically, putting liblto_plugin.so in their means we do not need gcc-ar, gcc-nm, gcc-ranlib particularly as normal ar/ranlib/nm tools will work equally well as they can now use this linker plugin by default This also mean we can revert back to using ar/ranlib/nm as default providers for AR/NM/RANLIB on target (From OE-Core rev: 5aae5812223792d5e5bd57e024de50fbcd1e6da5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26bitbake: doc: bitbake-user-manual: fix typo left over from Sphinx migrationNicolas Dechesne
Fixes d99760cc687c (sphinx: last manual round of fixes/improvements) Reported-by: Michal Piechowski <m.z.piechowski@gmail.com> (Bitbake rev: 00ce48919de720639eda2b6f7065a82b641e5167) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26bitbake: doc: bitbake-user-manual: code insertion simplification over two linesMichael Opdenacker
This simplifies paragraphs ending with a colon and followed by code insertion. Automatically substituted through the command: sed -i -z "s/:\n\s*::/::/g" file.rst This generates identical HTML output. (Bitbake rev: 51c80fc3497eecc8e50194fe1ff8069b59f03eda) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26bitbake: doc: bitbake-user-manual: simplify colon usageMichael Opdenacker
- This replaces instances of ": ::" by "::", which generates identical HTML output (Bitbake rev: fd8ce4dcaff3aae395f9945fb0a3be54905e1727) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26default-distrovars.inc: Remove seccomp for riscv32Khem Raj
libseccomp needs too be ported to rv32 first (From OE-Core rev: ecf167c6419afd483f5291043a1d5072d388866b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26rsync: fix CVE-2020-14387Chen Qi
Backport patch to fix CVE-2020-14387. (From OE-Core rev: 13f331436747ebb8e9211feee3aa774f1acd0fee) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26default-distrovars.inc: Add seccomp to DISTRO_FEATURES_DEFAULTArmin Kuster
Since xattr is included, seccomp should be too (From OE-Core rev: e164bd55ef5becf691c2755d8d6af45a490fe9b2) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26apt: Fix build on musl when seccomp is enabledKhem Raj
(From OE-Core rev: 3ffce694d75977895557ff61f27b627c1a11be12) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26apt: Disable libseccompRichard Purdie
This isn't in DEPENDS and isn't configured. It can detect the library when pulled in via other dependencies meaning the build isn't deterministic. Ultimately this could become a PACKAGECONFIG. It doesn't build on musl so disable it for now until someone fixes and sorts this out properly. (From OE-Core rev: 1425fe0f28a31b1d4004736b9edb036680e12c92) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26qemu: Enable seccomp if FEATURE is setArmin Kuster
(From OE-Core rev: c057509306319cc0c2c7ef89154995ffd96c5646) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26systemd: Enable seccomp if FEATURE is setArmin Kuster
(From OE-Core rev: c9d4fb93429a90191dc77e1dbc183535d66952cb) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26gnutls: Enable seccomp if FEATURE is setArmin Kuster
(From OE-Core rev: f2527b5567252c7da4fbd863e119c8114e6debcd) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26libseccomp: Fix reproducibility issueRichard Purdie
Rather than installing libtool wrapper scripts which won't work on target and aren't reproducible, use the real binaries. (From OE-Core rev: 8afdf055b7b8bad6f0f13c3cd184d019c50a1e25) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26libseccomp: Add MAINTAINERS entry and HOMEPAGERichard Purdie
Add entries for the migrated recipe to passify the various checks. (From OE-Core rev: cd49367af2b3daa8d3012ae2b8ace380d41cc0b9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26libseccomp: move recipe from meta-security to coreArmin Kuster
ptest results: Regression Test Summary tests run: 1404 tests skipped: 369 tests passed: 1402 tests failed: 2 tests errored: 154 Add feature_check so that the other recipes who can take advantage of this funtionality can enable it. (From OE-Core rev: 5b0182f5c01c8b10b4b65f8af55d682be4839947) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-26linux-firmware: Package RSI 911x WiFi firmwareMarek Vasut
The RSI 911x WiFi firmware is already part of the linux-firmware repository, package it to make it easily available. (From OE-Core rev: cc44b71f6ea68ca0f483d635df7dc7b9905b1593) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24yocto-check-layer: Avoid bug when iterating and autoadding dependenciesRichard Purdie
If iterating a layer with multiple components and auto-adding dependencies the tests can break since layers are never removed and order isn't guaranteed to account for that. Fix this by resetting the layer list back to the original list each time before auto-adding the dependencies in each case. This fixes scanning of meta-openembedded in particular where the sublayers may not be added in order of minimal dependency. (From OE-Core rev: bf1b467dacf345379cd5d84a1c9b3b0d844d5c91) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24libssh2: fix build failure with option no-ecdsaStefan Ghinea
libssh2 fails at do_compile if DEPRECATED_CRYPTO_FLAGS = "no-ecdsa" is set in recipe: ../src/.libs/libssh2.so: undefined reference to `LIBSSH2_KEX_METHOD_EC_SHA_HASH_CREATE_VERIFY' References: https://github.com/libssh2/libssh2/issues/549 Upstream patches: https://github.com/libssh2/libssh2/commit/1f76151c92e1b52e9c24ebf06adc77fbd6c062bc (From OE-Core rev: 2bb146e7315f8080cb49a95212231ccb76a4a822) Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24pyyaml: Add missing HOMEPAGERichard Purdie
Add a HOMEPAGE to the new recipe to avoid sanity test failures. (From OE-Core rev: 23be2a27e16d711f928561d96f901a25f5f29998) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24python3-pyyaml: Add recipeKhem Raj
This is migrated from meta-python (From OE-Core rev: 0a8600f9cec0a88b90693302554c82cfe28152ae) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Tim Orling <timothy.t.orling@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24python3-jinja2: Enable ptestsKhem Raj
Needed dependencies on toml and pytest and unixadmin are in core now (From OE-Core rev: c983359eae9d7e3d729af36755612916dabe32d6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24python3-markupsafe: Enable ptestsKhem Raj
pytest is now in OE-Core (From OE-Core rev: 48c83fc1141ff22c9ede0c82acec896937d61357) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24python3-docutils: Upgrade to 0.17.1Khem Raj
This was in meta-python for a while so merge the changes here and upgrade, once applied, delete from meta-python License-Change: Deleted legacy stylesheets from LICENSE [1] Updated URI for BSD-2 [2] [1] https://sourceforge.net/p/docutils/code/8487/ [2] https://sourceforge.net/p/docutils/code/8554/ (From OE-Core rev: 757d87f676d542f49760ef4ed8bea238719af159) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24gcr: fix one parallel build failureChangqing Li
ui/gcr-live-search.c includes gcr/gcr-marshal.h. Because missing dependency, following error occurred intermittently during doing parallel build: -o ui/libgcr-ui-3.so.1.0.0.p/gcr-live-search.c.o -c ../gcr-3.38.1/ui/gcr-live-search.c ../gcr-3.38.1/ui/gcr-live-search.c:32:10: fatal error: gcr/gcr-marshal.h: No such file or directory 32 | #include "gcr/gcr-marshal.h" | ^~~~~~~~~~~~~~~~~~~ compilation terminated. (From OE-Core rev: a6690c22952a315e6c6734a5936d9eb18e1b3004) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24unzip: use optimization from bitbakeMikko Rapeli
Build with bitbake default optimizations, e.g. O2, instead of custom O3. Reduces unzip binary package size from 304401 to 283921 bytes, and enables building with Os to even further reduce binary size if needed and configured for the whole system. (From OE-Core rev: 1330ac1902360cc5e01b69a6065963bf7b92d4bb) Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2021-20257Sakib Sajal
(From OE-Core rev: 547ac986a74cfcae39b691ebb92aadc8436443ea) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2021-3416Sakib Sajal
(From OE-Core rev: e2b5bc11d1b26b73b62e1a63cb75572793282dcb) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2021-3409Sakib Sajal
(From OE-Core rev: e2fb8c15a64e1f5db678e8e95924da8c88a188c0) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2021-20221Sakib Sajal
(From OE-Core rev: 59a44f8c70d4a026ae74e44b9d70100029c691b5) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2020-29443Sakib Sajal
(From OE-Core rev: 481e012de865ee232fa5a233e9f1d4fc7a2232ab) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24qemu: fix CVE-2021-20181Sakib Sajal
(From OE-Core rev: c2f79065ef0684f2c0bdb92f1b03e690ab730b8c) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-24kernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkoutKai Kang
It chdirs to ${S} at the beginning of task do_kernel_checkout. Then it removes ${S} when it still resides in ${S}. It may fail to run the task do_kernel_checkout when bitbake is called by third-part wrapper script. So chdir to ${WORKDIR} by default for do_kernel_checkout. And it will chdir to ${S} afterwards in task do_kernel_checkout. (From OE-Core rev: cf0e3397d3f86c7ea1f3c66c50a44d6205f5921b) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>