blob: 2c030b55dda8c5227bb9876ba747711b67009d77 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From e273e0ebc753645555909bcc4874c72458b17891 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Fri, 17 Jan 2014 03:17:44 -0500
4Subject: [PATCH] Make.rules: filter-out the patches from subdirs
5
6The $(subdirs) contains all the dirs under the ${B}, and this one:
7
8do_unpack[cleandirs] = "${S}/patches"
9
10will create a "patches" dir, then there will be compile errors, filter
11out the patches will fix the problem.
12
13Note: poky doesn't have this problem since it separates the ${S} and
14${B}
15
16Upstream-Status: Inappropriate [OE specific]
17
18Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
19---
20 Make.rules | 4 ++--
21 1 file changed, 2 insertions(+), 2 deletions(-)
22
23diff --git a/Make.rules b/Make.rules
24index b077cd5..0bfce2d 100644
25--- a/Make.rules
26+++ b/Make.rules
27@@ -97,7 +97,7 @@ endif
28 subdirs := $(filter-out $(SKIPDIRS), $(subdirs))
29 endif
30
31-install install-%: subdirs := $(filter-out $(SKIPINSTALL), $(subdirs))
32+install install-%: subdirs := $(filter-out $(SKIPINSTALL) patches, $(subdirs))
33
34
35 override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
36@@ -106,7 +106,7 @@ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
37 INCLUDEDIRS := $(filter $(INCLUDEDIRS), $(subdirs))
38 LIBDIRS := $(filter $(LIBDIRS), $(subdirs))
39 MODDIRS := $(filter $(MODDIRS), $(subdirs))
40-EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs))
41+EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS) patches, $(subdirs))
42 MODUSERS := $(filter $(MODUSERS), $(subdirs))
43 SBINUSERS := $(filter $(SBINUSERS), $(subdirs))
44
45--
461.7.10.4
47