From patchwork Mon Oct 28 09:01:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Blaess X-Patchwork-Id: 1185267 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=logilin.fr Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 471q0q0ZsNz9sPV for ; Mon, 28 Oct 2019 20:19:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 92077823DF; Mon, 28 Oct 2019 09:19:20 +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 nwmEuNvFY+9c; Mon, 28 Oct 2019 09:19:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 929E781EE6; Mon, 28 Oct 2019 09:19:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 037EC1BF400 for ; Mon, 28 Oct 2019 09:19:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F225781EE6 for ; Mon, 28 Oct 2019 09:19:16 +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 uvSQ4DjhnglH for ; Mon, 28 Oct 2019 09:19:15 +0000 (UTC) X-Greylist: delayed 00:09:35 by SQLgrey-1.7.6 Received: from 4.mo178.mail-out.ovh.net (4.mo178.mail-out.ovh.net [46.105.49.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 701C281D76 for ; Mon, 28 Oct 2019 09:19:15 +0000 (UTC) Received: from player715.ha.ovh.net (unknown [10.109.160.253]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 7CA5D7D5FA for ; Mon, 28 Oct 2019 10:02:09 +0100 (CET) Received: from blaess.fr (91-160-139-170.subs.proxad.net [91.160.139.170]) (Authenticated sender: christophe@blaess.fr) by player715.ha.ovh.net (Postfix) with ESMTPSA id 49CB2B49175C; Mon, 28 Oct 2019 09:02:04 +0000 (UTC) From: Christophe Blaess To: buildroot@buildroot.org Date: Mon, 28 Oct 2019 10:01:50 +0100 Message-Id: <20191028090150.15099-1-mailist@logilin.fr> X-Mailer: git-send-email 2.17.1 X-Ovh-Tracer-Id: 12578553760408151966 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrleekgdduvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Subject: [Buildroot] [PATCH 1/1] board/raspberrypi/post-build.sh: let HDMI console depends on generic getty option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe Blaess , Peter Seiderer , Martin Bark , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Christophe Blaess When the BR2_TARGET_GENERIC_GETTY option is disabled, the inittab line running getty on serial console is commented out. But the line running the HDMI console on Raspberry Pi is still enabled. With this patch the HDMI getty line is removed. Signed-off-by: Christophe Blaess --- board/raspberrypi/post-build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/board/raspberrypi/post-build.sh b/board/raspberrypi/post-build.sh index 5e5eb71100..4d07dc01eb 100755 --- a/board/raspberrypi/post-build.sh +++ b/board/raspberrypi/post-build.sh @@ -5,7 +5,11 @@ set -e # Add a console on tty1 if [ -e ${TARGET_DIR}/etc/inittab ]; then - grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \ - sed -i '/GENERIC_SERIAL/a\ + # Remove tty1 line from previous build. + sed -i '/^tty1::/d' ${TARGET_DIR}/etc/inittab + if grep -q '^BR2_TARGET_GENERIC_GETTY=y$' ${BR2_CONFIG}; then + # Add tty1 line after serial console. + sed -i '/GENERIC_SERIAL/a\ tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab + fi fi