2016-12-06 00:07:17 +01:00
|
|
|
config BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
|
|
|
|
bool
|
2017-04-22 19:17:52 +02:00
|
|
|
default y
|
2016-12-06 00:07:17 +01:00
|
|
|
depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 \
|
|
|
|
|| BR2_powerpc64le || BR2_mipsel || BR2_mips64el
|
|
|
|
|
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>
2016-04-21 03:23:55 +02:00
|
|
|
config BR2_PACKAGE_EFIVAR
|
|
|
|
bool "efivar"
|
2016-12-06 00:07:17 +01:00
|
|
|
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
|
2016-12-05 17:08:22 +01:00
|
|
|
depends on !BR2_STATIC_LIBS # dlfcn.h
|
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>
2016-04-21 03:23:55 +02:00
|
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # linux/nvme.h
|
2016-07-03 16:20:36 +02:00
|
|
|
# linux/nvme.h has been renamed to linux/nvme_ioctl.h since 4.4,
|
2016-09-30 16:46:43 +02:00
|
|
|
# and the efivar source handles that situation. However, some
|
2016-07-03 16:20:36 +02:00
|
|
|
# Sourcery CodeBench toolchains use 4.4 kernel headers but they
|
|
|
|
# don't have that header file renamed, and that is causing build
|
|
|
|
# failures. So, prevent this package to be built using those
|
|
|
|
# toolchains.
|
2016-12-06 00:07:17 +01:00
|
|
|
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
|
2016-09-30 16:46:43 +02:00
|
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
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>
2016-04-21 03:23:55 +02:00
|
|
|
help
|
|
|
|
Tools and libraries to manipulate EFI variables
|
|
|
|
|
2018-03-23 10:57:41 +01:00
|
|
|
https://github.com/rhboot/efivar
|
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>
2016-04-21 03:23:55 +02:00
|
|
|
|
2019-10-26 16:53:24 +02:00
|
|
|
comment "efivar needs a toolchain w/ dynamic library, headers >= 3.12, gcc >= 4.9"
|
2016-12-06 00:07:17 +01:00
|
|
|
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
|
2016-12-05 17:08:22 +01:00
|
|
|
depends on BR2_STATIC_LIBS || \
|
|
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \
|
2019-10-26 16:53:24 +02:00
|
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
2016-12-06 00:07:17 +01:00
|
|
|
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
|