From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-f172.google.com ([209.85.212.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIG-00089l-LR for ptxdist@pengutronix.de; Mon, 28 May 2012 14:43:56 +0200 Received: by wibhj8 with SMTP id hj8so1179975wib.7 for ; Mon, 28 May 2012 05:43:22 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:30 +0200 Message-Id: <1338208981-8681-4-git-send-email-bartvdrmeulen@gmail.com> Subject: [ptxdist] [PATCH] ptxdist: Get rid of toolchain check-error message 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 From: Remy Bohmer If no toolchain info is specified, skip check completely Ptxdist does a toolchain check, but if all fields are empty we assume it is an external (not an OSELAS) toolchain. Signed-off-by: Remy Bohmer --- bin/ptxdist | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/ptxdist b/bin/ptxdist index 440a7aa..d9486e4 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1382,6 +1382,14 @@ do_select_toolchain_guess() local target="$(ptxd_get_ptxconf PTXCONF_GNU_TARGET)" local gcc_version="$(ptxd_get_ptxconf PTXCONF_CROSSCHAIN_CHECK)" + if [ -z "${vendor}" -a \ + ! -z "${target}" -a \ + -z "${gcc_version}" ]; then + ptxd_dialog_msgbox \ + "info: No toolchain information, assuming external toolchain..." + return 1 + fi + if [ -z "${vendor}" -o \ -z "${target}" -o \ -z "${gcc_version}" ]; then -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de