Message ID | 20191013002232.1045-1-unixmania@gmail.com |
---|---|
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ary+4JwS"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46rMpp6jnrz9sP4 for <incoming-buildroot@patchwork.ozlabs.org>; Sun, 13 Oct 2019 11:22:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4524720492; Sun, 13 Oct 2019 00:22:51 +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 CvGNP2qPkqPD; Sun, 13 Oct 2019 00:22:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1C3CA2047A; Sun, 13 Oct 2019 00:22:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id BE30F1BF95E for <buildroot@lists.busybox.net>; Sun, 13 Oct 2019 00:22:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BA94487FA4 for <buildroot@lists.busybox.net>; Sun, 13 Oct 2019 00:22:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gz5vdx63XQJ8 for <buildroot@lists.busybox.net>; Sun, 13 Oct 2019 00:22:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by hemlock.osuosl.org (Postfix) with ESMTPS id DFAB687F84 for <buildroot@buildroot.org>; Sun, 13 Oct 2019 00:22:44 +0000 (UTC) Received: by mail-qt1-f175.google.com with SMTP id r5so19742796qtd.0 for <buildroot@buildroot.org>; Sat, 12 Oct 2019 17:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=RrhQoUsUsQaVhr3jZ3/iKVvlBdb1JAwwsAZ38jQMX0w=; b=Ary+4JwSmIFVO2O5BsjJUnrMBhWh0WQUzny4yO6RWtftgdU8hbaCK0+/wG7bu5s12O Duw2EGxMfAnJGuCkgP3+vrMi37pwzwgsa3UPtny2/sLr3uW+v4d+T/xLKwezs613hLVc 7kewu5ENel1VJapvq87QNqgMjrYj9KdFafhrsK1Qbz6oasZN66loy5z1waVER9MVJG5e P/rtnuDMb5553DaYtuK06w4cp/hQMEJSyKsCpuACLiNyysyTxe7QjV9aeoioF2ulVrpv TaL3HOwzfJ+3STU1WJV7zlw7nsOl0QUmLmiYpm2QXEm/3qMBn1AXgiD1QopqeOSaEOxb quFA== 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; bh=RrhQoUsUsQaVhr3jZ3/iKVvlBdb1JAwwsAZ38jQMX0w=; b=RnDsVyqR8MvZeiKIgULOkNr6wZTZcS576O8CYf+VPuXbiXAQfuS6/04CYoy/mk2SEb K+kvFf2se7dfze678UIfv/Z/svrb1qAu1teScIM3X9H0xVc1X6019vDFwKB/vd+hIdyQ VRVDsQTXwQgw/3YUHIHqXR4FGhzi2+ntTDzYHRNzzEeqLqAEhGA1UWdeCN32UJnwV/fM OX/VABaZbXkK7m17ALcoQYsVgqm++em2YJgiVkD5XQ3JKCagrWV0dWrHm7GPyj9vW2RV F2r5mH0KC0aKN8sA81215G9F0GuuhSCG8qNs+3m+s8Q8+27bt9VDHr/KVcMnjjU9IyyB ZMFg== X-Gm-Message-State: APjAAAX7o+UpxLGfKOYOYjUX/LbXfgRPX4l2gam+drgSQ7ueN3hQjZD6 c5TtLZWzDQJeGE/wWKtY5T60rRdXosY= X-Google-Smtp-Source: APXvYqxIPMDmdY1/Uy05VenhrtJCr9dA9EHqeBz5Fnbgi8lILOapjqjs/6iQ2rMp/d8Llhu4YRCeng== X-Received: by 2002:a0c:fc4a:: with SMTP id w10mr24284333qvp.46.1570926163581; Sat, 12 Oct 2019 17:22:43 -0700 (PDT) Received: from casantos.remote.csb (177.204.230.17.dynamic.adsl.gvt.net.br. [177.204.230.17]) by smtp.gmail.com with ESMTPSA id k54sm9373533qtf.28.2019.10.12.17.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 17:22:42 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sat, 12 Oct 2019 21:22:23 -0300 Message-Id: <20191013002232.1045-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH 0/9] post-build: pass an empty rootpath to genimage X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> Cc: Carlos Santos <unixmania@gmail.com>, Peter Korsgaard <peter@korsgaard.com>, Peter Seiderer <ps.report@gmx.net>, Fabio Estevam <festevam@gmail.com>, Martin Bark <martin@barkynet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
Series |
post-build: pass an empty rootpath to genimage
|
expand
|
On Sat, 12 Oct 2019 21:22:23 -0300 unixmania@gmail.com wrote: > Carlos Santos (9): > support/scripts/genimage.sh: pass an empty rootpath to genimage > configs/beagleboardx15: drop custom post-image script > configs/beaglebone: don't use custom post-image script > configs/minnowboard_max-graphical: don't use custom post-image script > configs/minnowboard_max: drop custom post-image script > configs/pandaboard: drop custom post-image script > board/raspberrypi/post-image.sh: pass an empty rootpath to genimage > configs/roseapplepi: drop custom post-image script > configs/wandboard: drop custom post-image script All applied. Thanks! Thomas
From: Carlos Santos <unixmania@gmail.com> genimage makes a full copy of the given rootpath to ${GENIMAGE_TMP}/root so passing TARGET_DIR is a waste of time and disk space. We don't rely on genimage to build rootfs images, just to insert pre-built images in the disk images. The waste may be negligible for sporadic builds but becomes relevant if we think about autobuilders that perform several builds everyday. Patch 1 changes support/scripts/genimage.sh to pass an empty rootpath to genimage. Patches 2-6, 8 and 9 drop per-board scripts and use genimage.sh, passing the corresponding configuration file via BR2_ROOTFS_POST_SCRIPT_ARGS. Patch 7 makes the same change in board/raspberrypi/post-image.sh. This script cannot be directly replaced by genimage.sh because it does other things. The board/beaglebone/post-image.sh script was not removed because it is used by beaglebone_qt5_defconfig, which is currently broken and cannot be tested. Again, these changes may appear to be overkill but since Buildroot is an open source project each piece of code becomes a potential learning tool for other developers. We must strive to provide good examples. Carlos Santos (9): support/scripts/genimage.sh: pass an empty rootpath to genimage configs/beagleboardx15: drop custom post-image script configs/beaglebone: don't use custom post-image script configs/minnowboard_max-graphical: don't use custom post-image script configs/minnowboard_max: drop custom post-image script configs/pandaboard: drop custom post-image script board/raspberrypi/post-image.sh: pass an empty rootpath to genimage configs/roseapplepi: drop custom post-image script configs/wandboard: drop custom post-image script board/beagleboardx15/post-image.sh | 15 --------------- board/beaglebone/post-build.sh | 4 ++++ board/minnowboard/post-image.sh | 13 ------------- board/pandaboard/post-image.sh | 16 ---------------- board/raspberrypi/post-image.sh | 12 ++++++++++-- board/roseapplepi/post-build.sh | 4 ++++ board/roseapplepi/post-image.sh | 18 ------------------ board/wandboard/post-image.sh | 15 --------------- configs/beagleboardx15_defconfig | 3 ++- configs/beaglebone_defconfig | 4 +++- configs/minnowboard_max-graphical_defconfig | 3 ++- configs/minnowboard_max_defconfig | 3 ++- configs/pandaboard_defconfig | 3 ++- configs/roseapplepi_defconfig | 4 +++- configs/wandboard_defconfig | 3 ++- support/scripts/genimage.sh | 10 +++++++++- 16 files changed, 43 insertions(+), 87 deletions(-) delete mode 100755 board/beagleboardx15/post-image.sh create mode 100755 board/beaglebone/post-build.sh delete mode 100755 board/minnowboard/post-image.sh delete mode 100755 board/pandaboard/post-image.sh create mode 100755 board/roseapplepi/post-build.sh delete mode 100755 board/roseapplepi/post-image.sh delete mode 100755 board/wandboard/post-image.sh