From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X4V0D-0002CG-OR for ptxdist@pengutronix.de; Tue, 08 Jul 2014 15:00:29 +0200 Received: by mail-wg0-f41.google.com with SMTP id k14so3241471wgh.12 for ; Tue, 08 Jul 2014 06:00:04 -0700 (PDT) From: Alexander Aring Date: Tue, 8 Jul 2014 14:59:25 +0200 Message-Id: <1404824365-7638-2-git-send-email-alex.aring@gmail.com> In-Reply-To: <1404824365-7638-1-git-send-email-alex.aring@gmail.com> References: <1404824365-7638-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [RFC] ptxd_make_dts_dtb: check on failure if dtc failed Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring This patch adds a error handling for the dtc and call a ptxd_bailout if an error occur. Signed-off-by: Alexander Aring --- scripts/lib/ptxd_make_dts_dtc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/ptxd_make_dts_dtc.sh b/scripts/lib/ptxd_make_dts_dtc.sh index 24c5604..6a09cae 100644 --- a/scripts/lib/ptxd_make_dts_dtc.sh +++ b/scripts/lib/ptxd_make_dts_dtc.sh @@ -59,6 +59,10 @@ ptxd_make_dts_dtb() { -I dts -O dtb -b 0 \ -o "${dts_dtb}" "${tmp_dts}" + if [ "$?" != "0" ]; then + ptxd_bailout "Unable to generate ${dts_dtb} file." + fi + awk '{ \ printf "%s", $1 ; \ for (i = 2; i <= NF; i++) { \ -- 2.0.1 -- ptxdist mailing list ptxdist@pengutronix.de