path: root/meta/recipes-bsp
AgeCommit message (Collapse)Author
2021-11-03lrzsz: patch is not upstreamableAlexander Kanavin
(From OE-Core rev: fed850280c376c0668c238980d34f75e1db6d908) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-11-03recipes: Update urls to use httpsRichard Purdie
Github has announced there will be no more git:// fetching from their servers: 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 <>
2021-10-30meta: Add explict branch to git SRC_URIsRichard Purdie
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 <>
2021-10-27u-boot: upgrade 2021.07 -> 2021.10Alexander Kanavin
(From OE-Core rev: 24a4b34e25548d71bd430224adb58d87015674a7) Signed-off-by: Alexander Kanavin <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-10-23u-boot: Fix syntax error in ${UBOOT_ENV}.scr compilationPeter Hoyes
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 <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-10-18opensbi-payloads: Add dependency on kernel if fdt is setKhem Raj
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 <> Cc: Alistair Francis <> Signed-off-by: Richard Purdie <> Use strings for fallbackKhem Raj
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 <> Cc: Alistair Francis <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-10-16u-boot: Convert ${UBOOT_ENV}.cmd into ${UBOOT_ENV}.scrPeter Hoyes
* Add extra SRC variables to uboot-config.class for source cmd file * Add DEPENDS on u-boot-mkimage-native if UBOOT_ENV_SUFFIX is scr * Compile cmd -> scr in do_compile if UBOOT_ENV_SUFFIX is scr (From OE-Core rev: 0ea02ca5c1fc4e15f640b1c26c0a5ce34fc08c05) Signed-off-by: Peter Hoyes <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-10-11acpid: upgrade 2.0.32 -> 2.0.33wangmy
(From OE-Core rev: 5289c6ab3352d396446df02de2dec580cb5873e8) Signed-off-by: Wang Mingyu <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
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 <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-09-02u-boot: Make UBOOT_BINARYNAME configurableStefan Herbrechtsmeier
Make the u-boot binary name configurable. Use the existing variable UBOOT_BINARYNAME which is evaluated from the UBOOT_BINARY. (From OE-Core rev: e588cde6aed1e699a055e3481df0f3dc719c9774) Signed-off-by: Stefan Herbrechtsmeier <> Signed-off-by: Richard Purdie <>
2021-09-02u-boot: Make SPL suffix configurableStefan Herbrechtsmeier
Make the SPL suffix configurable via SPL_SUFFIX variable to support SPL binaries with suffix. The suffix is optional and empty per default. The delimiter in front of the suffix is added automatically if the suffix is not empty. A new variable SPL_BINARYFILE contains the binary file name inclusive optional delimiter and suffix and the old variable SPL_BINARYNAME contains only the name of the binary without directory, delimiter and specified suffix. This behavior is backward compatible with empty SPL_SUFFIX variable. (From OE-Core rev: e4cfec633c20d6406523da905530e887b853f7ed) Signed-off-by: Stefan Herbrechtsmeier <> Signed-off-by: Richard Purdie <>
2021-09-02u-boot: Remove misplaced configuration type variableStefan Herbrechtsmeier
(From OE-Core rev: 3fe8adbad5226d673f22f31f4903149cf3376ae5) Signed-off-by: Stefan Herbrechtsmeier <> Signed-off-by: Richard Purdie <>
2021-09-02u-boot: Remove redundancy from installed and deployed SPL artifact namesStefan Herbrechtsmeier
Remove redundant parts from the deployed and installed SPL artifact names of multi config configurations to match the other U-Boot artifact names. (From OE-Core rev: 74f1f84d09ec5b435942e2a83697834677055343) Signed-off-by: Stefan Herbrechtsmeier <> Signed-off-by: Richard Purdie <>
2021-09-01meta: stop using "virtual/" in RPROVIDES and RDEPENDSMichael Opdenacker
Fixes [YOCTO #14538] Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS. That's confusing because "virtual/" has no special meaning in RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS). Instead, using "virtual-" instead of "virtual/" as already done in the glibc recipe. (From OE-Core rev: 93ac180d8c389f16964bce8bd5538d9389e970e6) Signed-off-by: Michael Opdenacker <> Signed-off-by: Richard Purdie <>
2021-08-26gnu-efi: update 3.0.13 -> 3.0.14Alexander Kanavin
Removed non-existent header from licensing. (From OE-Core rev: 2e768f1dc6fa96cb2155eb0c1f168c4405032948) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-08-23usbutils: upgrade 013 -> 014Alexander Kanavin
License-Update: SPDX ids corrected, license are same. (From OE-Core rev: e433203b4c35eb5a9cf76349f9cd3e18f4b633dd) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-08-13u-boot: Package extlinux.conf separatelyPaul Barker
A separate u-boot-extlinux package is created for the extlinux.conf file so that it can be installed on its own if needed. If this package is populated, it is added as a dependency of the main u-boot package so that installing just u-boot still results in the extlinux.conf file being present in the rootfs. (From OE-Core rev: 40de891259e5b335e636cfa6f831b62415127e4c) Signed-off-by: Paul Barker <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-08-02Convert to new override syntaxRichard Purdie
This is the result of automated script conversion: scripts/contrib/ <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <>
2021-07-28libubootenv: Drop default-env RRECOMMENDSRichard Purdie
The link back to uboot's env is causing a ton of pain since it is making this recipe machine specific. Some machines may use uboot, some may not but you really want an architecture/machine neutral library. Revert this part of the 0.3 upgrade (OE-Core rev: 02d55cd35aac15095fc44f0cf8f9e7a71638f485) so that we don't need some of the horrible workarounds being seen in other layers. If a given machine uses u-boot, the env can be pulled in by the machine directly. (From OE-Core rev: e6d13986aa913c07f26afa81f1db35fd3e4e7779) Signed-off-by: Richard Purdie <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-07-09u-boot: upgrade 2021.04 -> 2021.07wangmy
(Changes of v2021.07) Processed 1730 csets from 187 developers 29 employers found A total of 402449 lines added, 82710 removed (delta 319739) (From OE-Core rev: df987d673c933c1040a86a863d00387df7c550cc) Signed-off-by: Wang Mingyu <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-07-02Revert "libubootenv: inherit uboot-config"Peter Bergin
This reverts commit 10aa1291979fb90bed1beb49be4d406ed0e1e4d5. As there is no build dependency between libubootenv and the configuration of u-boot there is no reason to check for UBOOT_CONFIG or UBOOT_MACHINE by adding the class uboot-config. Revert this in order to remove useless workaround in bsp layer (meta-freescale). (From OE-Core rev: a6cc842973f8e3d5a72e6f4012d0430777901408) Signed-off-by: Peter Bergin <> Acked-by: Otavio Salvador <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-06-22u-boot-tools: fix a mkimage signature issueMing Liu
A following error was observed: | Can't write signature for 'signature@1' signature node in 'conf@imx6ull-colibri-wifi-eval-v3.dtb' conf node: <unknown error> | uboot-mkimage Can't add hashes to FIT blob: -1 This is caused by a wrong return value being used in uboot source. The return value '-ENOSPC' of fit_set_timestamp function does not match the caller fit_image_write_sig's expection which is '-FDT_ERR_NOSPACE'. Fix it by not calling fit_set_timestamp, but call fdt_setprop instead. (From OE-Core rev: 8628a276a01e994e84d3c6ac8397860e8e2bbb5b) Signed-off-by: Ming Liu <> Signed-off-by: Alexandre Belloni <> Signed-off-by: Richard Purdie <>
2021-06-17grub: upgrade 2.04+2.06~rc1 -> 2.06Alexander Kanavin
(From OE-Core rev: 0f528608eb48809955b2610ecc4bd689f1cf8899) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-06-07recipes-bsp/opensbi: Add support for specifying a device treeAlistair Francis
(From OE-Core rev: 48bc2f24796705dd7ab7fe4c74690e7e1715ddaf) Signed-off-by: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-06-07recipes-bsp/u-boot: Allow deploying the u-boot DTBAlistair Francis
Use ??= assignment for UBOOT_DTB_BINARY because it is set using ?= in fitImage bbclass as well, using ?= will preempt that (From OE-Core rev: efe9f33beb053c8d645bfa5791846ffaa3cbceb4) Signed-off-by: Alistair Francis <> Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
2021-06-06recipes-bsp/opensbi: Disable FW_PICAlistair Francis
Disable FW_PIC to fix the error message: opensbi-0.9-r0 do_package_qa: QA Issue: File /share/opensbi/lp64/generic/firmware/fw_jump.elf in package opensbi doesn't have GNU_HASH (didn't pass LDFLAGS?) This is seen in newer versions of OpenSBI that enable FW_PIC by default. (From OE-Core rev: 81015a75c378b0f90e802493150a9a525dbf59bd) Signed-off-by: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-05-21u-boot: upgrade 2021.01 -> 2021.04Alexander Kanavin
(From OE-Core rev: 9da492e576b2d7190130224c486ba22675dce416) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-05-21grub: Exclude CVE-2019-14865 from cve-checkRichard Purdie
The CVE only applies to RHEL. (From OE-Core rev: 8cfc3ebe50facb7e34e778f3e264b26cfae20a04) Signed-off-by: Richard Purdie <>
2021-05-11grub2: Add CVE whitelist entries for issues fixed in 2.06Richard Purdie
We're using a pre-release version of 2.06 so these issues are fixed but continue to show up in the checks since it is pre-2.06 and the CPE entries are "before but excluding 2.06". Adding these will clean up CVE reports until the 2.06 release comes out. (From OE-Core rev: 2467ab1554bee3a431636046735e8e369e865bc6) Signed-off-by: Richard Purdie <> remove '-O2' from CFLAGSKai Kang
It fails to boot grub after upgrade grub to 2.06. According to description in it is introduced by a commit to fix CVE. So remove option '-O2' from CFLAGS rather than revert the commit to avoid the failure. [YOCTO #14367] CC: Tony Battersby <> (From OE-Core rev: 69805629b8f47fd46a37b7c5cc435982e2ac3d1d) Signed-off-by: Kai Kang <> Signed-off-by: Richard Purdie <>
2021-05-09gnu-efi: upgrade 3.0.12 -> 3.0.13Alexander Kanavin
(From OE-Core rev: 464a09f45f619f1f96e3f5c83dc3d6d68eadfcbe) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-05-04libubootenv: upgrade 0.3.1 -> 0.3.2Stefano Babic
This is a bugfix release which includes the following changes: f4ab25d shared library: Link against zlib e663439 Always fsync file writes 80b7f31 Treat '=' as an illegal character in variable names 950f541 libuboot_env: fix calculation of usable envsize fb88032 Correct initialisations in libuboot_configure 20d1ec7 Force writing of environment if default is used 5ca11bd libuboot_env: correct length to usable env size length cd4a8f1 libuboot_env_store: fix env double-null termination 9510164 uboot_env: fix infinite loop on short read (EOF) (From OE-Core rev: ed270bd146139a85935544bc0c6f35c3ecc27313) Signed-off-by: Stefano Babic <> Signed-off-by: Richard Purdie <>
2021-04-06u-boot: Move definitions to common locationsKlaus Heinrich Kiwi
Move some definitions from into uboot-config.bbclass and similarly from kernel-fitimage.bbclass into uboot-sign.bbclass, so that they can be useful when signing the U-boot proper fitimage, for a verified-boot SPL. (From OE-Core rev: cc6c3e31526d3b6ef3a87ba5e548fcad7483bd51) Signed-off-by: Klaus Heinrich Kiwi <> Signed-off-by: Richard Purdie <>
2021-03-31grub2: Enable on riscv32Khem Raj
Update the patch as submitted upstream to grub2 (From OE-Core rev: a1ce702bb5317712083ae32332051c36923c4a50) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
2021-03-28grub-efi: Re-introduce lost cast to longKhem Raj
This cast was accidentally dropped in (From OE-Core rev: c032297695e9e4bb4d0fb12dc883044bdfa870f2) Signed-off-by: Khem Raj <> Cc: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-03-28grub2: Disable for RISCV32Khem Raj
A full working port is not available yet, until such time disable it (From OE-Core rev: a8a8b7f3db955bbdb1abfce1e0be004521348669) Signed-off-by: Khem Raj <> Cc: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-03-23u-boot: Fix CVE-2021-27097, CVE-2021-27138Scott Murray
Backport fixes for CVE-2021-27097 and CVE-2021-27138 as well as a precursor fdt validation fix that allows using the upstream patches for the CVEs without significant rebasing. Note that the additional upstream changes to add new U-Boot fit image tests have been left out to keep the patch count down. Those tests are currently not used for ptest or oe-selftest, so it is believed their absence should not be problematic. (From OE-Core rev: b6c2df341d7e6da5defca9a5567fdb7212489efa) Signed-off-by: Scott Murray <> Signed-off-by: Richard Purdie <>
2021-03-20grub: upgrade 2.04 -> 2.06~rc1Naveen Saini
2.06 RC1 release have a number of CVEs fixed: CVE-2020-15705 CVE-2021-3418 CVE-2020-27749 CVE-2021-20233 CVE-2021-20225 CVE-2020-25647 CVE-2020-25632 CVE-2020-27779 CVE-2020-14372 CVE-2020-15707 CVE-2020-15706 CVE-2020-14309 CVE-2020-14310 CVE-2020-14311 CVE-2020-14308 CVE-2020-10713 CVE-2014-4607 Dropped backported patches. (From OE-Core rev: 36a59d63619c2225fe48aa1d8fb1cdabedfffc03) Signed-off-by: Richard Purdie <>
2021-03-14u-boot: Add support for building for qemuriscv32Alistair Francis
(From OE-Core rev: a9666fbfe2dcb43fe9e8fd78e357eaacd99ca75e) Signed-off-by: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-03-11formfactor: Add machine config for qemuppc64Khem Raj
(From OE-Core rev: 13bc8fa9d7ba8c2bf8c7167d0cf959273997f78f) Signed-off-by: Khem Raj <> Signed-off-by: Richard Purdie <>
2021-03-01efivar: Fix reproducibility issueRichard Purdie
Add sorting to the globbing within the Makefile to make the output reproducible. (From OE-Core rev: c43ae151f572786818fe048233b4bbfd6b0ba2cf) Signed-off-by: Richard Purdie <>
2021-02-26meta/recipes-bsp: Add HOMEPAGE / DESCRIPTIONDorinda
Added HOMEPAGE and DESCRIPTION for recipes with missing decriptions or homepage [YOCTO #13471] (From OE-Core rev: 1ce7e76551b3b2f4477f780e67cf894f760529e5) Signed-off-by: Dorinda Bassey <> Signed-off-by: Richard Purdie <>
2021-02-23grub: shuffle packaging for aarch64 buildsRoss Burton
Even in grub-efi platforms we need to build grub for the the common tools. On x86 this isn't a problem because grub builds legacy boot and grub-efi builds EFI, but on aarch64 there is no legacy boot supported by grub. To ensure that the common tools are built the grub recipe also builds EFI binaries, but this now means that grub and grub-efi ship the same binaries. oe-core 933286 fixed this conflict by deleting the binaries from grub-efi and putting the aarch64 modules into grub-common (relying on dependencies to pull grub-common in). This seems backwards: grub-efi no longer contains the binaries and they're in different packages on arm or x86. Also, SDK generation is broken as the grub package itself is now empty as the binaries are in grub-common. Resolve all of these issues by reversing the logic: grub-efi is the package which holds the EFI binaries on all platforms. grub only builds for EFI on aarch64 as a way to build the common binaries, so delete them in that recipe to avoid conflicts. And finally as the grub recipe is empty on aarch64 but needed by dependencies, set ALLOW_EMPTY. (From OE-Core rev: 801c10b33eb2074677d46b361e46f47b693b573a) Signed-off-by: Ross Burton <> Signed-off-by: Richard Purdie <>
2021-02-09u-boot: upgrade 2020.10 -> 2021.01Alexander Kanavin
tools/binman/binman needs python3-setuptools now. (From OE-Core rev: cb896051a7e7b25c02fb40aa8a422d3e5580dd34) Signed-off-by: Alexander Kanavin <> Signed-off-by: Richard Purdie <>
2021-02-07Revert "lrzsz: Fix to work with autoconf 2.70"Ross Burton
This change was only needed with 2.70, it is not needed with 2.71. This reverts commit 36aef08dcd5e45c4138ccd72e8de01157f7213c4. (From OE-Core rev: 37362d8bdbec17a676af41b13683efd17c0cef50) Signed-off-by: Ross Burton <> Signed-off-by: Richard Purdie <>
2021-02-03grub: Backport fix to work with new binutilsRichard Purdie
New versions of binutils caused object files to be 128MB in size, backporting this fix reduced them back to a sensible size, e.g. 1024 bytes. This avoids initramfix size issues! (From OE-Core rev: b72b9e81268719436e4bad5062cb0e1781da0395) Signed-off-by: Richard Purdie <>
2021-01-29lrzsz: Fix to work with autoconf 2.70Richard Purdie
Add the missing gettext version needed for autoconf 2.70. (From OE-Core rev: 6926b690fea5d0737634e39ade1a3555ab603e81) Signed-off-by: Richard Purdie <>
2021-01-23opensbi: Bump from 0.8 to 0.9Alistair Francis
(From OE-Core rev: 083bf3c575c3800a2f82abc6ee8e5383d0883f3d) Signed-off-by: Alistair Francis <> Signed-off-by: Richard Purdie <>
2021-01-01grub: Further reproducibility fixRichard Purdie
Fix the ordering in the generated unidata.c file to aid reproducibility. [YOCTO #14167] (From OE-Core rev: 6d9c9f7604fd32ef926726a46ae053bbab6ccb4f) Signed-off-by: Richard Purdie <>