Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734446 > unrolled thread

[PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to

Started byfrowand.list@gmail.com
First post2017-09-18 22:20 +0200
Last post2017-09-19 01:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to frowand.list@gmail.com - 2017-09-18 22:20 +0200
    Re: [PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts  paths to Frank Rowand <frowand.list@gmail.com> - 2017-09-19 01:50 +0200

#1734446 — [PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to

Fromfrowand.list@gmail.com
Date2017-09-18 22:20 +0200
Subject[PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to
Message-ID<uraGl-2HS-7@gated-at.bofh.it>
From: Frank Rowand <frank.rowand@sony.com>

Update dtx_diff include paths in the same manner as:
commit b12869a8d519 ("of: remove drivers/of/testcase-data from
include search path for CPP"), commit 5ffa2aed389c ("of: remove
arch/$(SRCARCH)/boot/dts from include search path for CPP"), and
commit 50f9ddaf64e1 ("of: search scripts/dtc/include-prefixes path
for both CPP and DTC").

Remove proposed include path kernel/dts/, which was never implemented
for the dtb build.

For the diff case, each source file is compiled separately.  For
each of those compiles, provide the location of the source file
as an include path, not the location of both source files.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
---

The referenced commits b12869a8d519, 5ffa2aed389c, 50f9ddaf64e1
are in v4.14-rc1.  No stable kernels need this patch.

changes from v1:
   - update summary commit message, since there is a very similar message
     for b4b201d88b7c: dtx_diff - update include dts paths to match build
   - move signed-off-by to above "---"

 scripts/dtc/dtx_diff |   22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff
index f9a3d8d23c64..8c4fbad2055e 100755
--- a/scripts/dtc/dtx_diff
+++ b/scripts/dtc/dtx_diff
@@ -86,6 +86,7 @@ eod
 compile_to_dts() {
 
 	dtx="$1"
+	dtc_include="$2"
 
 	if [ -d "${dtx}" ] ; then
 
@@ -113,7 +114,7 @@ compile_to_dts() {
 		# -----  input is DTS (source)
 
 		if ( cpp ${cpp_flags} -x assembler-with-cpp ${dtx} \
-			| ${DTC} -I dts ) ; then
+			| ${DTC} ${dtc_include} -I dts ) ; then
 			return
 		fi
 
@@ -320,18 +321,13 @@ fi
 
 cpp_flags="\
 	-nostdinc                                  \
-	-I${srctree}/arch/${ARCH}/boot/dts         \
 	-I${srctree}/scripts/dtc/include-prefixes  \
-	-I${srctree}/drivers/of/testcase-data      \
 	-undef -D__DTS__"
 
-dtc_flags="\
-	-i ${srctree}/arch/${ARCH}/boot/dts/ \
-	-i ${srctree}/kernel/dts             \
-	${dtx_path_1_dtc_include}            \
-	${dtx_path_2_dtc_include}"
-
-DTC="${DTC} ${dtc_flags} -O dts -qq -f ${dtc_sort} -o -"
+DTC="\
+	${DTC}                                     \
+	-i ${srctree}/scripts/dtc/include-prefixes \
+	-O dts -qq -f ${dtc_sort} -o -"
 
 
 # -----  do the diff or decompile
@@ -339,11 +335,11 @@ DTC="${DTC} ${dtc_flags} -O dts -qq -f ${dtc_sort} -o -"
 if (( ${cmd_diff} )) ; then
 
 	diff ${diff_flags} --label "${dtx_file_1}" --label "${dtx_file_2}" \
-		<(compile_to_dts "${dtx_file_1}") \
-		<(compile_to_dts "${dtx_file_2}")
+		<(compile_to_dts "${dtx_file_1}" "${dtx_path_1_dtc_include}") \
+		<(compile_to_dts "${dtx_file_2}" "${dtx_path_2_dtc_include}")
 
 else
 
-	compile_to_dts "${dtx_file_1}"
+	compile_to_dts "${dtx_file_1}" "${dtx_path_1_dtc_include}"
 
 fi
-- 
Frank Rowand <frank.rowand@sony.com>

[toc] | [next] | [standalone]


#1734546 — Re: [PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to

FromFrank Rowand <frowand.list@gmail.com>
Date2017-09-19 01:50 +0200
SubjectRe: [PATCH v2] scripts/dtc: dtx_diff - 2nd update of include dts paths to
Message-ID<urdXA-4U9-11@gated-at.bofh.it>
In reply to#1734446
On 09/18/17 13:14, frowand.list@gmail.com wrote:
> From: Frank Rowand <frank.rowand@sony.com>
> 

Sorry, mangled subject line.

I'll fix and resend.

-Frank

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web