From patchwork Fri Mar 27 17:12:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1262891 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=BUBOhLNw; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48ppM349m8z9sSQ for ; Sat, 28 Mar 2020 04:12:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 44C0488B01; Fri, 27 Mar 2020 17:12:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F71evov2K3Od; Fri, 27 Mar 2020 17:12:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A606088ACB; Fri, 27 Mar 2020 17:12:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 2921E1BF283 for ; Fri, 27 Mar 2020 17:12:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2165C26539 for ; Fri, 27 Mar 2020 17:12:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4XeMxVjWHc3Q for ; Fri, 27 Mar 2020 17:12:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by silver.osuosl.org (Postfix) with ESMTPS id 3F62F20372 for ; Fri, 27 Mar 2020 17:12:17 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id a81so13174045wmf.5 for ; Fri, 27 Mar 2020 10:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/B94mwUYVCiPggvCmm6+pS1o1pvo+L9Q8S1CbIdnuGQ=; b=BUBOhLNwjHJdIBc+a/OcTYprWmb34YiuJU6f/uPgMwb4axXvkzHOcIX1qogjQdKR8p MkwGBuDs4lEQ6rPOgU0/oow82zZ2VZHS7Ga7xGSOtmgrXQTJr00k/it1xcoMSzC5o4dZ ld5HYvZkY7HtJWNTQAcZ6c5AQi7lqQyoBuo/xrPJvsbHYG7XEY366jdwxz3u/W9WMxMQ eTpk2AIzOoQQrnh5Ep4ZTqMrvdQt9LiyhFHPAbeorrk1NvVAbh9vP7t73YJCqi0TIFyI LEXOlvwA5z3YY/Gpyd5B3L/4RgMuyDmz2t12SlwhQ2r8s3NsazJxxTVAg0r8myp80YNX DUQw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=/B94mwUYVCiPggvCmm6+pS1o1pvo+L9Q8S1CbIdnuGQ=; b=TudbrRKxBcnHdl+kN9ksXjIxDOoya6wKuTxAxGJZVVoxWCZ1vutxQQsVAzHkqOgE9V zspkyOcZgF6Uq1cMTlbH50oELzJ+3DaRduf1zdgl7fb0XoUtNJlBfrzU8ARb9LJStngY fmKtrrrQfQYijiQiIq4JKswiXNZmPQ6+wJiwZuiaij2Cc8aajHoJWtJ1/iprwQrSDXAq gLhTlenp0QTLCU2Qtnbk6djTDrnvPmDcm/CpBBdL1IcaRGgJr5EJAgJgkmUKtKUNvSew eFRJEPHmRkjofn9k+10Ltd+GmhCt4glu0PapGt9UbcHMOqCUsOR2WzExzOI8Rtr5tmf9 N1RQ== X-Gm-Message-State: ANhLgQ1EFaGzz0iRTaW4Ej9XYxsdsFs8ujvEJuvj3hkf0QzRmxI2aryE dz2vgYvcO5vArgEi6jtvsj9Kcl88vnw= X-Google-Smtp-Source: ADFU+vv4XH9Qk6WZoSk1+Sqii2oT0xHpm3pi9lCjqLHFHcDbDzEWzwqeLBiORz0x1W6C0AKqIcQutQ== X-Received: by 2002:a1c:2285:: with SMTP id i127mr6736455wmi.152.1585329132039; Fri, 27 Mar 2020 10:12:12 -0700 (PDT) Received: from p1g2.home (2a01cb000f89b400cc883edd44ec4519.ipv6.abo.wanadoo.fr. [2a01:cb00:f89:b400:cc88:3edd:44ec:4519]) by smtp.gmail.com with ESMTPSA id z16sm9183752wrr.56.2020.03.27.10.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 10:12:08 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Fri, 27 Mar 2020 18:12:01 +0100 Message-Id: <20200327171203.619849-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200327171203.619849-1-gary.bisson@boundarydevices.com> References: <20200327171203.619849-1-gary.bisson@boundarydevices.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/3] board/boundarydevices/common/post-image.sh: use genimage.sh X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - To avoid code duplication and to benefit from support script improvements like empty target dir. - Note that currently genimage.sh can't be set in defconfig directly for i.MX8 targets as the POST_SCRIPT_ARGS is used by imx8-bootloader-prepare.sh Signed-off-by: Gary Bisson --- board/boundarydevices/common/post-image.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/board/boundarydevices/common/post-image.sh b/board/boundarydevices/common/post-image.sh index 9cca1b1789..5c70d98e54 100755 --- a/board/boundarydevices/common/post-image.sh +++ b/board/boundarydevices/common/post-image.sh @@ -1,16 +1,5 @@ #!/bin/sh -BOARD_DIR="$(dirname $0)" -GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" -GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" - -rm -rf "${GENIMAGE_TMP}" - -genimage \ - --rootpath "${TARGET_DIR}" \ - --tmppath "${GENIMAGE_TMP}" \ - --inputpath "${BINARIES_DIR}" \ - --outputpath "${BINARIES_DIR}" \ - --config "${GENIMAGE_CFG}" +support/scripts/genimage.sh -c $(dirname $0)/genimage.cfg exit $?