From patchwork Fri Nov 13 05:43:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56490 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp836494lbb; Thu, 12 Nov 2015 21:46:07 -0800 (PST) X-Received: by 10.28.144.143 with SMTP id s137mr1596976wmd.26.1447393567316; Thu, 12 Nov 2015 21:46:07 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id x7si23449139wjq.156.2015.11.12.21.46.07; Thu, 12 Nov 2015 21:46:07 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 74A3F4BA78; Fri, 13 Nov 2015 06:45:16 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C8PEZKTbTVFs; Fri, 13 Nov 2015 06:45:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3B9C04BA7D; Fri, 13 Nov 2015 06:44:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2D5414BA0A for ; Fri, 13 Nov 2015 06:44:24 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0fU6txoPOj0T for ; Fri, 13 Nov 2015 06:44:24 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 7B7044BA07 for ; Fri, 13 Nov 2015 06:44:11 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hwaL023728; Thu, 12 Nov 2015 23:43:58 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hwRB023271; Thu, 12 Nov 2015 23:43:58 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Thu, 12 Nov 2015 23:43:58 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hvUo004212; Thu, 12 Nov 2015 23:43:57 -0600 From: Nishanth Menon To: Simon Glass , Tom Rini , Masahiro Yamada , Daniel Schwierzeck , Michal Marek , Stefan Roese , Bin Meng Date: Thu, 12 Nov 2015 23:43:41 -0600 Message-ID: <1447393422-4169-12-git-send-email-nm@ti.com> X-Mailer: git-send-email 2.6.2.402.g2635c2b In-Reply-To: <1447393422-4169-1-git-send-email-nm@ti.com> References: <1447393422-4169-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Cc: Pavel Machek , Masahiro Yamada , u-boot@lists.denx.de, Andy Fleming , York Sun Subject: [U-Boot] [PATCH V2 11/12] board: varisys: Move common headers to board-common directory X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Header files can be located in a generic location without needing to reference them with ../common/ Generated with the following script #!/bin/bash vendor=board/varisys common=$vendor/common cfiles=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep c$` headers=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep h$` mkdir -p $common/include/board-common set -x for header in $headers do echo "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"//g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"//g" $vendor/common/*.[chS] done Cc: Alison Wang Cc: Pavel Machek Cc: Masahiro Yamada Cc: York Sun Cc: Andy Fleming Signed-off-by: Nishanth Menon --- board/varisys/common/{ => include/board-common}/eeprom.h | 0 board/varisys/common/sys_eeprom.c | 2 +- board/varisys/cyrus/cyrus.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename board/varisys/common/{ => include/board-common}/eeprom.h (100%) -- 2.6.2.402.g2635c2b _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/board/varisys/common/eeprom.h b/board/varisys/common/include/board-common/eeprom.h similarity index 100% rename from board/varisys/common/eeprom.h rename to board/varisys/common/include/board-common/eeprom.h diff --git a/board/varisys/common/sys_eeprom.c b/board/varisys/common/sys_eeprom.c index b55ab818e698..cee0bbcf0bfb 100644 --- a/board/varisys/common/sys_eeprom.c +++ b/board/varisys/common/sys_eeprom.c @@ -16,7 +16,7 @@ #include #include -#include "eeprom.h" +#include #ifdef CONFIG_SYS_I2C_EEPROM_NXID_MAC #define MAX_NUM_PORTS CONFIG_SYS_I2C_EEPROM_NXID_MAC diff --git a/board/varisys/cyrus/cyrus.c b/board/varisys/cyrus/cyrus.c index 79c363cf841a..6ce7814cb3b9 100644 --- a/board/varisys/cyrus/cyrus.c +++ b/board/varisys/cyrus/cyrus.c @@ -20,7 +20,7 @@ #include #include "cyrus.h" -#include "../common/eeprom.h" +#include DECLARE_GLOBAL_DATA_PTR;