From patchwork Fri Jul 28 21:46:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 795094 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 3xK2Xx6rKHz9s7M for ; Sat, 29 Jul 2017 07:48:49 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A7AFDC22432; Fri, 28 Jul 2017 21:47:20 +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 0183CC223A8; Fri, 28 Jul 2017 21:46:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 530FEC21F68; Fri, 28 Jul 2017 21:46:48 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 002AAC21C2F for ; Fri, 28 Jul 2017 21:46:48 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id DAB1521F13; Fri, 28 Jul 2017 23:46:46 +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 8B337207BB; Fri, 28 Jul 2017 23:46:46 +0200 (CEST) From: Thomas Petazzoni To: u-boot@lists.denx.de, Nobuhiro Iwamatsu , Vladimir Zapolskiy Date: Fri, 28 Jul 2017 23:46:37 +0200 Message-Id: <20170728214638.23931-3-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170728214638.23931-1-thomas.petazzoni@free-electrons.com> References: <20170728214638.23931-1-thomas.petazzoni@free-electrons.com> Cc: Thomas Petazzoni Subject: [U-Boot] [PATCH 2/3] common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV 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" CONFIG_SYS_USE_PPCENV is no longer used anywhere. It was used to put the environment in the special .ppcenv section, but the last architecture using this section (SuperH) has been changed to not use it. Therefore, this commit drops support for CONFIG_SYS_USE_PPCENV entirely. We only handle two cases: - We're building the host tool tools/envcrc, in which case the environment is place with no special section attribute (so it depends up in .data) - We're building U-Boot itself, in which case the environnement is placed in the .text section. Signed-off-by: Thomas Petazzoni --- common/env_embedded.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/common/env_embedded.c b/common/env_embedded.c index b368fda..4532589 100644 --- a/common/env_embedded.c +++ b/common/env_embedded.c @@ -30,18 +30,11 @@ */ #if defined(ENV_IS_EMBEDDED) || defined(CONFIG_BUILD_ENVCRC) /* - * Only put the environment in it's own section when we are building + * Put the environment in the .text section when we are building * U-Boot proper. The host based program "tools/envcrc" does not need - * a seperate section. Note that ENV_CRC is only defined when building - * U-Boot itself. + * a seperate section. */ -#if defined(CONFIG_SYS_USE_PPCENV) && \ - defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */ -/* XXX - This only works with GNU C */ -# define __PPCENV__ __attribute__ ((section(".ppcenv"))) -# define __PPCTEXT__ __attribute__ ((section(".text"))) - -#elif defined(USE_HOSTCC) /* Native for 'tools/envcrc' */ +#if defined(USE_HOSTCC) /* Native for 'tools/envcrc' */ # define __PPCENV__ /*XXX DO_NOT_DEL_THIS_COMMENT*/ # define __PPCTEXT__ /*XXX DO_NOT_DEL_THIS_COMMENT*/