From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <53BBF08A.1050802@pengutronix.de> Date: Tue, 08 Jul 2014 15:22:18 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <1404824365-7638-1-git-send-email-alex.aring@gmail.com> <1404824365-7638-2-git-send-email-alex.aring@gmail.com> In-Reply-To: <1404824365-7638-2-git-send-email-alex.aring@gmail.com> Subject: Re: [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: , Content-Type: multipart/mixed; boundary="===============0011282330==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0011282330== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ObENGEBhMAACCS1hwrNx12GquF21xAAwW" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ObENGEBhMAACCS1hwrNx12GquF21xAAwW Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/08/2014 02:59 PM, Alexander Aring wrote: > This patch adds a error handling for the dtc and call a ptxd_bailout if= > an error occur. >=20 > Signed-off-by: Alexander Aring > --- > scripts/lib/ptxd_make_dts_dtc.sh | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/scripts/lib/ptxd_make_dts_dtc.sh b/scripts/lib/ptxd_make_d= ts_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}" > =20 > + if [ "$?" !=3D "0" ]; then > + ptxd_bailout "Unable to generate ${dts_dtb} file." > + fi What about: || ptxd_bailout "Unable to generate ${dts_dtb} file." Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --ObENGEBhMAACCS1hwrNx12GquF21xAAwW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlO78IoACgkQjTAFq1RaXHMH6QCfcZp05J3UUVW4HG8redpIxIVb 8RcAn0K15IKR8NAW5+n2Vh+d2Nir3/z3 =zNH4 -----END PGP SIGNATURE----- --ObENGEBhMAACCS1hwrNx12GquF21xAAwW-- --===============0011282330== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0011282330==--