From patchwork Wed Aug 23 20:59:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 805175 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xd0JR4pZTz9t3C for ; Thu, 24 Aug 2017 07:03:19 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 746CDC21EBD; Wed, 23 Aug 2017 21:03:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2380DC21E79; Wed, 23 Aug 2017 20:59:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CF060C21E77; Wed, 23 Aug 2017 20:59:33 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id DE790C21E79 for ; Wed, 23 Aug 2017 20:59:26 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id DB9C4209D7; Wed, 23 Aug 2017 22:59:25 +0200 (CEST) Received: from localhost (132.230.147.77.rev.sfr.net [77.147.230.132]) by mail.free-electrons.com (Postfix) with ESMTPSA id 89EF4209CE; Wed, 23 Aug 2017 22:59:15 +0200 (CEST) From: Thomas Petazzoni To: u-boot@lists.denx.de Date: Wed, 23 Aug 2017 22:59:01 +0200 Message-Id: <20170823205906.20933-4-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170823205906.20933-1-thomas.petazzoni@free-electrons.com> References: <20170823205906.20933-1-thomas.petazzoni@free-electrons.com> Cc: Thomas Petazzoni Subject: [U-Boot] [PATCH 3/8] include/config_fallbacks.h: change fallback for CONFIG_SYS_PBSIZE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Most of the platforms are using CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16 as their value for CONFIG_SYS_PBSIZE, so let's adopt this for the fallback value of CONFIG_SYS_PBSIZE. This will allow us to drop an explicit definition of CONFIG_SYS_PBSIZE from a large number of platforms. Signed-off-by: Thomas Petazzoni Reviewed-by: Tom Rini --- include/config_fallbacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/config_fallbacks.h b/include/config_fallbacks.h index f9461f0..09fcee4 100644 --- a/include/config_fallbacks.h +++ b/include/config_fallbacks.h @@ -81,7 +81,7 @@ #endif #ifndef CONFIG_SYS_PBSIZE -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + 128) +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) #endif #ifndef CONFIG_FIT_SIGNATURE