summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/efivar
Commit message (Collapse)AuthorAgeFilesLines
* efivar: upgrade 38 -> 39Wang Mingyu2024-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========== -Add -T workaround for GNU ld 2.36 -Add extern "C" to headers for easier use by C++ -Avoid format error on i686 -Fix the -march issue for riscv64 -Fix musl build -Fix invalid free in main() -Remove deprecated --add-needed linker flag -src/Makefile: build util.c separately for makeguids -Adjust dependency for libefivar and libefiboot objects -Set LC_ALL=C to force English output from ld -LLD: fix detection and remove not needed workarounds -Fix glibc 2.36 build (mount.h conflicts) -File device paths: don't print "File(" or ")" -Use off_t instead of off64_t -Revamp efi_well_known_* variable handling -Allow overriding PKG_CONFIG -Allow passing of hex values to -A -Allow -a to create a non-existent variable -make: add option to disable building/installing the docs -esl-iter.h: fix type declaration of return value for gcc-13 -Minor code updates -src/Makefile: do not override LIBS and CFLAGS for prerequisites -linux: handle non-ACPI systems in device_get() -Change set&append data to be const. -dp.h: check _ucs2size in format_ucs2() -Fix wrong if condition in efi_variable_get_data -Make README statement match license -Remove needless access() in efivarfs_probe() (From OE-Core rev: d8fdd64d13d5598b16ddf7329d5ca283ec7da518) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes/classes/scripts: Drop SRCPV usage in OE-CoreRichard Purdie2023-08-241-1/+1
| | | | | | | | Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: drop -fuse-ld=bfdMartin Jansa2023-08-041-4/+0
| | | | | | | | | | | | | | | | * upstream doesn't use --add-needed since: b23aba1 Remove deprecated --add-needed linker flag https://github.com/rhboot/efivar/pull/218/commits/b23aba1469de8bb7a115751f9cd294ad3aaa6680 which is already included in the source since: "efivar: Upgrade to tip of trunk" https://git.openembedded.org/openembedded-core/commit/?id=4df808c616f847d90203582fd950a49bb8360dd0 (From OE-Core rev: 52572a930b8c3518e07010bafc2a1920d4a11884) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: Upgrade to tip of trunkKhem Raj2023-06-156-357/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop all the patches accepted upstream Additional important changes it fixes build with lld linker Following changes are brought over from trunk * 90e88b2 Allow -a to create a non-existent variable * 9306e0b Allow passing of hex values to -A * 328f584 Allow overriding PKG_CONFIG * cfd686d Revamp efi_well_known_* variable handling * 914c686 Use off_t instead of off64_t * dd901c1 Fix IPv4 and IPv6 Device Path printing * c4138d0 efidp_ipv6_addr: fix gateway size * bfe9a6b format_ipv6_addr_helper(): fix bad port-printing conditional * 7c39722 format_ipv6_addr_helper: fix dp_type usage * 9a5e710 File device paths: don't print "File(" or ")" * bc65d63 Fix glibc 2.36 build (mount.h conflicts) * 1f24726 LLD: fix detection and remove not needed workarounds * 01de743 Set LC_ALL=C to force English output from ld * 26ad685 Adjust dependency for libefivar and libefiboot objects * ca48d39 src/Makefile: build util.c separately for makeguids * b23aba1 Remove deprecated --add-needed linker flag * 6be2cb1 Fix invalid free in main() * df09b47 efisecdb: do not free optarg * cece3ff efisecdb: fix build with musl libc * aab4e9b Fix the -march issue for riscv64 * 15622b7 Avoid format error on i686 * 28789d1 Add `extern "C"` to headers for easier use by C++ * 197a087 Add -T workaround for GNU ld 2.36 (From OE-Core rev: 4df808c616f847d90203582fd950a49bb8360dd0) 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>
* efivar: Replace off64_t with off_tKhem Raj2022-12-212-0/+40
| | | | | | | | (From OE-Core rev: 0cb0755dd938583a06b7983dedf896315398a532) 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>
* 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>
* 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>
* meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie2022-02-201-1/+1
| | | | | | | | | | | | | 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>
* efivar: update 37 -> 38Alexander Kanavin2022-01-205-46/+73
| | | | | | | | | | | | | | 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>
* recipes: Update github.com urls to use httpsRichard Purdie2021-11-031-1/+1
| | | | | | | | | | | | | | 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-301-1/+1
| | | | | | | | | | | | | 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>
* Convert to new override syntaxRichard Purdie2021-08-021-2/+2
| | | | | | | | | | | | This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: Fix reproducibility issueRichard Purdie2021-03-012-0/+19
| | | | | | | | | Add sorting to the globbing within the Makefile to make the output reproducible. (From OE-Core rev: c43ae151f572786818fe048233b4bbfd6b0ba2cf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: ensure that target security flags are not used to build native codeRoss Burton2019-07-021-1/+4
| | | | | | | | | | | | Also set LDFLAGS=BUILD_LDFLAGS when compiling makeguids to ensure that any target compiler flags are not passed to the native compiler. [ YOCTO #13423 ] (From OE-Core rev: f61e0676aabba9e006c32f0e53c69426368cd4f0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* efivar: addRoss Burton2019-06-142-0/+55
This was in meta-oe but EFI is sufficiently wide spread now that we need it in core. The recipe is based on the one in meta-oe but with several updates. (From OE-Core rev: 53fe0133432f62024850e87456292b044d1280ee) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>