summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* license_image.bbclass: Detect broken symlinksReto Schneider2021-04-271-2/+13
| | | | | | | | | 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>
* oe-time-dd-test.sh: collect cooker log when timeout is exceededSakib Sajal2021-04-271-0/+1
| | | | | | | | | | 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>
* gnutls: Point to staging area for finding seccomp libs and includesKhem Raj2021-04-271-1/+1
| | | | | | | | | | | | | | | 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>
* qemurunner: Add support for qmp commandsSaul Wold2021-04-277-7/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* qemu-system-native: install qmp python moduleSaul Wold2021-04-271-0/+5
| | | | | | | | | | | | | | | | | 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>
* gcc-cross-canadian: Install LTO linker plugin to BFD searchable locationKhem Raj2021-04-271-1/+8
| | | | | | | | | | 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>
* gcc-cross: Install linker LTO plugin for binutils toolsKhem Raj2021-04-271-1/+7
| | | | | | | | | | | | 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>
* bitbake.conf: Use gcc-nm as default NMKhem Raj2021-04-271-1/+1
| | | | | | | | | 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>
* gcc-target: Create a LTO plugin symlink in bfd-plugins directoryKhem Raj2021-04-271-1/+3
| | | | | | | | | | | | | | | | 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>
* bitbake: doc: bitbake-user-manual: fix typo left over from Sphinx migrationNicolas Dechesne2021-04-261-2/+2
| | | | | | | | | | 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>
* bitbake: doc: bitbake-user-manual: code insertion simplification over two linesMichael Opdenacker2021-04-261-6/+3
| | | | | | | | | | | | | | | 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>
* bitbake: doc: bitbake-user-manual: simplify colon usageMichael Opdenacker2021-04-266-193/+193
| | | | | | | | | | - 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>
* default-distrovars.inc: Remove seccomp for riscv32Khem Raj2021-04-261-0/+3
| | | | | | | | | 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>
* rsync: fix CVE-2020-14387Chen Qi2021-04-262-0/+32
| | | | | | | | | 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>
* default-distrovars.inc: Add seccomp to DISTRO_FEATURES_DEFAULTArmin Kuster2021-04-261-1/+1
| | | | | | | | | 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>
* apt: Fix build on musl when seccomp is enabledKhem Raj2021-04-262-0/+49
| | | | | | | | (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>
* apt: Disable libseccompRichard Purdie2021-04-261-0/+1
| | | | | | | | | | | | 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>
* qemu: Enable seccomp if FEATURE is setArmin Kuster2021-04-261-0/+1
| | | | | | | (From OE-Core rev: c057509306319cc0c2c7ef89154995ffd96c5646) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd: Enable seccomp if FEATURE is setArmin Kuster2021-04-261-2/+1
| | | | | | | (From OE-Core rev: c9d4fb93429a90191dc77e1dbc183535d66952cb) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gnutls: Enable seccomp if FEATURE is setArmin Kuster2021-04-261-1/+1
| | | | | | | (From OE-Core rev: f2527b5567252c7da4fbd863e119c8114e6debcd) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libseccomp: Fix reproducibility issueRichard Purdie2021-04-261-0/+4
| | | | | | | | | 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>
* libseccomp: Add MAINTAINERS entry and HOMEPAGERichard Purdie2021-04-262-0/+2
| | | | | | | | 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>
* libseccomp: move recipe from meta-security to coreArmin Kuster2021-04-262-0/+53
| | | | | | | | | | | | | | | | | | 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>
* linux-firmware: Package RSI 911x WiFi firmwareMarek Vasut2021-04-261-0/+11
| | | | | | | | | | | | 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>
* yocto-check-layer: Avoid bug when iterating and autoadding dependenciesRichard Purdie2021-04-241-0/+3
| | | | | | | | | | | | | | | | 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>
* libssh2: fix build failure with option no-ecdsaStefan Ghinea2021-04-242-0/+113
| | | | | | | | | | | | | | | | | | | 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>
* pyyaml: Add missing HOMEPAGERichard Purdie2021-04-241-0/+1
| | | | | | | | 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>
* python3-pyyaml: Add recipeKhem Raj2021-04-242-0/+19
| | | | | | | | | | 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>
* python3-jinja2: Enable ptestsKhem Raj2021-04-241-2/+2
| | | | | | | | | | 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>
* python3-markupsafe: Enable ptestsKhem Raj2021-04-241-1/+1
| | | | | | | | | 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>
* python3-docutils: Upgrade to 0.17.1Khem Raj2021-04-242-17/+11
| | | | | | | | | | | | | | | | 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>
* gcr: fix one parallel build failureChangqing Li2021-04-242-0/+39
| | | | | | | | | | | | | | | | | 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>
* unzip: use optimization from bitbakeMikko Rapeli2021-04-242-0/+128
| | | | | | | | | | | | | 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>
* qemu: fix CVE-2021-20257Sakib Sajal2021-04-242-0/+56
| | | | | | | (From OE-Core rev: 547ac986a74cfcae39b691ebb92aadc8436443ea) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: fix CVE-2021-3416Sakib Sajal2021-04-2411-0/+582
| | | | | | | (From OE-Core rev: e2b5bc11d1b26b73b62e1a63cb75572793282dcb) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: fix CVE-2021-3409Sakib Sajal2021-04-247-0/+493
| | | | | | | (From OE-Core rev: e2fb8c15a64e1f5db678e8e95924da8c88a188c0) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: fix CVE-2021-20221Sakib Sajal2021-04-242-0/+71
| | | | | | | (From OE-Core rev: 59a44f8c70d4a026ae74e44b9d70100029c691b5) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: fix CVE-2020-29443Sakib Sajal2021-04-242-0/+108
| | | | | | | (From OE-Core rev: 481e012de865ee232fa5a233e9f1d4fc7a2232ab) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: fix CVE-2021-20181Sakib Sajal2021-04-242-0/+82
| | | | | | | (From OE-Core rev: c2f79065ef0684f2c0bdb92f1b03e690ab730b8c) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkoutKai Kang2021-04-241-1/+1
| | | | | | | | | | | | | 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>
* cmake.bbclass: remove ${B} before cmake_do_configureKai Kang2021-04-241-5/+3
| | | | | | | | | | | | It is fallible to remove ${B} in directory ${B} itself. And it does fail when call bitbake by third-party wrapper script. Use flag 'cleandirs' to remove ${B} first if build out of source tree. (From OE-Core rev: 0fb6280432a36985590d9a714a5f11164aaebb51) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lz4: use CFLAGS from bitbakeMikko Rapeli2021-04-241-1/+1
| | | | | | | | | | | Currently lz4 uses it's own defaults which include O3 optimization. Switch from O3 to bitbake default O2 reduces binary package size from 467056 to 331888 bytes. Enables also building with Os if needed. (From OE-Core rev: abaaf8c6bcd368728d298937a9406eb2aebc7a7d) Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* perl: fix startperl configuration option for perl-nativePaulo Cesar Zaneti2021-04-241-2/+3
| | | | | | | | | | | | | | | | Unlike vanilla Perl "Configure" script, perl-cross "configure" does not derive "startperl" from "bin". It instead derives from "perlpath". This patch aims to fix "startperl" configuration option for perl-native by correctly setting "perlpath" on perl-cross "configure" script. It also changes do_install_append_class-native task to comply with cpan_do_install task. (From OE-Core rev: f2d1523b19cb066a4a06609f036822fe4a8b43f0) Signed-off-by: Paulo Cesar Zaneti <paulo.zaneti@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ref-manual/variables.rst: Add incompatibility warning for SERIAL_CONSOLES_CHECKTrevor Gamblin2021-04-231-1/+5
| | | | | | | | | | | | | | See [YOCTO #13921] Add details to the SERIAL_CONSOLES_CHECK entry to clarify that it doesn't work with read-only rootfs. (From yocto-docs rev: cefd66301a40f9048499879674e467543f704c44) Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Reviewed-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* manuals: code insertion simplification over two linesMichael Opdenacker2021-04-2338-1949/+974
| | | | | | | | | | | | | | | 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. (From yocto-docs rev: 28e2192a7c12d64b68061138a9f6c796453eebb1) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* manuals: simplify code insertionMichael Opdenacker2021-04-2315-155/+155
| | | | | | | | | | This replaces instances of ": ::" by "::", which generates identical HTML output (From yocto-docs rev: 1f410dfc7c16c09af612de659f8574ef6cff4636) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dev-manual: fix code insertionMichael Opdenacker2021-04-231-1/+1
| | | | | | | | | | | Fix a misaligned code insertion statement, causing the code block to be misaligned compared to the other ones in subsequent paragraphs (From yocto-docs rev: bc03d122a35ac027d0aab5bfd70b366933fd7356) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Adding dunfell 3.1.7 to the switcher and release list.Vineela Tummalapalli2021-04-232-1/+2
| | | | | | | (From yocto-docs rev: bed221137de77340280d71b4a8b0f2f60addc566) Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: layerindex: Add --fetchdir parameter to layerindex-fetchDiego Sueiro2021-04-231-4/+11
| | | | | | | | | | | | Introduce --fetchdir parameter to layerindex-fetch enabling users to choose the directory to fetch the layers different from BBLAYERS_FETCH_DIR. [YOCTO #14347] (Bitbake rev: 784a904faffac723ddf58ba765b9dd11ac068de5) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: layerindex: Fix bitbake-layers layerindex-show-depends commandDiego Sueiro2021-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Running 'bitbake-layers layerindex-show-depends meta-filesystems' fails with: ``` Traceback (most recent call last): File "<...>/poky/bitbake/bin/bitbake-layers", line 93, in <module> ret = main() File "<...>/poky/bitbake/bin/bitbake-layers", line 86, in main return args.func(args) File "<...>/poky/bitbake/lib/bblayers/layerindex.py", line 209, in do_layerindex_show_depends self.do_layerindex_fetch(args) File "<...>/poky/bitbake/lib/bblayers/layerindex.py", line 182, in do_layerindex_fetch args.shallow) AttributeError: 'Namespace' object has no attribute 'shallow' ``` Initialize the shallow attribute to fix it. (Bitbake rev: 71f095c147fe6aa7b5e6272002e0498cf9494256) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>