14 Commits

Author SHA1 Message Date
Khem Raj
dd5b81adff efivar: Backport patches to remove double const decls
Helps fixing build with gcc 7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-04-26 20:14:15 +02:00
Khem Raj
fa630bc9ef efivar: Fix multiple definition of `efi_set_variable'
This patch is needed across all efivar when using gcc7 for target

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-04-26 20:13:31 +02:00
Derek Straka
25dbf48ff7 efivar: unblacklist package and those that depend on it
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-04 12:38:53 +01:00
Martin Jansa
044e518954 smbnetfs gnome-disk-utility contacts kexecboot initramfs-kexecboot-klibc-image system-config-keyboard system-setup-keyboard geany geany-plugins efivar efibootmgr gimp system-config-keyboard tumbler: Blacklist
* fails repeatedly as reported in:
  http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111112.html
  http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111173.html
  http://lists.openembedded.org/pipermail/openembedded-devel/2017-February/111180.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-13 20:34:21 +01:00
Hongxu Jia
010d99d557 efivar: fix PIC not found
Previously, we tweak gcc option for gold linker to workaround
link failure, it caused shared object dependencies missing
while non gold linker:

Print shared object dependencies in target:
......
root@localhost:~# ldd /usr/sbin/efibootmgr
	linux-vdso.so.1 (0x00007ffdbbbe4000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fce48355000)
	PIC => not found
	libefivar.so.0 => /usr/lib64/libefivar.so.0 (0x00007fce4813d000)
	PIC => not found
	libefiboot.so.0 => /usr/lib64/libefiboot.so.0 (0x00007fce47f33000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fce486f2000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fce47d2f000)
......

The efivar dynamic library missing PIC option. Do not apply
gold linker fix while non gold linker.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-05 13:27:40 +02:00
Kai Kang
7f3023003c efivar: 0.23 -> 0.24
Upgrade efivar from 0.23 to 0.24. Enable full native build at same
time and add patch to fix compile error of "multiple definition of
`efi_set_variable'".

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-15 12:32:00 +02:00
mingli.yu@windriver.com
f9f857807d efivar: add COMPATIBLE_HOST item
* Add COMPATIBLE_HOST item to avoid build error
  on mips and ppc as efivar actually a UEFI tool
  which is specific to x86 and arm.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-29 11:01:00 +02:00
Hongxu Jia
0cce9fee04 efivar-native: fix compile failure with older host gcc (<=4.6)
While host gcc version is 4.6.3 in ubuntu 1204, it
did not recognize -std=gnu11 and -Wmaybe-uninitialized.

While host gcc version is 4.4.7 in centos6, it
did not recognize -std=gnu11, -Wmaybe-uninitialized,
and -flto.

For native build, use -std=gnu99 to replace -std=gnu11,
and directly remove -Wmaybe-uninitialized and -flto.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-08 14:55:24 +02:00
Hongxu Jia
c9c82d313e efivar: fix unknown option while gold linker used
- Use '-fPIC' to replace 'PIC';

- Use 'pie' to replace 'PIE'

- Remove unknown '--add-needed'

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-19 12:02:39 +02:00
Hongxu Jia
f0a1e61c47 efivar: fix do_install failed
It fixes efivar.pc not found:
...
| install -d -m 755 efivar/0.23-r0/image/usr/lib/pkgconfig/
| install -m 644 efivar.pc efivar/0.23-r0/image/usr/lib/pkgconfig/
;  install -m 644 efiboot.pc efivar/0.23-r0/image/usr/lib/pkgconfig/
;
| install: cannot stat 'efivar.pc': No such file or directory
| install: cannot stat 'efiboot.pc': No such file or directory
| make[1]: *** [install] Error 1
| make[1]: Leaving directory `efivar/0.23-r0/git/src'
| make: *** [install] Error 2
| ERROR: oe_runmake failed
...

Also sync with latest upstream

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-19 12:02:39 +02:00
Koen Kooi
fe4cb8b072 efivar: update to 0.23
Upstream removed the use of the nvme headers completely,
so no more conflicts. Also drop gcc options patch, ubuntu
12.04 is too old to support in meta-oe/master.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-19 12:02:38 +02:00
Martin Jansa
9121dc9567 efivar: blacklist until nvme_ioctl.h issues are resolved
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 17:47:30 +01:00
Kai Kang
7967a79c83 efivar: 0.7 -> 0.21
Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* update license file checksum. It made FSF addresses in COPYING be URLs.
  Ref: https://github.com/rhinstaller/efivar/commit/ca88012
* add -native recipe to provide command makeguids
  and add patch for target package to use this native makeguids command
* add patch to build efivar-native with lower version gcc which doesn't
  support options '-Wmaybe-uninitialized' and '-std=gnu11'

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-10-23 12:53:21 +02:00
Stanacar, StefanX
24afc0aaa5 efivar: add recipe
efivar is is a tool to manipulate UEFI variables.
This is obviously useful only for EFI machines that have
the efivarfs interface enabled in the kernel config (CONFIG_EFIVAR_FS),
and mounted (mount -t efivarfs efivarfs /sys/firmware/efi/efivars).

Sample usage:
GUID: 4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
Name: "LoaderEntrySelected"
Attributes:
    Boot Service Access
    Runtime Service Access
Value:
00000000  62 00 6f 00 6f 00 74 00  00 00                    |b.o.o.t...      |

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-03-29 22:39:50 +01:00