diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/dtc/dtx_diff | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff index f1160053d75e..959ab2646d38 100755 --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff | |||
| @@ -136,8 +136,7 @@ compile_to_dts() { | |||
| 136 | echo "" >&2 | 136 | echo "" >&2 |
| 137 | echo " architecture ${dtx_arch} is in file path," >&2 | 137 | echo " architecture ${dtx_arch} is in file path," >&2 |
| 138 | echo " but does not match shell variable \$ARCH" >&2 | 138 | echo " but does not match shell variable \$ARCH" >&2 |
| 139 | echo " (${ARCH}) does not match shell variable" >&2 | 139 | echo " >>\$ARCH<< is: >>${ARCH}<<" >&2 |
| 140 | echo " \$ARCH (${ARCH})" >&2 | ||
| 141 | fi | 140 | fi |
| 142 | 141 | ||
| 143 | if [ ! -d ${srctree}/arch/${ARCH} ] ; then | 142 | if [ ! -d ${srctree}/arch/${ARCH} ] ; then |
| @@ -267,6 +266,14 @@ DTC="${__KBUILD_OUTPUT}/scripts/dtc/dtc" | |||
| 267 | 266 | ||
| 268 | if [ ! -x ${DTC} ] ; then | 267 | if [ ! -x ${DTC} ] ; then |
| 269 | __DTC="dtc" | 268 | __DTC="dtc" |
| 269 | if grep -q "^CONFIG_DTC=y" ${__KBUILD_OUTPUT}/.config ; then | ||
| 270 | make_command=' | ||
| 271 | make scripts' | ||
| 272 | else | ||
| 273 | make_command=' | ||
| 274 | Enable CONFIG_DTC in the kernel configuration | ||
| 275 | make scripts' | ||
| 276 | fi | ||
| 270 | if ( ! which ${__DTC} >/dev/null ) ; then | 277 | if ( ! which ${__DTC} >/dev/null ) ; then |
| 271 | 278 | ||
| 272 | # use spaces instead of tabs in the error message | 279 | # use spaces instead of tabs in the error message |
| @@ -280,8 +287,7 @@ ERROR: unable to find a 'dtc' program | |||
| 280 | 'dtc' is: ${DTC} | 287 | 'dtc' is: ${DTC} |
| 281 | 288 | ||
| 282 | If it does not exist, create it from the root of the Linux source tree: | 289 | If it does not exist, create it from the root of the Linux source tree: |
| 283 | 290 | ${make_command} | |
| 284 | 'make scripts'. | ||
| 285 | 291 | ||
| 286 | If not at the root of the Linux kernel source tree -s SRCTREE or -S | 292 | If not at the root of the Linux kernel source tree -s SRCTREE or -S |
| 287 | may need to be specified to find 'dtc'. | 293 | may need to be specified to find 'dtc'. |
