562dd6c70a
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>
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
From 00376f4dec71d4abb591ba07bc8164ba29e5955e Mon Sep 17 00:00:00 2001
|
|
From: Erico Nunes <nunes.erico@gmail.com>
|
|
Date: Tue, 22 Mar 2016 21:43:44 -0300
|
|
Subject: [PATCH] Make.rules: fix build with make <= 3.81
|
|
|
|
Building with host make 3.81 resulted in an issue where src/efivar.pc
|
|
was never generated.
|
|
Even by running 'make efivar.pc' inside the src directory, make always
|
|
returned that there was nothing to do.
|
|
This was not observed when using make 3.82 or 4.x.
|
|
It is apparently caused by the assignment operators in the multi-line
|
|
defines in Make.rules, which do not seem to be supported by make 3.81.
|
|
By omitting the assignment operators, the rule works with both versions
|
|
of make.
|
|
|
|
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
|
---
|
|
Make.rules | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Make.rules b/Make.rules
|
|
index 8a50fa5..d9c0609 100644
|
|
--- a/Make.rules
|
|
+++ b/Make.rules
|
|
@@ -42,7 +42,7 @@ include $(TOPDIR)/Make.version
|
|
|
|
%.c : %.h
|
|
|
|
-define substitute-version =
|
|
+define substitute-version
|
|
sed \
|
|
-e "s,@@VERSION@@,$(VERSION),g" \
|
|
-e "s,@@LIBDIR@@,$(libdir),g" \
|
|
@@ -61,7 +61,7 @@ pkg-config-ldflags = \
|
|
pkg-config-ldlibs = \
|
|
$(shell if [ -n "$(PKGS)" ]; then $(PKG_CONFIG) --libs-only-l $(PKGS) ; fi)
|
|
|
|
-define deps-of =
|
|
+define deps-of
|
|
$(foreach src,$(filter %.c,$(1)),$(patsubst %.c,.%.d,$(src))) \
|
|
$(foreach src,$(filter %.S,$(1)),$(patsubst %.S,.%.d,$(src)))
|
|
endef
|
|
--
|
|
2.7.4
|
|
|