Message ID | cover.1384127173.git.yann.morin.1998@free.fr |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 2AB682C00AC for <incoming@patchwork.ozlabs.org>; Mon, 11 Nov 2013 10:51:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D501433007; Sun, 10 Nov 2013 23:51:45 +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 vXfUwnTaAkX6; Sun, 10 Nov 2013 23:51:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0B75132FC0; Sun, 10 Nov 2013 23:51:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 999821BF840 for <buildroot@lists.busybox.net>; Sun, 10 Nov 2013 23:51:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A7D28D15F for <buildroot@lists.busybox.net>; Sun, 10 Nov 2013 23:51:40 +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 X2GwBEIWx99c for <buildroot@lists.busybox.net>; Sun, 10 Nov 2013 23:51:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id 72B0B8CF31 for <buildroot@busybox.net>; Sun, 10 Nov 2013 23:51:39 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id m19so1484036wiv.9 for <buildroot@busybox.net>; Sun, 10 Nov 2013 15:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=K+2YkmIOjs5tkY3ioR4iAvQv4LpZf8nI8AdFNVijhrk=; b=HfHYBS5vNxYGYapXv5etC1BeQdh4aFfw/AutFO2pUm+MuVaVH5qp0cpZxOqUpLe1Zj OJ+OiR7Y+umwx8AizFi/McTLQNa+LrcLK6uWrrj6l1NSFjwTTZHdgFUPy7KpWLqcIcIG oRvPfzXGAz96k8B7PKmGsbom0TMex+W5yGrnQaj3Re2ERrf40g/W2gIk6PM26/M2LMO2 9+olE75RUlBIaldqxNtlGxq6a3+MviV04GK8hbnTsCfJU613jDbp4oQacivMbnh+25SX 1Wz01TuMxtIPR96C+Nud+kxWETAcfbH1ucFK9GoIOnJqFjqlDu+cKN+4o/b3PHdM/UU2 l7NQ== X-Received: by 10.180.39.212 with SMTP id r20mr10130832wik.13.1384127497936; Sun, 10 Nov 2013 15:51:37 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id dz5sm4773743wib.7.2013.11.10.15.51.36 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Nov 2013 15:51:37 -0800 (PST) From: "Yann E. MORIN" <yann.morin.1998@free.fr> To: buildroot@busybox.net Date: Mon, 11 Nov 2013 00:51:34 +0100 Message-Id: <cover.1384127173.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.1.2 Cc: Peter Korsgaard <jacmet@uclibc.org>, "Yann E. MORIN" <yann.morin.1998@free.fr> Subject: [Buildroot] [pull request v3] Pull request for branch yem/instrument-build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net |
From: "Yann E. MORIN" <yann.morin.1998@free.fr> Hello All! This series adds support for instrumenting the build process, reworked after discussion both on the ML and during the developpers' day. It works as thus: - we register a set of hooks - hooks are called before and after each steps There are currently two hooks defined: - log steps with timings (as an example of how to do a hook) - call a user-supplied script More hooks can be added later on. Specifically, we may want to add a script (in support/scripts or wherever) that runs some verifications after packages are installed (in target/ and staging/), for example to check for RPATH, or to check scripts do not have build-dir paths in them (eg python scripts)... I'm planning on adding at least one other hook, that runs all scripts present in support/step-hooks/ (or whatever its name). Changes v2 -> v3: - rename the internal variable that holds the hooks (Thomas DS) - misc typo fixes (Thomas DS) Changes v1 -> v2: - removed the intra-steps instrumentation (Thomas, Peter) - accept a list of user-supplied hooks, not only one hook (Thomas) Regards, Yann E. MORIN. The following changes since commit 13ae0075a94895c1b021d20905867ee5f354bd49: uboot-tools: factor out common mkimage infrastructure (2013-11-11 00:37:03 +0100) are available in the git repository at: git://gitorious.org/buildroot/buildroot.git yem/instrument-build for you to fetch changes up to 1be7266b22b1c6104d2050be1b1f5e75cbf0e362: pkg-infra: add user-supplied step-hooks (2013-11-11 00:45:59 +0100) ---------------------------------------------------------------- Yann E. MORIN (4): post-{build,images} hooks: export BUILD_DIR too pkg-infra: introduce pre/post-step hooks pkg-infra: add hook to log timing of steps pkg-infra: add user-supplied step-hooks Makefile | 4 +-- docs/manual/customize-rootfs.txt | 5 ++-- docs/manual/debugging-buildroot.txt | 33 +++++++++++++++++++++ docs/manual/developer-guide.txt | 2 ++ package/Makefile.in | 6 ++++ package/pkg-generic.mk | 59 +++++++++++++++++++++++++++++++++++++ 6 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 docs/manual/debugging-buildroot.txt