<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 March 2016 at 11:01, Hongxu Jia <span dir="ltr">&lt;<a href="mailto:hongxu.jia@windriver.com" target="_blank">hongxu.jia@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Previous Makefile define its own CFLAGS, pass DEBUG_FLAGS to<br>
it could fix build path issue in DWARF.<br>
<br>
[YOCTO #8457]<br>
<br>
Signed-off-by: Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt;<br>
---<br>
 meta/recipes-kernel/dtc/dtc.inc                    |  3 +++<br>
 .../dtc/dtc/pass-DEBUG_FLAGS-to-CFLAGS.patch       | 30 ++++++++++++++++++++++<br>
 2 files changed, 33 insertions(+)<br>
 create mode 100644 meta/recipes-kernel/dtc/dtc/pass-DEBUG_FLAGS-to-CFLAGS.patch<br>
<br>
diff --git a/meta/recipes-kernel/dtc/dtc.inc b/meta/recipes-kernel/dtc/dtc.inc<br>
index 0c409b0..a1a30fc 100644<br>
--- a/meta/recipes-kernel/dtc/dtc.inc<br>
+++ b/meta/recipes-kernel/dtc/dtc.inc<br>
@@ -7,8 +7,11 @@ DEPENDS = &quot;flex-native bison-native&quot;<br>
 SRC_URI = &quot;git://<a href="http://git.kernel.org/pub/scm/utils/dtc/dtc.git" rel="noreferrer" target="_blank">git.kernel.org/pub/scm/utils/dtc/dtc.git</a> \<br>
            file://make_install.patch \<br>
          &quot;<br>
+SRC_URI_append_class-target = &quot; file://pass-DEBUG_FLAGS-to-CFLAGS.patch \<br>
+&quot;<br>
<br>
 EXTRA_OEMAKE=&#39;PREFIX=&quot;${prefix}&quot; LIBDIR=&quot;${libdir}&quot; DESTDIR=&quot;${D}&quot;&#39;<br>
+EXTRA_OEMAKE_class-target += &#39;DEBUG_FLAGS=&quot;${DEBUG_FLAGS}&quot;&#39;<br>
<br>
 S = &quot;${WORKDIR}/git&quot;<br>
<br>
diff --git a/meta/recipes-kernel/dtc/dtc/pass-DEBUG_FLAGS-to-CFLAGS.patch b/meta/recipes-kernel/dtc/dtc/pass-DEBUG_FLAGS-to-CFLAGS.patch<br>
new file mode 100644<br>
index 0000000..3f17ee9<br>
--- /dev/null<br>
+++ b/meta/recipes-kernel/dtc/dtc/pass-DEBUG_FLAGS-to-CFLAGS.patch<br>
@@ -0,0 +1,30 @@<br>
+From 4019e29b0c1ec441fa43d9969197c24ad73f3b1a Mon Sep 17 00:00:00 2001<br>
+From: Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt;<br>
+Date: Fri, 26 Feb 2016 03:28:15 -0500<br>
+Subject: [PATCH] Makefile: pass DEBUG_FLAGS to CFLAGS<br>
+<br>
+It fixes buildpaths issue while compiling.<br>
+<br>
+Upstream-Status: Inappropriate [openembedded specific]<br>
</blockquote><div><br></div><div>Is this really an openembedded specific change?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+<br>
+Signed-off-by: Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt;<br>
+---<br>
+ Makefile | 2 +-<br>
+ 1 file changed, 1 insertion(+), 1 deletion(-)<br>
+<br>
+diff --git a/Makefile b/Makefile<br>
+index 18838cc..4954f32 100644<br>
+--- a/Makefile<br>
++++ b/Makefile<br>
+@@ -18,7 +18,7 @@ CONFIG_LOCALVERSION =<br>
+ CPPFLAGS = -I libfdt -I .<br>
+ WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \<br>
+       -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow<br>
+-CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)<br>
++CFLAGS = $(DEBUG_FLAGS) -Os -fPIC -Werror $(WARNINGS)<br>
+<br>
+ BISON = bison<br>
+ LEX = flex<br>
+--<br>
+1.9.1<br>
+<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div></div>