blob: 3f43f2a93e7f8138a9c5684dc4f6ab917db1e05b [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From 7ead29ca6bb5e280ae07551cc3521281ecf73682 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sat, 7 May 2016 02:06:47 -0400
4Subject: [PATCH] Makefile: fix efivar.pc not found
5
6It fixes efivar.pc not found:
7...
8| install -d -m 755 efivar/0.23-r0/image/usr/lib/pkgconfig/
9| install -m 644 efivar.pc efivar/0.23-r0/image/usr/lib/pkgconfig/
10; install -m 644 efiboot.pc efivar/0.23-r0/image/usr/lib/pkgconfig/
11;
12| install: cannot stat 'efivar.pc': No such file or directory
13| install: cannot stat 'efiboot.pc': No such file or directory
14| make[1]: *** [install] Error 1
15| make[1]: Leaving directory `efivar/0.23-r0/git/src'
16| make: *** [install] Error 2
17| ERROR: oe_runmake failed
18...
19
20Upstream-Status: Pending
21
22Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
23---
24 src/Makefile | 4 +++-
25 1 file changed, 3 insertions(+), 1 deletion(-)
26
27diff --git a/src/Makefile b/src/Makefile
28index c7a0ca3..ad9c427 100644
29--- a/src/Makefile
30+++ b/src/Makefile
31@@ -78,7 +78,9 @@ install : all
32 ln -fs $(x).$(VERSION) $(DESTDIR)$(libdir)/$(x).$(MAJOR_VERSION);\
33 ln -fs $(x).$(VERSION) $(DESTDIR)$(libdir)/$(x); )
34 $(INSTALL) -d -m 755 $(DESTDIR)$(PCDIR)
35- $(foreach x, $(PCTARGETS), $(INSTALL) -m 644 $(x) $(DESTDIR)$(PCDIR) ;)
36+ $(foreach x, $(PCTARGETS), $(INSTALL) -m 644 $(TOPDIR)/src/$(x).in $(DESTDIR)$(PCDIR)/$(x) ;\
37+ sed -i -e "s:@@LIBDIR@@:$(libdir):g" -e "s:@@VERSION@@:$(VERSION):g" \
38+ $(DESTDIR)$(PCDIR)/$(x); )
39 $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)/efivar
40 $(foreach x, $(wildcard $(TOPDIR)/src/include/efivar/*.h), $(INSTALL) -m 644 $(x) $(DESTDIR)$(includedir)/efivar/$(notdir $(x));)
41 $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
42--
432.8.1
44