From patchwork Wed Jan 16 23:41:34 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: 213092 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 2558E2C007E for ; Thu, 17 Jan 2013 10:41:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 56582101C5E; Wed, 16 Jan 2013 23:41:45 +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 Nu8AHl3Y6MAt; Wed, 16 Jan 2013 23:41:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 34AC5101C98; Wed, 16 Jan 2013 23:41:41 +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 C17F38F74B for ; Wed, 16 Jan 2013 23:41:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2C5608C7E4 for ; Wed, 16 Jan 2013 23:41:50 +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 pvPRQvzsqoR0 for ; Wed, 16 Jan 2013 23:41:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f194.google.com (mail-wi0-f194.google.com [209.85.212.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7B45E8C7DA for ; Wed, 16 Jan 2013 23:41:48 +0000 (UTC) Received: by mail-wi0-f194.google.com with SMTP id hn17so800156wib.9 for ; Wed, 16 Jan 2013 15:41:46 -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=O5VBUbUGiJlpE2hv7twlat+RdXe2EDngt6jKTNPzpuk=; b=mVMyAVxtWftqkWFvOwd8NYP9+M9tyFVfVdt5+E6symEw71VYhqKMlbBYIqclLLvEL4 kVztnTazAHHieReD1UvZGR7x1YjvPujGYagkKgrklu7VbtQeUNdk34NaYLg4ryuFY1ft p6jBlweJcJBDoMS+so4Cba8oNyW6DbRiu71hx5E0B0epKlFy9eOHWIZZvq23+uHyl8eY GGRtDIcj81ShGY22F4MlG9d293RjWT2SzJQsgT45TYwGTBNdY21D+6Ws29QMjWFvA155 mE9Wunoig1sat1Mn7OgdWfoiySzJ088NuopuadtdMd94TWYkZUWPY8SDw+BxgD46+gPa MCUQ== X-Received: by 10.194.87.200 with SMTP id ba8mr5183471wjb.22.1358379706803; Wed, 16 Jan 2013 15:41:46 -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 bd7sm11572769wib.8.2013.01.16.15.41.43 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 16 Jan 2013 15:41:44 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Thu, 17 Jan 2013 00:41:34 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [pull request] 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 MESAGE 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. For example, the date is not displayed for the file system images steps (I suspect it's due to second expansion being needed for images, which is not for packages). So, take this series as a kind of RFC, rather than a final series. The following changes since commit 10e058b0ee7fd8135fef35bcf24ae985707078c2: proxychains-ng: copy proxychains.conf to target dir (2013-01-16 13:24:54 +0100) are available in the git repository at: git://gitorious.org/buildroot/buildroot.git yem-instrument-build Yann E. MORIN (6): pkg-infra: log current message 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 package/pkg-utils.mk | 9 ++++++++- toolchain/gcc/gcc-uclibc-4.x.mk | 15 +++++++++++++++ toolchain/kernel-headers/kernel-headers.mk | 3 +++ toolchain/toolchain-crosstool-ng/crosstool-ng.mk | 3 ++- toolchain/toolchain-external/ext-tool.mk | 8 +++++--- toolchain/uClibc/uclibc.mk | 12 ++++++++++++ 6 files changed, 45 insertions(+), 5 deletions(-) Regards, Yann E. MORIN