From patchwork Wed Apr 3 14:37:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 1076054 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="RsZCgmuF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44Z7wc2j0cz9sQt for ; Thu, 4 Apr 2019 01:38:06 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 3E8F2C21E4F; Wed, 3 Apr 2019 14:37:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E8BADC21DA1; Wed, 3 Apr 2019 14:37:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 85CBFC21DA1; Wed, 3 Apr 2019 14:37:56 +0000 (UTC) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by lists.denx.de (Postfix) with ESMTPS id 4EECFC21C4A for ; Wed, 3 Apr 2019 14:37:55 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id y13so21746284wrd.3 for ; Wed, 03 Apr 2019 07:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JvBYeu5qBj+FjSAJYpX5ajscgeYXXJPFtdNy2/0wY/w=; b=RsZCgmuFvOzH0AIHYMWRWgj0/P+PsUL/sJrz2FiVqEy3GDC3DVHJeoLo1Eco+hFbof o7811qVaHbQb42xyHC9SJsR0RQxUApqNv3qBPhQCmm+DuTXjIf7W0pVfaViEkeYQmDqu EySVXbfs293YMDPukba29TGc6Zz39CaygPKAimVbCaQzUTcynLbD99/G6CUX6zOSjhC2 50Og+pSSBrxmSzHWvgNg2Ms+2r3eW9wdiMrGKOOAev8EMpOaLbqMvehrVbaAxwaer1QW MKLTXk0oYPbLY5kvx+U9MtKlRpPr7NZz9B7lwEpYxBaxtrvNarK7N48YxMlJamEy0Ku5 BmuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JvBYeu5qBj+FjSAJYpX5ajscgeYXXJPFtdNy2/0wY/w=; b=Ll09n0Yt8yb4b+mhhjssGPcqz3FuyXLb91roSrk/B9SxC7CY4Oz8a8Y5tdxm1Ej0PT 3t9nRWcqztkRkzc5/hYoPSHjM9niVN2jomAmDMn+Ue4kTHw4xW9OCE/mYRdJiFLFHQ8S +d9cb5aKwRfaa47KiW98pUC+rwHFwb7so6apQnroZupxGaKlFHHv65X61bUqgEB6pvbG wvTdoDWlBfVpHXyPxrV+aaV4Fl8yT5+tnxnOrJpHBixsaHOvQ9QZLIH4lpQWBpw2eMlL RdqK5W6NnyvE8fTTqVSg9Vqz2SUEuVM/VvG/ISe7vmw+uE0Nu1mf+68ZnviEQypshoeU rF/Q== X-Gm-Message-State: APjAAAWXAJcgO65i+jyqdYdL930QIoHvUTwe9Vb2hsY1zscVBogX574+ /LciEI/L7uL/md2khsvvVRSF/Q== X-Google-Smtp-Source: APXvYqxKMRMyfwo22ecm+B7+8o9r9mJVRNPnzwkufbwwrJ9pgBvb2zj3R0JO31DarpshiBVbzsYdEw== X-Received: by 2002:adf:d081:: with SMTP id y1mr49732269wrh.283.1554302274874; Wed, 03 Apr 2019 07:37:54 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c4:f7a1:ce00:5105:4b7b:c922:7c6]) by smtp.gmail.com with ESMTPSA id 7sm58040541wrc.81.2019.04.03.07.37.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 07:37:54 -0700 (PDT) From: Carlo Caione To: peng.fan@nxp.com, u-boot@lists.denx.de Date: Wed, 3 Apr 2019 15:37:20 +0100 Message-Id: <20190403143720.14547-1-ccaione@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Carlo Caione Subject: [U-Boot] [PATCH] tools: imx8m_image: Fix 'unexpected operator' error X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When sh is an alias for dash the script is failing with (for several files): ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator This is caused by the 'a == b' bashism that should be 'a = b'. Signed-off-by: Carlo Caione --- tools/imx8m_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/imx8m_image.sh b/tools/imx8m_image.sh index 6346fb64d8..ec0881a128 100755 --- a/tools/imx8m_image.sh +++ b/tools/imx8m_image.sh @@ -12,7 +12,7 @@ blobs=`awk '/^SIGNED_HDMI/ {print $2} /^LOADER/ {print $2} /^SECOND_LOADER/ {pri for f in $blobs; do tmp=$srctree/$f - if [ $f == "spl/u-boot-spl-ddr.bin" ] || [ $f == "u-boot.itb" ]; then + if [ $f = "spl/u-boot-spl-ddr.bin" ] || [ $f = "u-boot.itb" ]; then continue fi @@ -28,7 +28,7 @@ for f in $blobs; do sed -in "s;$f;$tmp;" $file done -if [ $post_process == 1 ]; then +if [ $post_process = 1 ]; then if [ -f $srctree/lpddr4_pmu_train_1d_imem.bin ]; then objcopy -I binary -O binary --pad-to 0x8000 --gap-fill=0x0 $srctree/lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_imem_pad.bin objcopy -I binary -O binary --pad-to 0x4000 --gap-fill=0x0 $srctree/lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_1d_dmem_pad.bin