efivar: new package
commit562dd6c70a09f5481c289a4178e3247d80421688
authorErico Nunes <nunes.erico@gmail.com>
Thu, 21 Apr 2016 01:23:55 +0000 (20 22:23 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Jun 2016 13:59:49 +0000 (12 15:59 +0200)
tree9f7aac71705601114a8d3d641eea5f807e8b5c5a
parenta907562d7d3cc6056231baab79d78f8f342c455d
efivar: new package

efivar contains tools and libraries to manipulate EFI variables.

This package has some restrictions to build. It needs uchar.h which
apparently does not come in uClibc, and it also needs
__bswap_constant_*() definitions which are only present in glibc.
So, this package was limited to build with glibc toolchains.

Although it probably makes sense mostly on x86, x86-64 and aarch64
architectures, there are no architecture specific limitations which
would prevent it to build for other architectures, so this restriction
was not imposed. This package has been build-tested additionaly on many
architectures which support glibc, such as mips, MicroBlaze, sparc64,
ppc64. There were some build flag issues found when building to some of
these some architectures, although the flags can be also added in the
general case, so they were added by default.

It has also been found that in some host systems it failed to build due
to not generating the .pc files. This has been tracked to the use of
make 3.81, so a patch was prepared for it and was submitted upstream.
There's also a dependency on the linux/nvme.h header, which is somewhat
conturbed, as it has appeared in user space linux headers 3.12 and in
4.4 it was renamed. This has been solved by restricting it to build with
linux headers >= 3.12 and a patch from upstream was picked which fixes
it for linux headers >= 4.4.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
[Thomas:
 - Pass TARGET_LDFLAGS in LDFLAGS.
 - Pass -shared-libgcc only on Microblaze.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/efivar/0001-Workaround-rename-of-linux-nvme.h.patch [new file with mode: 0644]
package/efivar/0002-Make.rules-fix-build-with-make-3.81.patch [new file with mode: 0644]
package/efivar/Config.in [new file with mode: 0644]
package/efivar/efivar.hash [new file with mode: 0644]
package/efivar/efivar.mk [new file with mode: 0644]