Blame view

buildroot/buildroot-2016.08.1/package/efivar/0002-Make.rules-fix-build-with-make-3.81.patch 1.41 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  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