summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
Commit message (Collapse)AuthorAgeFilesLines
* u-boot: Rework signing to remove interdependenciesSean Anderson2022-10-261-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The U-Boot signing code is a bit of a mess. The problem is that mkimage determines the public keys to embed into a device tree based on an image that it is signing. This results in all sorts of contortions: U-Boot has to be available to the kernel recipe so that it can have the correct public keys embedded. Then, the signed U-Boot has to be made available to U-Boot's do_deploy. This same dance is then repeated for SPL. To complicate matters, signing for U-Boot and U-Boot SPL is optional, so the whole process must be seamlessly integrated with a non-signed build. The complexity and interdependency of this process makes it difficult to extend. For example, it is not possible to install a signed U-Boot binary into the root filesystem. This is first because u-boot:do_install must run before linux:do_assemble_fitimage, which must run before u-boot:do_deploy. But aside from infrastructure issues, installing a signed U-Boot also can't happen, because the kernel image might have an embedded initramfs (containing the signed U-Boot). However, all of this complexity is accidental. It is not necessary to embed the public keys into U-Boot and sign the kernel in one fell swoop. Instead, we can sign the kernel, stage it, and sign the staged kernel again to embed the public keys into U-Boot [1]. This twice-signed kernel serves only to provide the correct parameters to mkimage, and does not have to be installed or deployed. By cutting the dependency of linux:do_assemble_fitimage on u-boot:do_install, we can drastically simplify the build process, making it much more extensible. The process of doing this conversion is a bit involved, since the U-Boot and Linux recipes are so intertwined at the moment. The most major change is that uboot-sign is no longer inherited by kernel-fitimage. Similarly, all U-Boot-related tasks have been removed from kernel-fitimage. We add a new step to the install task to stage the kernel in /sysroot-only. The logic to disable assemble_fitimage has been removed. We always assemble it, even if the final fitImage will use a bundled initramfs, because U-Boot will need it. On the U-Boot side, much of the churn stems from multiple config support. Previously, we took a fairly ad-hoc approach to UBOOT_CONFIG and UBOOT_MACHINE, introducing for loops wherever we needed to deal with them. However, I have chosen to use a much more structured approach. Each task which needs to use the build directory uses the following pseudocode: do_mytask() { if ${UBOOT_CONFIG}; then for config, type in zip(${UBOOT_CONFIG}, ${UBOOT_MACHINE}); do cd ${config} mytask_helper ${type} done else cd ${B} mytask_helper "" fi } By explicitly placing the work in mytask_helper, we make it easier to ensure that everything is covered, and we also allow bbappends files to more easily extend the task (as otherwise they would need to reimplement the loop themselves). [1] It doesn't particularly matter what we sign. Any FIT will do, but I chose the kernel's because we already went to the trouble of setting it up with the correct hashes and signatures. In the future, we could create a "dummy" image and sign that instead, but it would probably have to happen in the kernel recipe anyway (so we have access to the appropriate variables). (From OE-Core rev: 5e12dc911d0c541f43aa6d0c046fb87e8b7c1f7e) Signed-off-by: Sean Anderson <sean.anderson@seco.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: disable build on armv7ve/a with hardfpMingli Yu2022-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | The commit(75dbdea940 grub: Allow build on armv7ve/a with softfp) enable build on armv7ve/a with softfp, but it acutally enable build on armv7ve/a with hardfp altogether and result in below build failure: | checking for compile options to get strict alignment... -mno-unaligned-access | checking if compiler generates unaligned accesses... no | checking if C symbols get an underscore after compilation... no | checking whether target compiler is working... no | configure: error: cannot compile for the target So update the check to disable build on armv7ve/a with hardfp. (From OE-Core rev: f67b2880fc2cfb21f51216c63b5f24d0524b4278) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: upgrade 2022.07 -> 2022.10wangmy2022-10-263-1/+1
| | | | | | | | (From OE-Core rev: c4c010dcf2c8936e685d2933bc32c5753f82ef4c) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* acpid: upgrade 2.0.33 -> 2.0.34Ross Burton2022-10-261-1/+1
| | | | | | | | (From OE-Core rev: 3990161b6f77a89c95524afa5e2c4ad485bb325f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Add savedefconfig taskAlex Kiernan2022-10-251-0/+7
| | | | | | | | | | | Add savedefconfig task which U-Boot supports (unfortunately not all consumers of cml1 support this). (From OE-Core rev: efc54f1f836651c8ef27a683a9e5d583c8ce87a6) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Remove duplicate inherit of cml1Alex Kiernan2022-10-251-1/+1
| | | | | | | | | | | | Splitting u-boot-configure.inc out of the base left duplicate cml1.bbclass in the base include. Fixes: fc9a17ad386c ("u-boot: Split do_configure logic into separate file") (From OE-Core rev: 286f91f7659307bcdf0ba541b8d6b56db5604ceb) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: Allow build on armv7ve/a with softfpAndrei Gherzan2022-09-211-3/+7
| | | | | | | | | | | | | | | | | | | | Grub tries to force the compilation in softfp mode for some known target CPU. That is because it doesn't use floats or doubles and there are known limitations of using a configuration with hardfp. There are though target CPUs that grub won't know how to configure failing with something similar to: | checking for options to get soft-float... no | configure: error: could not force soft-float This change relaxes a bit the COMPATIBLE_HOST restriction to only apply for hardfp configuration even for arm7ve/a. (From OE-Core rev: 75dbdea94057b6977a20fb738c00c226ca694243) Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: Apply backports to fix build with clang on x86Khem Raj2022-09-203-0/+109
| | | | | | | (From OE-Core rev: 2213b6ce1ec944228d7bb3c95f2e02ac0995b5be) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libubootenv: upgrade 0.3.2 -> 0.3.3Stefano Babic2022-09-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the following changes: 1081006 Prepare 0.3.3 5d3e33c CMakeLists.txt: fix some inconsistent coding style 0e8f45c fw_printenv: dont hard-code configuration/environment files 44ecc1c fw_setenv: fix bug when SPI flash write size != sector size 9ddccfc uboot_env: fix fileprotect for Android 066bec4 CI: add REUSE compatibility check 5cd7022 Android.bp: add missing copyright 73d0ded Android.bp: initial addition 629c5bc uboot_env: remove unused function 2dab85e uboot_env: remove unused parameters 82730b4 uboot_env: remove unused variables 2736ff3 uboot_env: fix pointer-sign warnings f5d9292 uboot_env: switch to strchr/strrchr 369121e Add description of the fw_setenv script syntax 10c9a57 Include cstddef in the header for C++ 471cdd5 Correct type of conversion of HEX .flags 7dbfffa Fix parsing multiple .flags variables de31f3d Add REUSE badge 6390c1c Make libubootenv REUSE compliant 0573071 doxygen: fix libuboot_open/close return value description 0d12468 Add documentation for the configuration file b1178c1 Add configuration for disabling MTD lock 5dadcb3 main: Remove duplicated code about '=' in variable name. e085e37 libubootenv: Forbid to give empty variable name to fw_setenv. 42f919e main: Check libuboot_set_env() result. 1bc91d1 CI: add gitlab config (From OE-Core rev: d3f264c62d4759693a9649e7a28e789c8891827f) Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: switch from append to += in SRC_URIMikko Rapeli2022-09-131-1/+1
| | | | | | | | | | | | += allows custom layers to change the SRC_URI e.g. when updating the whole recipe to newer u-boot version. With :append, there is no way to change the variable from a bbappend. (From OE-Core rev: be96b384ce964ff14536d3bc40c89851a12dfb60) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gnu-efi: upgrade 3.0.14 -> 3.0.15Alexander Kanavin2022-08-213-48/+10
| | | | | | | | | | | Drop lib-Makefile-fix-parallel-issue.patch as issue fixed upstream. (From OE-Core rev: 8af2874d47acfcb43ceb8cf16d3d732c1d8ac2cc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub2: fix several CVEsYongxin Liu2022-08-2111-0/+1621
| | | | | | | | | | | | | | | | | | | | Backport CVE patches from upstream to fix: CVE-2021-3695 CVE-2021-3696 CVE-2021-3697 CVE-2022-28733 CVE-2022-28734 CVE-2022-28735 Backport the following 5 patches to make CVE patches be applied smoothly. video-Remove-trailing-whitespaces.patch video-readers-jpeg-Abort-sooner-if-a-read-operation-.patch video-readers-jpeg-Refuse-to-handle-multiple-start-o.patch (From OE-Core rev: db43401a3a4c201f02f4128fa4bac8ce993bfec0) Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* setserial: Fix build with clangKhem Raj2022-08-172-1/+43
| | | | | | | (From OE-Core rev: b6227069a9a5eed7b680e854703da3cea19b4e55) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: Fix build with glibc 2.36Khem Raj2022-08-082-0/+61
| | | | | | | (From OE-Core rev: e9eecb01c6742411531af1e269de467dcc8ef794) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: fix import functionalitygr embeter2022-07-232-0/+31
| | | | | | | | | | | | | | | | | | | "efivar --import" is broken in v38: # efivar -i /8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout free(): invalid pointer Aborted Backport upstream patch to fix it. Upstream issue: https://github.com/rhboot/efivar/issues/173 (From OE-Core rev: 27f263a9c69b711f39287c0dc8970ad41758fbb9) Signed-off-by: Grygorii Tertychnyi <grygorii.tertychnyi@leica-geosystems.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: update 2022.04 -> 2022.07Alexander Kanavin2022-07-234-3/+7
| | | | | | | | | | | | | | Native python and native swig are new requirements for scripts/dtc License-Update: added bzip2 licensed headers: https://source.denx.de/u-boot/u-boot/-/commit/fba0882bcdfd919727ee9ee8523ef3156daab507 (overall license still gpl2) (From OE-Core rev: 379bf04af85e412be155acf5292fe08e2e433de9) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efibootmgr: update 17 -> 18Alexander Kanavin2022-07-234-167/+2
| | | | | | | | (From OE-Core rev: 1f96793eb395db2351e1062aa579e21897dc69c1) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* alsa-state: correct licensePeter Marko2022-07-122-4/+6
| | | | | | | | | | | * add GPL license because of alsa-state-init file * gpl link points to gpl3, but at time of adding this file was actually pointing to gpl2, so should correspond to SPDX GPL-2.0-or-later * remove date as the file was already changed several times since then (From OE-Core rev: ca73ff0d9930d545ce8cb8a62e259c0b43310f99) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opensbi: Update to v1.1Thomas Perrot2022-06-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This release has: * SBI PMU improvements * RISC-V AIA v0.3.0 draft support * Simple external interrupt handling framework * Xilinx UART-Lite driver * RISC-V privilege specification v1.12 support * RISC-V Svpbmt extension support * RISC-V Smstateen extension support * RISC-V Sstc extension support * RISC-V privilege specification version detection * Platform callback to populate HART extensions * Compile time C arrays support * Probing FDT based drivers using compile time C arrays * SBI HSM improvements * Allwinner D1 platform support * Trap redirection improvements related to [m|h]tinst CSR * SBI v1.0 specification support Overall, this release mainly adds support for various RISC-V ISA extensions ratified in December 2021 along with other improvements. (From OE-Core rev: 337da2a521b060c72375279dac20bc8e3878926e) Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gnu-efi: enable for riscv64Ricardo Salveti2022-06-141-1/+1
| | | | | | | | | | The 3.0.14 release already includes support for riscv64. (From OE-Core rev: 116e33e1813dc115c56031913c21c05d88284215) Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pciutils: avoid lspci conflict with busyboxNaveen Saini2022-05-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | if virtualization is enabled as DISTRO_FEATURES, then meta-virtualization layer enables CONFIG_LSPCI=y for busybox, which in result have conflicts with pciutils update-alternatives: Error: not linking ..core-image-base/1.0-r0/rootfs/usr/bin/lspci to /bin/busybox.nosuid since ..core-image-base/1.0-r0/rootfs/usr/bin/lspci exists and is not a link So marking it as ALTERNATIVE with ALTERNATIVE_PRIORITY set to 100 Ref: https://git.yoctoproject.org/poky/commit/meta/recipes-bsp/pciutils?id=a81af375dfc51446b21548dce2afa6a77bc02df3 https://github.com/pciutils/pciutils/commit/0b307156c92f61c1a02d232f4c6ed17e888de9a9 https://git.yoctoproject.org/meta-virtualization/tree/recipes-core/busybox/busybox/lspci.cfg https://git.yoctoproject.org/meta-virtualization/tree/recipes-core/busybox/busybox_virtualization.inc#n4 https://git.yoctoproject.org/meta-virtualization/tree/recipes-core/busybox/busybox_%25.bbappend#n1 (From OE-Core rev: 257e7620a79ea50c0c59746ff9a3817d43411e39) Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: add musl libc compatibilityDavide Gardenal2022-05-272-2/+185
| | | | | | | | | | | | | | | | | Backport patch to get efivar working with musl. Upstream issue: https://github.com/rhboot/efivar/issues/202 After commit meta-oe/1582f81805ee3114bc1a44bd5cf52d21f96702ca fwupd gives an error when trying to build with musl because efivar is not compatible. This fixes the issue. (From OE-Core rev: 005b6aba89eaf1b79fdd7565dd028fdd9bbfcc7d) Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: upgrade 2022.01 -> 2022.04Alexander Kanavin2022-05-204-3/+3
| | | | | | | | | | | | Change to a tools-only defconfig. Add gnutls/util-linux dependency for mkeficapsule. (From OE-Core rev: a9c5f9033343ad2e26539854ccde2f116528f235) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pciutils: Add make-native dependencyRichard Purdie2022-05-091-1/+4
| | | | | | | | | | | | | | | A change in behaviour in make between 4.2.1 and 4.3 on how whitespace and appends are handled[1] causes changes in lib/libpci.pc and leads to non-reproducible builds. Add a dependency on make-native to resovle this as a least invasive and least worse solution for now. [1] https://git.savannah.gnu.org/cgit/make.git/commit/?id=b90fabc8d6f34fb37d428dc0fb1b8b1951a9fbed (From OE-Core rev: c713692fe016eaac036c9b4e8d24c6eb85e177cd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pciutils: update 3.7.0 -> 3.8.0Alexander Kanavin2022-05-052-20/+29
| | | | | | | | | | | | Rebase configure.patch Drop symlink creation; make install already does it. (From OE-Core rev: 8b35bad89eafd51d49438725e781450d7907d0f2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Inherit pkgconfigPeter Kjellerstedt2022-04-191-0/+3
| | | | | | | | | | pkg-config is used by the Makefiles, and thus pkgconfig needs to be inherited. (From OE-Core rev: 6148ac9bc5d3e0d0ffdbbd6695acd96ca1836b78) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Correct the SRC_URIPeter Kjellerstedt2022-04-191-2/+1
| | | | | | | | | This avoids a redirect. (From OE-Core rev: 879bc5098943cf6977c32555ac31cb21be7b46ae) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* keymaps: Clean up license handlingRichard Purdie2022-04-013-350/+5
| | | | | | | | | | | The license is clear, add an SPDX license identification header to the script and drop the weird patch, we don't need it. (From OE-Core rev: 17d981005a0c0c97702ad88602b7181b69bcc9eb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: ignore CVE-2021-46705Ross Burton2022-03-291-0/+2
| | | | | | | | | | This is specific to SUSE Linux. (From OE-Core rev: 594baef3b08d40fbbf1899f4cadeb9931c035c1a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub-efi: Add option to include all available modulesDiego Sueiro2022-03-121-2/+13
| | | | | | | | | | | | | Include all available modules If 'all' is present in GRUB_BUILDIN variable. To achieve this we need to search for all .mod files in ${B}/grub-core/ and pass them to grub-mkimage command. Also, add the verbose option to grub-mkimage. (From OE-Core rev: ed1bf9aa0af8c12905cf8332bbbb212ab158fe3c) Signed-off-by: Diego Sueiro <diego.sueiro@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libacpi: Build libacpi also for 'aarch64' machinesKamil Dziezyk2022-03-041-1/+1
| | | | | | | (From OE-Core rev: ccad2769b4031aa1b5952ecc78ae3f4274f96710) Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta, meta-selftest: Replace more non-SPDX license identifiersPeter Kjellerstedt2022-03-011-1/+2
| | | | | | | | | | | | | | | | In commit ceda3238 (meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX license identifiers) all LICENSE variables were updated to only use SPDX license identifiers. This does the same for comments and other variables where it is appropriate to use the official SPDX license identifiers. There are still references to, e.g., "GPLv3", but they are then typically in descriptive text where they refer to the license in a generic sense. (From OE-Core rev: 165759dced7fbe73b1db2ede67047896071dc6d0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/scripts: Automated conversion of OE renamed variablesRichard Purdie2022-02-211-1/+1
| | | | | | (From OE-Core rev: aa52af4518604b5bf13f3c5e885113bf868d6c81) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub: Fix build with bintutils 2.38 on riscvKhem Raj2022-02-202-0/+48
| | | | | | | (From OE-Core rev: d42596457628f41baa5729545e2932c6692f73ee) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-2016-18/+18
| | | | | | | | | | | | | license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Fix RISCV build with binutils 2.38Khem Raj2022-02-163-8/+52
| | | | | | | | | Ensure right ABI and march is used which matches OE core settings (From OE-Core rev: 17cd727f333580c6fd7ff20c90ede9ccce9ef60b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opensbi: Upgrade to 1.0Khem Raj2022-02-162-39/+2
| | | | | | | | | | | | | | Drop OE specific patch to shunt march/mabi this seems to work fine now. unset CLANG_TARGET so it can compile with OE produced clang toolchain which provides --target itself (From OE-Core rev: c48b57aa68149f5bdca80cadbf5b426c209ca94e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Split do_configure logic into separate fileZev Weiss2022-01-202-30/+40
| | | | | | | | | | | | | Some auxiliary u-boot recipes may need u-boot properly configured (including *.cfg additions via bbappends) but aren't necessarily building u-boot itself; to support such situations, here we split the u-boot do_configure() out of u-boot.inc and into its own u-boot-configure.inc. (From OE-Core rev: e55e6fb4983a41f74c0e457bf54bd8dfa5608daa) Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: update 37 -> 38Alexander Kanavin2022-01-207-47/+125
| | | | | | | | | | | | | | Drop determinism.patch, resolved by https://github.com/rhboot/efivar/commit/641a1626543ca3bf0cdd5ea0bd6cc3a82462521a Drop no-werror.patch, can now be replaced by ERRORS= in make invocation. Add a patch to efibootmgr to address build failures with new version. (From OE-Core rev: 60665cdd6b1bbed29b919328ab34827c055ed729) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: upgrade 2021.10 -> 2022.01Marek Vasut2022-01-183-1/+1
| | | | | | | | | | (From OE-Core rev: d9ff458e88fe764686e4df31faff9e74d5c490b7) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub-efi: Add xen_boot support when 'xen' is in DISTRO_FEATURES for aarch64Kamil Dziezyk2022-01-141-0/+3
| | | | | | | | | 'xen-boot' module is available only for aarch64. (From OE-Core rev: bfabc6d4f8742cc1fdeb49c180b0f78faf5739a2) Signed-off-by: Kamil Dziezyk <kamil.dziezyk@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* grub2: fix CVE-2021-3981Yongxin Liu2022-01-042-0/+50
| | | | | | | (From OE-Core rev: bb554d14142f93c39fd1516a31757006531c348f) Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* apmd: remove obsolete support for renamed libtoolRoss Burton2021-12-122-8/+16
| | | | | | | | | | libtool is now longer renamed to ${host}-libtool, so remove the changes to support this. (From OE-Core rev: d772775b3f77a753e8401dba3b4a73d5246a290f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* lrzsz: patch is not upstreamableAlexander Kanavin2021-11-032-2/+2
| | | | | | | (From OE-Core rev: fed850280c376c0668c238980d34f75e1db6d908) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Update github.com urls to use httpsRichard Purdie2021-11-032-2/+2
| | | | | | | | | | | | | | Github has announced there will be no more git:// fetching from their servers: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git and they're about to start having brownout periods to encourage people to update. This runs the conversion script over OE-Core to update our urls to use https instead of git. (From OE-Core rev: b37b61e9a1e448a34957db9ae39285d21352552e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Add explict branch to git SRC_URIsRichard Purdie2021-10-304-4/+4
| | | | | | | | | | | | | There is uncertainty about the default branch name in git going forward. To try and cover the different possible outcomes, add branch names to all git:// and gitsm:// SRC_URI entries. This update was made with the script added to contrib in this patch which aims to help others convert other layers. (From OE-Core rev: b51c405faf6f8c0365f7533bfaf470d79152a463) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: upgrade 2021.07 -> 2021.10Alexander Kanavin2021-10-275-46/+4
| | | | | | | | (From OE-Core rev: 24a4b34e25548d71bd430224adb58d87015674a7) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* u-boot: Fix syntax error in ${UBOOT_ENV}.scr compilationPeter Hoyes2021-10-231-1/+1
| | | | | | | | | | | | | A previous commit (a3d3c2d4ac421a0dde2a20825eab4434f16b2452) introduced support for compiling a U-Boot boot script, but the logic contained a syntax error which was only visible in the build log. Fix the error by using separate []s for each expression in the if statement. (From OE-Core rev: e33994157abbea897ceaf465f9d2a99a9c8212b1) Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opensbi-payloads: Add dependency on kernel if fdt is setKhem Raj2021-10-181-0/+2
| | | | | | | | | | | | | | | | fdts are built as part of kernel, so add missing dependency on kernel deploy task Fixes opensbi build errors | make: *** No rule to make target '/mnt/b/yoe/master/build/tmp/deploy/images/unmatched/hifive-unmatched-a00.dtb', needed by '/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux-musl/opensbi/0.9+gitAUTOINC+bd355213bf-r0/git/build/platform/gene ric/firmware/fw_dynamic.o'. Stop. (From OE-Core rev: 3a6bcd97f5239c73f036cd64b93a3ef8515d29a6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opensbi-payloads.inc: Use strings for fallbackKhem Raj2021-10-161-4/+4
| | | | | | | | | | | | | | | | This function is evaluated during parse and some machines maynot use external payload, on such machines this fails to parse Fixes bb.data_smart.ExpansionError: Failure expanding variable do_compile[depends], expression was ${@riscv_get_do_compile_depends(d)} which triggered exception TypeError: argument of type 'NoneType' is not iterab le (From OE-Core rev: b5c93cb9a63ebd8601623f411737c0af7f7efd4a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>