summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-09-09oeqa/target/ssh: don't assume target_dumper is setross/oeqaRoss Burton
The target_dumper property is only set by the QemuTarget subclass, so assign a default value and check it isn't None before calling it. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09oeqa/core/target: add target_ip to superclassRoss Burton
Move towards a consistent interface across OETarget subclasses by moving target_ip to the superclass. QemuTarget automatically determines the target IP on startup, so default that to None. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09oeqa/core/target: remove server port parameterRoss Burton
Specifying a port that the test host can open sockets on isn't that useful as the package management tests will open multiple ports, so the specified port won't be used anyway. The value was never set so used the default of value, which meant the kernel picked the port. Remove the server port parameter entirely, and let the kernel pick a free port. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09oeqa/core/target: move server_ip to superclassRoss Burton
Move towards a consistent interface across OETarget subclasses by moving server_ip to the superclass. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09oeqa/core/target: remove abstract decorationsRoss Burton
There's no need to inherit from object in Python 3, and marking the methods as abstract is overkill considering the type hierarchy. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09testimage: pass the base image name to the target classRoss Burton
Also pass the the base image name to the target class. This is the full path to the deploy directory and the image name without any extensions, so makes it easier to find ancillary files. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-09testimage: TEST_SERVER_IP isn't mandatoryRoss Burton
When using the simpleremote test target, TEST_SERVER_IP doesn't have to be configured as the code will detect the host's IP if it isn't set. Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-09-08bitbake: runqueue: Fix issues with multiconfig deferred task deadlock messagesRichard Purdie
In multiconfig builds with large numbers of identical tasks, builds were deadlocking after recent runqueue changes upon rebuilds where there was heavy sstate usage (i.e. on second builds after a first completed). The issue was that deferred tasks were being left indefinitely on the deferred list. The deadlock handler was then "breaking" things by failing tasks that had already succeeded, leading to the task being on both covered and not covered lists, giving a further error. The fix is to clean up the deferred task list when each setscene task completes. I'd previously been hoping to avoid iterating that list but it appears unavoidable. [YOCTO #14342] (Bitbake rev: ae24a0f2d2d8b4b5ec10efabd0e9362e560832ea) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-08bitbake: runqueue: Avoid deadlock avoidance task graph corruptionRichard Purdie
If the deferred task deadlock avoidance code triggers, it could mark an executed task as failed which leads to "covered and not covered" error messages. Improve the logic so if the deadlock code is triggered, it doesn't cause the errors. (Bitbake rev: 51bdd6cb3bd9e2c02e261fb578bb945b86b82c75) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-08create-spdx: remove trailing commaSaul Wold
The trailing comma turns ref_id into an object instead of a string when added to the relationship table. (From OE-Core rev: ec20e1a0e0ba61a7615b361bfc9d9dc58a91f9b3) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07bitbake: bitbake: tests/fetch: add and fix npm testsScott Weaver
This adds one new test that verifies the use of a specific filename when defined in PREMIRRORS. bb.tests.fetch.NPMTest: - test_npm_premirrors_with_specified_filename While testing bz#13039, it was found that test_npm_registry_alternate fails with ENOTFOUND. This was corrected by using npmjs's public mirror. The change to fetch2 for bz#13039 highlighted an issue with the test_npm_premirrors test where the created file:// mirror was using the downloadfilename rather than the tarball that is defined by the npm url. (Bitbake rev: 5ba191a0407af9e652e3b86302dce3e952d6b587) Signed-off-by: Scott Weaver <weaverjs@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07bitbake: bitbake: tests/fetch: add downloadfilename testsScott Weaver
This adds three new tests which evaluate different use cases of the downloadfilename property. bb.tests.fetch.FetcherNetworkTest: - test_fetch_specify_downloadfilename - test_fetch_premirror_specify_downloadfilename_regex_uri - test_fetch_premirror_specify_downloadfilename_specific_uri (Bitbake rev: 61db3e96530d650e098436fd086f0182d32998f7) Signed-off-by: Scott Weaver <weaverjs@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07bitbake: bitbake: fetch2: fix premirror URI when downloadfilename definedScott Weaver
When downloadfilename is defined in a recipe's SRC_URI and PREMIRRORS is also defined using the same URI, the downloadfilename is appended to the mirror URI and it should not be. [YOCTO #13039] (Bitbake rev: 8a3ff9f3eaf19d4258eb070c5dc230dface269b2) Signed-off-by: Scott Weaver <weaverjs@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07tcmode-default: add rust to the default toolchainsRandy MacLeod
Remove the rust_versions.inc file and put it's content in tcmode-default.inc is done for other toolchains. Rename RUST_VERSION to RUSTVERSION to adhere to the naming format used for other languages. (From OE-Core rev: e56c4e0dca3ca6187271031d4f30c76a42879639) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07systemd: '${systemd_unitdir}/system' => '${systemd_system_unitdir}'Robert P. J. Day
Repo-wide replacement to use newer variable to represent systemd system unitdir directory. (From OE-Core rev: 5ace3ada5c54500c71becc8e0c6eddeb8bc053e3) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07image_types_wic.bbclass: alphabetize list of WICVARSRobert P. J. Day
It's way easier to scan a list of variables if they're sorted one per line. (From OE-Core rev: aec6fcb98c7dabf16779efb333be09d73d9f4ee0) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07go: Exclude CVE-2021-29923 from report listRichard Purdie
Upstream don't believe it is a signifiant real world issue and will only fix in 1.17 onwards. Therefore exclude it from our reports. https://github.com/golang/go/issues/30999#issuecomment-910470358 (From OE-Core rev: 5bd5faf0c34b47b2443975d66b71482d2380a01a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07flex: Add CVE-2019-6293 to exclusions for checksRichard Purdie
CVE is effectively disputed - yes there is stack exhaustion but no bug and it is building the parser, not running it, effectively similar to a compiler ICE. Upstream no plans to address and there is no security issue. https://github.com/westes/flex/issues/414 (From OE-Core rev: 0cae5d7a24bedf6784781b62cbb3795a44bab4d1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07utils: Drop obsolete oe_machinstall functionRichard Purdie
This function does something similar to the bitbake fetcher file search paths and is an old remnant of how this could have once been handled. There are no users in OE-Core and we'd always prefer the fetcher to handle this now as it handles signatures correctly. The direct OVERRIDES reference would likely break any user of the function. Remove it to be safe and ensure it isn't being used anywhere. (From OE-Core rev: d49ba0243e3d28672d16cd02753eb7e85d91bbab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07utils: Drop unused variable staging_install from oe_libinstallRichard Purdie
Remove unused variable/code. (From OE-Core rev: 76ade5a2a55eda2975dfa5d6a30ac4cb74421567) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06bitbake: doc: bitbake-user-manual-execution: remove mention to long-gone ↵Quentin Schulz
BBHASHDEPS variable BBHASHDEPS was removed from bitbake in April 2014, with the following commit: 92526eadd09d "bitbake-worker: Drop BBHASH variables" so let's remove mentions from the docs. (Bitbake rev: 7816a8de70adc3806a3739384cf08b281b4ee401) Signed-off-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06bitbake: bitbake-user-manual: replace "file name" by "filename"Michael Opdenacker
There are many more instances of "filename" or "filenames" than of "file name" or "file names". The winner takes it all! (Bitbake rev: dcd115176f63256f10db0b24b563683c4bdf8f96) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06vim: Add packageconfig for sound notification supportKhem Raj
vim uses libcanberra to implement sound, currently its ok for target since we have captured dependencies in recipe sysroot but things go a bit out of control when building vim-native, where configure starts to poke at host system and if it find libcanberra then silently enables it lets make it consistent (From OE-Core rev: 7bf11ce14336eff07a4e7216fb485f98757088ed) (From OE-Core rev: 70de1dbb660461bdf0613494f53ec4c78738ae2a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06wic: Add extra-space argumentKristian Klausen
This allows extra space to be added after the last partition and is especially useful when free space is needed for ex: adding partitions on first boot with ex: systemd-repart[1] and the image is tested in QEMU. [1] https://www.freedesktop.org/software/systemd/man/systemd-repart.html (From OE-Core rev: f81b188bcf5aa18746fd622eb7b5c0dcb0b5c93d) Signed-off-by: Kristian Klausen <kristian@klausen.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06common-licenses, licenses.conf: Remove duplicate licensesPeter Kjellerstedt
This removes BSD-0-Clause, Nauman, tcl and vim and adds mappings for them to their SPDX counterparts (0BSD, Naumen, TCL and Vim). It also removes FreeType, which already had a mapping to FTL. (From OE-Core rev: 35d699c479b6ce6acafbf75fb003618aaad094d7) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-06systemd: Add homed PACKAGECONFIGKristian Klausen
If systemd is built with fdisk support[1] and the openssl and cryptsetup PACKAGECONFIG are enabled, systemd-homed[1] is automatically enabled. The org.freedesktop.home1.conf file was forgotten, so this commit adds the file and make enabling homed a explicit choice. systemd-homed.service and systemd-homed-activate.service have a Also= on each other, so "systemctl" has been fixed to handle the circular dependency. userdb isn't strictly speaking needed for homed but "systemctl" can't handle the missing unit file and upstream recommend enabling both[3]. [1] Automatically enabled if the fdisk dependency is installed which it is as util-linux is pulled in by systemd [2] https://www.freedesktop.org/software/systemd/man/systemd-homed.service.html [3] https://github.com/systemd/systemd/commit/871dc8d644eef7542a5330f84c25b1db2617317c (From OE-Core rev: fff339b5bd7789db5d0c024fc84490ac17fa4fe9) Signed-off-by: Kristian Klausen <kristian@klausen.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04build-appliance-image: Update to master head revisionRichard Purdie
(From OE-Core rev: ffb886497390d4de2631bda671f2f631bc0bc7be) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04README: update manual list and names, online docs URLRobert P. J. Day
Minor tweaks to top-level README: - add missing line for overview manual - correct manual names to match their *actual* names - point reader at docs.yoctoproject.org for online docs (From yocto-docs rev: 0ce9097728dbdca926fdf7065490207d09a34cb0) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04ref-manual: update SYSROOT_DIRS_* variable entriesRobert P. J. Day
Both SYSROOT_DIRS and SYSROOT_DIRS_BLACKLIST have more current values. (From yocto-docs rev: 750ae3fca42e273cd533f9c8b678c2e144164191) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04dev-manual: drop "three" since there are four requirementsRobert P. J. Day
Since there are actually four listed requirements, just drop the number to avoid future issues. (From yocto-docs rev: 612015dc227600d23956402eab7f324e0c8fd42a) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04dev-manual: various pedantic nitpickeryRobert P. J. Day
Some minor grammatical and structure tweaks. (From yocto-docs rev: 505f9b21898475746d401c8ab79b95f3dc4d02e7) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04dev-manual: small number of minor aesthetic tweaksRobert P. J. Day
Just a collection of: - grammar tweaks - space fixes - font changes (From yocto-docs rev: c49984f89cd2295c54f01730649aaca83eaf515e) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04ref-manual: add missing "${PN}-src" to default PACKAGES listRobert P. J. Day
(From yocto-docs rev: c4e986364fc67799a9cba8fa1e9d33481bebaa8c) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Quentin Schulz <foss@0leil.net> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04dev-manual: explicit that devpyshell is a taskMichael Opdenacker
Without this, readers could think that "devpyshell" is a script, at least until they read the remainder of the section. (From yocto-docs rev: fe1e3323a633acf51d64cfb6c4bdd2ecd324a79e) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Reviewed-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04dev-manual: pass False to d.getVar() for devpyshell exampleRobert P. J. Day
In the example in section 3.9, the call to d.getVar() needs to have the additional argument of "False" so that the output is not expanded. (From yocto-docs rev: ae364e76a322278e7fe37aeecaa5e854d0a0efee) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-by: Quentin Schulz <foss@0leil.net> Tested-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04create-spdx: don't duplicate license texts in each packageRoss Burton
Instead of putting the full license text for non-SPDX licenses into the recipe and every package, use links to the recipe from the packages if possible. (From OE-Core rev: 9220d35dc9071ebbe991117af8261ad99f321bb3) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04create-spdx: embed unknown license textsRoss Burton
For licenses which are not known to SPDX, find and embed the actual license text in an ExtractedLicesingInfo block. (From OE-Core rev: c638f4ae579520cab8cf30e1b4306bd0e2d2a788) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04create-spdx: remove redundant testRoss Burton
add_extracted_document() is only called if the license isn't known to SPDX, so there's no need to check again. (From OE-Core rev: 03f084251510c810c8434d9ddd459187827c1ca8) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04create-spdx: transform license list into a dict for faster lookupsRoss Burton
spdx-licenses.json contains an array of licenses objects. As we'll be searching it often, convert that to a dictionary when we parse it. (From OE-Core rev: 3405d9114ca9fe4ba820e0025c91670d1a5150b1) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04oeqa/selftest/recipetool: update for license changesRoss Burton
Now that recipetool writes BSD-3-Clause, update the test appropriately. (From OE-Core rev: e4cb21609e3e95725b235de48458ab3c111ee9c1) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04go: upgrade 1.16.5 -> 1.16.7Sakib Sajal
(From OE-Core rev: dd26135ba4e23ead3a9998087cb60d9e93399e48) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04xdg-utils: Add fix for CVE-2020-27748Richard Purdie
Backport an upstream patch for the CVE. (From OE-Core rev: 87191ed0303f6552865ad1edcacd674c57f2010c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04default-distrovars.inc: Set BBINCLUDELOGS to empty to disable printing ↵Martin Jansa
failed task output multiple times * the output is shown 3 times with default configuration and 5 times when --verbose is being used with knotty, there might be other use-cases where we actually need this, but until the logging is resolved better, setting this to empty looks like more reasonable option (considering that e.g. log.do_compile from chromium-x11 can be over 50MB long, generating 150MB+ cooker log) * more details in: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14542 (From OE-Core rev: ede2e0df7982777212b8c25195d41ce9e57562b5) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04recipetool/create_buildsys_python: treat BSD as BSD-3-ClauseRoss Burton
The PyPI license classifiers include "OSI Approved: BSD", which does not specify which of the many variations of BSD license it actually means. The generic "BSD" license in the oe-core set is actually BSD-3-Clause. >From a random sample of ten PyPI modules that use "BSD", they are all BSD-3-Clause. As we expect the recipe maintainer to verify the license anyway, and this matches the previous license text, explicitly set the license to BSD-3-Clause. (From OE-Core rev: a879fff9af31e45b1acc3f19a3c2a7eaf6319ad4) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04hdparm: set correct licenseRoss Burton
The bulk of hdparm is under a unique license. Set the correct BSD version, and specify that the hdparm license is also used. (From OE-Core rev: 9a2e2251e34d020cf24d6552c06d7508df3199fa) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04ffmpeg: update LICENSERoss Burton
"BSD" is ambiguous, ffmpeg comprises of several licenses which are BSD-like. (From OE-Core rev: 50ba15c0a6867fcb0498a2c2c5449aa96e5f4bde) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04ppp: set precise BSD licenseRoss Burton
"BSD" is ambiguous, use the precise licenses BSD-3-Clause-Attribution and BSD-3-Clause. (From OE-Core rev: dceba0bcdb14a117cf8a77448a3bbc8410d96a73) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04ovmf: set precise BSD licenseRoss Burton
"BSD" is ambiguous, use the precise license BSD-2-Clause-Patent. (From OE-Core rev: 3e5c91e3517f15c25ecf56877a15962427dd0f3b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04shadow-sysroot: sync license with shadowRoss Burton
This recipe is just a single data file from shadow, but as we can't easily tell what license that specific file is under just copy the full license statement. (From OE-Core rev: f0e2f3b1f855ea6e184bd1d8d796279fedcbfa33) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-04valgrind: set precise BSD licenseRoss Burton
"BSD" is ambiguous, use the precise license BSD-3-Clause. (From OE-Core rev: b12cbda349658ddef8cb72d5738c094c2b009e7e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>