• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/efivar/0002-Make.rules-fix-build-with-make-3.81.patch
Erico NunesErico Nunes committed 562dd6c70a021 Apr 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 00376f4dec71d4abb591ba07bc8164ba29e5955e Mon Sep 17 00:00:00 2001
2
From: Erico Nunes <nunes.erico@gmail.com>
3
Date: Tue, 22 Mar 2016 21:43:44 -0300
4
Subject: [PATCH] Make.rules: fix build with make <= 3.81
5
​
6
Building with host make 3.81 resulted in an issue where src/efivar.pc
7
was never generated.
8
Even by running 'make efivar.pc' inside the src directory, make always
9
returned that there was nothing to do.
10
This was not observed when using make 3.82 or 4.x.
11
It is apparently caused by the assignment operators in the multi-line
12
defines in Make.rules, which do not seem to be supported by make 3.81.
13
By omitting the assignment operators, the rule works with both versions
14
of make.
15
​
16
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
17
---
18
 Make.rules | 4 ++--
19
 1 file changed, 2 insertions(+), 2 deletions(-)
20
​
21
diff --git a/Make.rules b/Make.rules
22
index 8a50fa5..d9c0609 100644
23
--- a/Make.rules
24
+++ b/Make.rules
25
@@ -42,7 +42,7 @@ include $(TOPDIR)/Make.version
26
 
27
 %.c : %.h
28
 
29
-define substitute-version =
30
+define substitute-version
31
    sed                     \
32
        -e "s,@@VERSION@@,$(VERSION),g"     \
33
        -e "s,@@LIBDIR@@,$(libdir),g"       \
34
@@ -61,7 +61,7 @@ pkg-config-ldflags = \
35
 pkg-config-ldlibs = \
36
    $(shell if [ -n "$(PKGS)" ]; then $(PKG_CONFIG) --libs-only-l $(PKGS) ; fi)
37
 
38
-define deps-of =
39
+define deps-of
40
    $(foreach src,$(filter %.c,$(1)),$(patsubst %.c,.%.d,$(src))) \
41
    $(foreach src,$(filter %.S,$(1)),$(patsubst %.S,.%.d,$(src)))
42
 endef
43
-- 
44
2.7.4
45
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.