summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/ccache/files
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-17 00:53:06 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 09:52:50 +0100
commit81d65df30c99b9a07c749d07ebf4ba882451d32d (patch)
tree9fc1c532881f7409b50521665f9bcd0bd8c4aa21 /meta/recipes-devtools/ccache/files
parentcdbe5c93bf5dab44e14d8864123a5114d3a782a4 (diff)
downloadpoky-81d65df30c99b9a07c749d07ebf4ba882451d32d.tar.gz
ccache: fix file name too long
The all_cppflags change paths to filename which cause file name too long error when the path is longer than NAME_MAX (usually 255). Strip srcdir to fix the problem. [YOCTO #8313] (From OE-Core rev: 9bfec97d5051992d2be3cbeecf800efc87a415f3) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ccache/files')
-rw-r--r--meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch b/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch
new file mode 100644
index 0000000000..837cfadf6a
--- /dev/null
+++ b/meta/recipes-devtools/ccache/files/0002-dev.mk.in-fix-file-name-too-long.patch
@@ -0,0 +1,32 @@
1From 71bd0082c6edcf73f054a8a4fa34bd8dd4de7cd7 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Wed, 16 Sep 2015 19:45:40 -0700
4Subject: [PATCH] dev.mk.in: fix file name too long
5
6The all_cppflags change paths to filename which cause file name too long
7error when the path is longer than NAME_MAX (usually 255). Strip srcdir
8to fix the problem.
9
10Upstream-Status: Pending
11
12Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13---
14 dev.mk.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/dev.mk.in b/dev.mk.in
18index 1261ad3..ec55ac4 100644
19--- a/dev.mk.in
20+++ b/dev.mk.in
21@@ -1,7 +1,7 @@
22 # GNU make syntax reigns in this file.
23
24 all_cflags += -Werror
25-all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
26+all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d
27
28 ASCIIDOC = asciidoc
29 GPERF = gperf
30--
311.7.9.5
32