Received: by 10.223.164.202 with SMTP id h10csp41437wrb; Thu, 9 Nov 2017 02:22:46 -0800 (PST) X-Google-Smtp-Source: ABhQp+QOe5VgkStOYHYi9XrLgBF2H+lvoneqvzXj1MhtC4IdIWuArDTPBasSAHAjnft0h4nZY8LP X-Received: by 10.84.197.131 with SMTP id n3mr3416377pld.227.1510222966749; Thu, 09 Nov 2017 02:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510222966; cv=none; d=google.com; s=arc-20160816; b=K8RQRnzWN1lx46oHjO8PyR+mbdkOu4g3rP7PMiBKtDedZA8VbDwH3BeRmUIoVUKRgP SeOYv976g6Uqq2umGy4BF1k8ioY3pROwQodJ5k7SPHsoYXyfC1JJyOHbGztLcSiWfI4b wyfPE/Ct50qwvPbY/ynBiwHHnBJcbz+5F2ocMl4GLBuCCG3FK7J9GCrd/yLn9cpiqTx3 yN92kgAx12oplcz8tMamcVZTXAkuPR0evpNVygHeAPpeN/oRvYM26+Qf1a7Lr7GclWb3 D+72uKN7C8nhoaU8eccAQWmWanpGmtpQwCD75Xmv1wjWuG7SxZXvUKrogXv9NWnQlAKi 6G1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=OGHgRItlNcIeI5U+55z88AUQ31B/3iF3UewgeMdlVFg=; b=HYkO+9qzhfkEao2QgAmshsnwK9Jy23/NmkW2f/eLtlk+m/Mh5cgiERWMJxNutmxVmw XTTtThxtBMVFT+mVWLcHYqgsNypXQPB5H6MDQiIKWNNzmiD1laLee/2pW3geRmYnoE1r gM2XRQDP0a4ZmMmeOvvpK3UKrzedon9m50xosGwwUF/q79QA4Rb8ugefOw5+3N2N0an9 AlbD6HrV/ppU2q/lnIP4bx4qtoKGpmxora7dAP4P4yQOOp990I06Q6ll6HEFYRvDcV49 Nnle9AU1ZQvQkOmXoTTpbFcbP9z+Hwd3FBuxIsbp1P1NVmbyD2g4QwNv2YfxuJnlHhCZ OJ8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si5777911pld.802.2017.11.09.02.22.35; Thu, 09 Nov 2017 02:22:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192AbdKIKUn (ORCPT + 81 others); Thu, 9 Nov 2017 05:20:43 -0500 Received: from terminus.zytor.com ([65.50.211.136]:45337 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbdKIKUh (ORCPT ); Thu, 9 Nov 2017 05:20:37 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id vA9AGIKI024451; Thu, 9 Nov 2017 02:16:18 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id vA9AGHom024447; Thu, 9 Nov 2017 02:16:17 -0800 Date: Thu, 9 Nov 2017 02:16:17 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Changbin Du Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, changbin.du@intel.com, mingo@kernel.org, peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org Reply-To: tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, changbin.du@intel.com, peterz@infradead.org, torvalds@linux-foundation.org, hpa@zytor.com In-Reply-To: <1510207751-22166-1-git-send-email-changbin.du@intel.com> References: <1510207751-22166-1-git-send-email-changbin.du@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/build: Make the boot image generation less verbose Git-Commit-ID: 7980f029d05d8a3b4634aa6952e1ec51bce9431f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7980f029d05d8a3b4634aa6952e1ec51bce9431f Gitweb: https://git.kernel.org/tip/7980f029d05d8a3b4634aa6952e1ec51bce9431f Author: Changbin Du AuthorDate: Thu, 9 Nov 2017 14:09:11 +0800 Committer: Ingo Molnar CommitDate: Thu, 9 Nov 2017 07:34:57 +0100 x86/build: Make the boot image generation less verbose This change suppresses the 'dd' output and adds the '-quiet' parameter to mkisofs tool. It also removes the 'Using ...' messages, as none of the messages matter to the user normally. "make V=1" can still be used for a more verbose build. The new build messages are now a streamlined set of: $ make isoimage ... Kernel: arch/x86/boot/bzImage is ready (#75) GENIMAGE arch/x86/boot/image.iso Kernel: arch/x86/boot/image.iso is ready Signed-off-by: Changbin Du Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1510207751-22166-1-git-send-email-changbin.du@intel.com Signed-off-by: Ingo Molnar --- arch/x86/boot/genimage.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/x86/boot/genimage.sh b/arch/x86/boot/genimage.sh index 628e936..49f4970 100644 --- a/arch/x86/boot/genimage.sh +++ b/arch/x86/boot/genimage.sh @@ -19,6 +19,13 @@ # $6 - inird image file # +# Use "make V=1" to debug this script +case "${KBUILD_VERBOSE}" in +*1*) + set -x + ;; +esac + verify () { if [ ! -f "$1" ]; then echo "" 1>&2 @@ -50,7 +57,7 @@ genbzdisk() { } genfdimage144() { - dd if=/dev/zero of=$FIMAGE bs=1024 count=1440 + dd if=/dev/zero of=$FIMAGE bs=1024 count=1440 2> /dev/null mformat v: syslinux $FIMAGE echo "$KCMDLINE" | mcopy - v:syslinux.cfg @@ -61,7 +68,7 @@ genfdimage144() { } genfdimage288() { - dd if=/dev/zero of=$FIMAGE bs=1024 count=2880 + dd if=/dev/zero of=$FIMAGE bs=1024 count=2880 2> /dev/null mformat w: syslinux $FIMAGE echo "$KCMDLINE" | mcopy - W:syslinux.cfg @@ -79,14 +86,12 @@ genisoimage() { for j in syslinux ISOLINUX ; do if [ -f /usr/$i/$j/isolinux.bin ] ; then isolinux=/usr/$i/$j/isolinux.bin - echo "Using $isolinux" cp $isolinux $tmp_dir fi done for j in syslinux syslinux/modules/bios ; do if [ -f /usr/$i/$j/ldlinux.c32 ]; then ldlinux=/usr/$i/$j/ldlinux.c32 - echo "Using $ldlinux" cp $ldlinux $tmp_dir fi done @@ -103,7 +108,7 @@ genisoimage() { if [ -f "$FDINITRD" ] ; then cp "$FDINITRD" $tmp_dir/initrd.img fi - mkisofs -J -r -input-charset=utf-8 -o $FIMAGE -b isolinux.bin \ + mkisofs -J -r -input-charset=utf-8 -quiet -o $FIMAGE -b isolinux.bin \ -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ $tmp_dir isohybrid $FIMAGE 2>/dev/null || true From 1583533200381851718@xxx Wed Nov 08 21:02:22 +0000 2017 X-GM-THRID: 1583533200381851718 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread