Re: [PATCH] scripts/dtc: dtx_diff, before grep check .config file exists
From: Gaurav Minocha <hidden>
Date: 2016-07-19 15:55:27
Please ignore this patch, forgot to update the commit message and subject On Tue, Jul 19, 2016 at 8:42 AM, Gaurav Minocha [off-list ref] wrote:
quoted hunk
scripts/dtc/dtx_diff searches CONFIG_DTC=y in .config, but it doesn't checks whether the file exists or not. So, this patch adds a check for .config file. Tested script with and without .config file.quoted
/scripts/dtc/dtx_diff test.dtsSigned-off-by: Gaurav Minocha <redacted> Acked-by: Frank Rowand <redacted> --- scripts/dtc/dtx_diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff index 959ab26..ec47f95 100755 --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff@@ -266,7 +266,7 @@ DTC="${__KBUILD_OUTPUT}/scripts/dtc/dtc" if [ ! -x ${DTC} ] ; then __DTC="dtc" - if grep -q "^CONFIG_DTC=y" ${__KBUILD_OUTPUT}/.config ; then + if grep -q "^CONFIG_DTC=y" ${__KBUILD_OUTPUT}/.config 2>/dev/null; then make_command=' make scripts' else --2.1.4
-- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html