From patchwork Sun Jan 20 16:03:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 213956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id E7F732C0086 for ; Mon, 21 Jan 2013 03:04:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 63CAF101A83; Sun, 20 Jan 2013 16:04:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S+ckn36M4-J9; Sun, 20 Jan 2013 16:03:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 040D3101725; Sun, 20 Jan 2013 16:03:52 +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 2E10B8F74B for ; Sun, 20 Jan 2013 16:04:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 68DA68B287 for ; Sun, 20 Jan 2013 16:04:01 +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 GSc7wkxEy-0g for ; Sun, 20 Jan 2013 16:03:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by whitealder.osuosl.org (Postfix) with ESMTPS id 743168B10D for ; Sun, 20 Jan 2013 16:03:59 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id 15so104940wgd.4 for ; Sun, 20 Jan 2013 08:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=Gs37aGut63yVEwi2LIo5F+jh8+Rtr9t3z7vqO8Nm0Q4=; b=ahARhczpisXdjT5hBoiI4UZaQUIf2MsIIUpjAwYLuAUIpCxkjMdmhGIVWci55oIe5m l5snwRPN1l7pwWt/ht413mwOwTETnTyj1W1LXmneOEHDfh9n2e/QZf9IN9rOOWElrKGB uUwJXPRQACqSg9p9kFG1CU2/Tqe9ajyL7AZF4vejkuLyX86Gvwmii3IJqSuXsldLPtlh 4NeBYmHgsV1S0xiKouC950ERHcgaAxi6rab9XnS+32k8TlSeqoytXwJVC3HnIzamPawb 1Sxq4CnGgcthb4HrCz6qTh4VDfQWqc704YTsRmN3nctPCqimAK9WuXZnY7tyOOaqmdCM 0VJQ== X-Received: by 10.180.99.227 with SMTP id et3mr11574498wib.6.1358697837691; Sun, 20 Jan 2013 08:03:57 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-68-44.w90-32.abo.wanadoo.fr. [90.32.147.44]) by mx.google.com with ESMTPS id bw9sm12874953wib.5.2013.01.20.08.03.55 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 20 Jan 2013 08:03:56 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net, Arnout Vandecappelle Date: Sun, 20 Jan 2013 17:03:44 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [pull request v2] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Hello All! This series adds some intrumentation to the pkg-infra so that it is easier for the autobuilders to extract meaningfull information about the reason of failures. It does so by: - logging all messages displayed with calls to MESSAGE to a time-stamped log file - log the last such mesage to a file - add calls to MESSAGE in the non-package steps of the external toolchain backend - add calls to MESSAGE in the non-package steps of the crosstool-NG toolchain backend - add calls to MESSAGE in the non-package steps of the internal toolchain backend (gcc, kernel headers, and uClibc) Although I've tested it with external and internal toolchain backends (not crosstool-NG for now), and although it does work, I expect some polishing to be required. So, take this series as a kind of RFC, rather than a final series. Changes v1 -> v2: - invert the patches ordering for easier upstreaming (Thomas) - include Arnout's fixes against the filesystem infra (Arnout) (with a few fixes for "no newline at end of file" by me) - eye-candy fixes in displayed messages (Arnout) The following changes since commit ad0279f0ee51e97bf7dbb70fdd6f14f789f344a8: gettext: fix static build failure (2013-01-20 09:54:25 +0100) are available in the git repository at: git://gitorious.org/buildroot/buildroot.git yem-instrument-build Yann E. MORIN (7): toolchain/external: sprinkle with some calls to MESSAGE toolchain/crosstool-ng: sprinkle with some calls to MESSAGE toolchain/gcc: sprinkle with some calls to MESSAGE toolchain/kernel-headers: sprinkle with some calls to MESSAGE toolchain/uClibc: sprinkle with some calls to MESSAGE fs/common.mk: delay evaluation of variables. pkg-infra: log current message fs/cloop/cloop.mk | 4 +- fs/common.mk | 44 +++++++++++----------- fs/cpio/cpio.mk | 2 +- fs/cramfs/cramfs.mk | 2 +- fs/ext2/ext2.mk | 2 +- fs/jffs2/jffs2.mk | 8 ++-- fs/romfs/romfs.mk | 4 +- fs/squashfs/squashfs.mk | 4 +- fs/tar/tar.mk | 2 +- fs/ubifs/ubi.mk | 4 +- fs/ubifs/ubifs.mk | 4 +- package/pkg-utils.mk | 9 ++++- toolchain/gcc/gcc-uclibc-4.x.mk | 16 ++++++++ toolchain/kernel-headers/kernel-headers.mk | 4 ++ toolchain/toolchain-crosstool-ng/crosstool-ng.mk | 5 +- toolchain/toolchain-external/ext-tool.mk | 8 ++- toolchain/uClibc/uclibc.mk | 13 ++++++ 17 files changed, 88 insertions(+), 47 deletions(-) Regards, Yann E. MORIN